FeaturesPluginsDocs & SupportCommunityPartners

NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

Expression Tags Cause UnsupportedOperationException

 
Post new topic   Reply to topic    NetBeans Forums -> Ruby Users
View previous topic :: View next topic  
Author Message
safetycopy



Joined: 25 Aug 2009
Posts: 6

PostPosted: Tue Sep 08, 2009 5:39 pm    Post subject: Expression Tags Cause UnsupportedOperationException Reply with quote

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?
Back to top
View user's profile Send private message
Erno Mononen
Posted via mailing list.





PostPosted: Tue Sep 08, 2009 6:53 pm    Post subject: Expression Tags Cause UnsupportedOperationException Reply with quote

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:
Quote:
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?











Back to top
safetycopy



Joined: 25 Aug 2009
Posts: 6

PostPosted: Tue Sep 08, 2009 8:30 pm    Post subject: Reply with quote

Hi Erno,

I'm using Dev 200908022240.
Back to top
View user's profile Send private message
Erno Mononen
Posted via mailing list.





PostPosted: Wed Sep 09, 2009 7:16 am    Post subject: Expression Tags Cause UnsupportedOperationException Reply with quote

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:
Quote:
Hi Erno,



I'm using Dev 200908022240.











Back to top
safetycopy



Joined: 25 Aug 2009
Posts: 6

PostPosted: Wed Sep 09, 2009 4:15 pm    Post subject: Reply with quote

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)
Back to top
View user's profile Send private message
Erno Mononen
Posted via mailing list.





PostPosted: Thu Sep 10, 2009 11:34 am    Post subject: Expression Tags Cause UnsupportedOperationException Reply with quote

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:
Quote:
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)













Back to top
Erno Mononen
Posted via mailing list.





PostPosted: Thu Sep 10, 2009 11:51 am    Post subject: Expression Tags Cause UnsupportedOperationException Reply with quote

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:
Quote:

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:
Quote:
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.
Back to top
safetycopy



Joined: 25 Aug 2009
Posts: 6

PostPosted: Thu Sep 10, 2009 5:48 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
gosgirl



Joined: 17 Sep 2009
Posts: 2

PostPosted: Thu Sep 17, 2009 7:39 am    Post subject: Reply with quote

Thanks for the information!
_________________
NCIS dvd
House m.d dvd
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> Ruby Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB