Expression Tags Cause UnsupportedOperationException

View: New views
9 Messages — Rating Filter:   Alert me  

Expression Tags Cause UnsupportedOperationException

by safetycopy :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hi all



When typing




Code:
<%=  %>





I get an error message "Warning: A java.lang.UnsupportedOperationException has occurred."



The message keeps appearing until I type something into the expression, at which point I can cancel the warning and carry on as normal.



Any ideas how to fix this, please?






---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: Expression Tags Cause UnsupportedOperationException

by Erno Mononen :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

Which version of NB are you using? I think a similar issue was fixed in
6.7.1, so please try upgrading if you're using anything older than that.

Erno

safetycopy wrote:

> Hi all
>
>
>
> When typing
>
>
>
>
> Code:
> <%=  %>
>
>
>
>
>
> I get an error message "Warning: A java.lang.UnsupportedOperationException has occurred."
>
>
>
> The message keeps appearing until I type something into the expression, at which point I can cancel the warning and carry on as normal.
>
>
>
> Any ideas how to fix this, please?
>
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@...
> For additional commands, e-mail: users-help@...
>
>  


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Expression Tags Cause UnsupportedOperationException

by safetycopy :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hi Erno,



I'm using Dev 200908022240.






---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: Expression Tags Cause UnsupportedOperationException

by Erno Mononen :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


I see, it must be a different issue then. I'm not getting this exception
with the latest daily though, could you try whether the problem still
exists in 200909081533 or newer
(http://bits.netbeans.org/dev/nightly/latest/)? If it is still
reproducible for you, please post the whole stack trace here (or just
report the issue using the exception reporter that should pop up when
any exceptions occur).

Thanks,
Erno


safetycopy wrote:

> Hi Erno,
>
>
>
> I'm using Dev 200908022240.
>
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@...
> For additional commands, e-mail: users-help@...
>
>  


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Expression Tags Cause UnsupportedOperationException

by safetycopy :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Okey doke, I downloaded netbeans-trunk-nightly-200909081533-ruby-windows.exe and tried again. I'm still getting the exception - here's the report:




Code:
java.lang.UnsupportedOperationException: Not supported yet.

        at org.jrubyparser.SourcePosition$1.union(SourcePosition.java:229)

        at org.jrubyparser.parser.ParserSupport.union(ParserSupport.java:313)

        at org.jrubyparser.parser.ParserSupport.new_call(ParserSupport.java:833)

        at org.jrubyparser.parser.Ruby19Parser.case376_line1413(Ruby19Parser.java:3402)

        at org.jrubyparser.parser.Ruby19Parser.yyparse(Ruby19Parser.java:2062)

        at org.jrubyparser.parser.Ruby19Parser.yyparse(Ruby19Parser.java:1421)

        at org.jrubyparser.parser.Ruby19Parser.parse(Ruby19Parser.java:4303)

        at org.netbeans.modules.ruby.RubyParser.parseBuffer(RubyParser.java:551)

        at org.netbeans.modules.ruby.RubyParser.parse(RubyParser.java:121)

        at org.netbeans.modules.parsing.impl.SourceCache.getResult(SourceCache.java:198)

        at org.netbeans.modules.parsing.api.ResultIterator.getParserResult(ResultIterator.java:134)

        at org.netbeans.modules.csl.editor.fold.GsfFoldManager$JavaElementFoldTask$1.run(GsfFoldManager.java:390)

        at org.netbeans.modules.csl.editor.fold.GsfFoldManager$JavaElementFoldTask$1.run(GsfFoldManager.java:402)

        at org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:129)

        at org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:113)

        at org.netbeans.modules.parsing.impl.TaskProcessor.runUserTask(TaskProcessor.java:189)

Caused: org.netbeans.modules.parsing.spi.ParseException

        at org.netbeans.modules.parsing.impl.TaskProcessor.runUserTask(TaskProcessor.java:191)

        at org.netbeans.modules.parsing.api.ParserManager.parse(ParserManager.java:99)

        at org.netbeans.modules.csl.editor.fold.GsfFoldManager$JavaElementFoldTask.gsfFoldScan(GsfFoldManager.java:377)

        at org.netbeans.modules.csl.editor.fold.GsfFoldManager$JavaElementFoldTask.run(GsfFoldManager.java:353)

        at org.netbeans.modules.csl.editor.fold.GsfFoldManager$JavaElementFoldTask.run(GsfFoldManager.java:299)

        at org.netbeans.modules.parsing.impl.TaskProcessor$CompilationJob.run(TaskProcessor.java:661)

        at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)

        at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)

        at java.util.concurrent.FutureTask.run(Unknown Source)

        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)

        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

[catch] at java.lang.Thread.run(Unknown Source)








---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: Expression Tags Cause UnsupportedOperationException

by Erno Mononen :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Thanks for the stack trace, I filed
http://www.netbeans.org/issues/show_bug.cgi?id=171911 for this (if you'd
like to track the progress on the issue, you can add yourself to cc in
the issue).

Erno


safetycopy wrote:

> Okey doke, I downloaded netbeans-trunk-nightly-200909081533-ruby-windows.exe and tried again. I'm still getting the exception - here's the report:
>
>
>
>
> Code:
> java.lang.UnsupportedOperationException: Not supported yet.
>
> at org.jrubyparser.SourcePosition$1.union(SourcePosition.java:229)
>
> at org.jrubyparser.parser.ParserSupport.union(ParserSupport.java:313)
>
> at org.jrubyparser.parser.ParserSupport.new_call(ParserSupport.java:833)
>
> at org.jrubyparser.parser.Ruby19Parser.case376_line1413(Ruby19Parser.java:3402)
>
> at org.jrubyparser.parser.Ruby19Parser.yyparse(Ruby19Parser.java:2062)
>
> at org.jrubyparser.parser.Ruby19Parser.yyparse(Ruby19Parser.java:1421)
>
> at org.jrubyparser.parser.Ruby19Parser.parse(Ruby19Parser.java:4303)
>
> at org.netbeans.modules.ruby.RubyParser.parseBuffer(RubyParser.java:551)
>
> at org.netbeans.modules.ruby.RubyParser.parse(RubyParser.java:121)
>
> at org.netbeans.modules.parsing.impl.SourceCache.getResult(SourceCache.java:198)
>
> at org.netbeans.modules.parsing.api.ResultIterator.getParserResult(ResultIterator.java:134)
>
> at org.netbeans.modules.csl.editor.fold.GsfFoldManager$JavaElementFoldTask$1.run(GsfFoldManager.java:390)
>
> at org.netbeans.modules.csl.editor.fold.GsfFoldManager$JavaElementFoldTask$1.run(GsfFoldManager.java:402)
>
> at org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:129)
>
> at org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:113)
>
> at org.netbeans.modules.parsing.impl.TaskProcessor.runUserTask(TaskProcessor.java:189)
>
> Caused: org.netbeans.modules.parsing.spi.ParseException
>
> at org.netbeans.modules.parsing.impl.TaskProcessor.runUserTask(TaskProcessor.java:191)
>
> at org.netbeans.modules.parsing.api.ParserManager.parse(ParserManager.java:99)
>
> at org.netbeans.modules.csl.editor.fold.GsfFoldManager$JavaElementFoldTask.gsfFoldScan(GsfFoldManager.java:377)
>
> at org.netbeans.modules.csl.editor.fold.GsfFoldManager$JavaElementFoldTask.run(GsfFoldManager.java:353)
>
> at org.netbeans.modules.csl.editor.fold.GsfFoldManager$JavaElementFoldTask.run(GsfFoldManager.java:299)
>
> at org.netbeans.modules.parsing.impl.TaskProcessor$CompilationJob.run(TaskProcessor.java:661)
>
> at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
>
> at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
>
> at java.util.concurrent.FutureTask.run(Unknown Source)
>
> at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
>
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
>
> [catch] at java.lang.Thread.run(Unknown Source)
>
>
>
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@...
> For additional commands, e-mail: users-help@...
>
>  


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: Expression Tags Cause UnsupportedOperationException

by Erno Mononen :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


One more thing: can you please provide an example file where this
happens to you? This doesn't seem reproducible for me with just "<%= %>".

Thanks,
Erno

Erno Mononen wrote:

>
> Thanks for the stack trace, I filed
> http://www.netbeans.org/issues/show_bug.cgi?id=171911 for this (if
> you'd like to track the progress on the issue, you can add yourself to
> cc in the issue).
>
> Erno
>
>
> safetycopy wrote:
>> Okey doke, I downloaded
>> netbeans-trunk-nightly-200909081533-ruby-windows.exe and tried again.
>> I'm still getting the exception - here's the report:
>>
>>
>>
>>
>> Code:
>> java.lang.UnsupportedOperationException: Not supported yet.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Expression Tags Cause UnsupportedOperationException

by safetycopy :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hi Erno,



Thanks for submitting that.



As far as providing a file, it basically happens in any ERb file. The exact process is:



1) Type <%= which triggers auto-complete, adding %>

2) Push space to add a space between = and the content of the expression.

3) After pushing space (leaving the cursor between two spaces which are between the expression tags), I get the error message.



If I can get focus away from the error dialog long enough to type anything in between the expression tags, I can cancel the error message and continue as normal. However, if I just keep hitting cancel on the error dialog, it just continues to reappear.



It seems I could solve the problem by stopping auto-complete adding the closing expression tag, but I can't seem to find a way of turning that off.



Hope that explains things a little better.






---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Expression Tags Cause UnsupportedOperationException

by gosgirl :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message