Community
Participate
Working Groups
Build Identifier: M20110909-1335 While editing JavaScript file in web project Eclipse shows popup with error message: An internal error occurred during: "Requesting JavaScript AST from selection". java.lang.NullPointerException (stacktrace from error log in attachment) Reproducible: Couldn't Reproduce Steps to Reproduce: 1. Edit JSP and JS files.
Created attachment 204499 [details] Exception info from Error Log
Victor, you've increased the severity. Does that mean you're reliably able to reproduce it?
(In reply to comment #2) > Does that mean you're reliably able to reproduce it? No. But it happens more and more often - I should constantly close popups while working with JavaScript sources.
Created attachment 205566 [details] Error log on windows I am getting this exception as well.
Created attachment 205568 [details] Javascript file to reproduce the error This file is able to cause the error to occur. Around 80% of the time if you place the cursor at the end of line 4, it will throw the exception. If it doesn't throw it, then it will 100% of the time if I dirty the buffer (even adding a space and then deleting it).
(In reply to comment #5) > This file is able to cause the error to occur. Agree. But only in JavaScript project (Project Properties - Project Facets - JavaScript is checked). In usual Java project this script causes no errors.
(In reply to comment #6) > (In reply to comment #5) > > This file is able to cause the error to occur. > Agree. But only in JavaScript project (Project Properties - Project Facets - > JavaScript is checked). In usual Java project this script causes no errors. Ah, I hadn't tested it out in a plain Javascript project.
(In reply to comment #7) > (In reply to comment #6) > > (In reply to comment #5) > > > This file is able to cause the error to occur. > > Agree. But only in JavaScript project (Project Properties - Project Facets - > > JavaScript is checked). In usual Java project this script causes no errors. > > Ah, I hadn't tested it out in a plain Javascript project. In a plain Java project, sorry.
*** This bug has been marked as a duplicate of bug 359005 ***