NetBeans Forums

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

javascript2 editor error keep popping up

 
Post new topic   Reply to topic    NetBeans Forums -> Web Client Users
View previous topic :: View next topic  
Author Message
zejiang



Joined: 20 Jun 2016
Posts: 4

PostPosted: Thu Jun 30, 2016 8:06 am    Post subject: javascript2 editor error keep popping up Reply with quote

I have a development snapshot HTML/JS version downloaded on 6/21.
I'm trying to use it to setup a basic (HelloWorld) Angular project. The only plugin I installed is the TypeScript editor.
During initial file setup, once I created a JavaScript file (even without any content) in the project, an error window kept popping up whenever I try to do anything with the JavaScript file.

The error is as shown below. I found some info like Netbeans Bug 250985 described similar error and the cause was because of incorrect version of org-netbeans-modules-javascript2-editor.jar. But I tried couple versions I found from older Netbeans, got other errors instead. Here comes the error in the window:

java.lang.NoSuchMethodError: org.netbeans.modules.javascript2.model.api.Model.getOccurrencesSupport()Lorg/netbeans/modules/javascript2/model/api/OccurrencesSupport;
at org.netbeans.modules.javascript2.editor.navigation.OccurrencesFinderImpl.findOccurrenceRanges(OccurrencesFinderImpl.java:162)
at org.netbeans.modules.javascript2.editor.navigation.OccurrencesFinderImpl.run(OccurrencesFinderImpl.java:100)
at org.netbeans.modules.javascript2.editor.navigation.OccurrencesFinderImpl.run(OccurrencesFinderImpl.java:74)
at org.netbeans.modules.csl.editor.semantic.MarkOccurrencesHighlighter.processImpl(MarkOccurrencesHighlighter.java:172)
at org.netbeans.modules.csl.editor.semantic.MarkOccurrencesHighlighter.run(MarkOccurrencesHighlighter.java:134)
at org.netbeans.modules.csl.editor.semantic.MarkOccurrencesHighlighter.run(MarkOccurrencesHighlighter.java:83)
at org.netbeans.modules.parsing.impl.TaskProcessor.callParserResultTask(TaskProcessor.java:584)
at org.netbeans.modules.parsing.impl.TaskProcessor$RequestPerformer.run(TaskProcessor.java:809)
at org.openide.util.lookup.Lookups.executeWith(Lookups.java:304)
at org.netbeans.modules.parsing.impl.TaskProcessor$RequestPerformer.execute(TaskProcessor.java:725)
[catch] at org.netbeans.modules.parsing.impl.TaskProcessor$CompilationJob.run(TaskProcessor.java:686)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1443)
at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:68)
at org.openide.util.lookup.Lookups.executeWith(Lookups.java:303)
at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2058)
Back to top
ppisl



Joined: 15 Aug 2008
Posts: 48

PostPosted: Thu Jun 30, 2016 4:09 pm    Post subject: javascript2 editor error keep popping up Reply with quote

Try to clean your user dir and take newer daily build.

If it doesn't help, file a new issue to Bugzilla.

Thanks,
Petr

On 30.6.2016 10:06, zejiang wrote:
Quote:
I have a development snapshot HTML/JS version downloaded on 6/21.
I'm trying to use it to setup a basic (HelloWorld) Angular project. The only plugin I installed is the TypeScript editor.
During initial file setup, once I created a JavaScript file (even without any content) in the project, an error window kept popping up whenever I try to do anything with the JavaScript file.

The error is as shown below. I found some info like Netbeans Bug 250985 described similar error and the cause was because of incorrect version of org-netbeans-modules-javascript2-editor.jar. But I tried couple versions I found from older Netbeans, got other errors instead. Here comes the error in the window:

java.lang.NoSuchMethodError: org.netbeans.modules.javascript2.model.api.Model.getOccurrencesSupport()Lorg/netbeans/modules/javascript2/model/api/OccurrencesSupport;
at org.netbeans.modules.javascript2.editor.navigation.OccurrencesFinderImpl.findOccurrenceRanges(OccurrencesFinderImpl.java:162)
at org.netbeans.modules.javascript2.editor.navigation.OccurrencesFinderImpl.run(OccurrencesFinderImpl.java:100)
at org.netbeans.modules.javascript2.editor.navigation.OccurrencesFinderImpl.run(OccurrencesFinderImpl.java:74)
at org.netbeans.modules.csl.editor.semantic.MarkOccurrencesHighlighter.processImpl(MarkOccurrencesHighlighter.java:172)
at org.netbeans.modules.csl.editor.semantic.MarkOccurrencesHighlighter.run(MarkOccurrencesHighlighter.java:134)
at org.netbeans.modules.csl.editor.semantic.MarkOccurrencesHighlighter.run(MarkOccurrencesHighlighter.java:83)
at org.netbeans.modules.parsing.impl.TaskProcessor.callParserResultTask(TaskProcessor.java:584)
at org.netbeans.modules.parsing.impl.TaskProcessor$RequestPerformer.run(TaskProcessor.java:809)
at org.openide.util.lookup.Lookups.executeWith(Lookups.java:304)
at org.netbeans.modules.parsing.impl.TaskProcessor$RequestPerformer.execute(TaskProcessor.java:725)
[catch] at org.netbeans.modules.parsing.impl.TaskProcessor$CompilationJob.run(TaskProcessor.java:686)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1443)
at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:6Cool
at org.openide.util.lookup.Lookups.executeWith(Lookups.java:303)
at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2058)



Back to top
zejiang



Joined: 20 Jun 2016
Posts: 4

PostPosted: Fri Jul 01, 2016 2:22 am    Post subject: Reply with quote

I just tried today's new build, and can confirm the problem is fixed. Thanks!
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> Web Client 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 cannot attach files in this forum
You cannot download files in this forum


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo