Monday, June 3, 2024
 Popular · Latest · Hot · Upcoming
77
rated 0 times [  82] [ 5]  / answers: 1 / hits: 34660  / 12 Years ago, wed, july 4, 2012, 12:00:00

I am working on relatively small (100-300 lines) Javascript files in Eclipse and periodically it gets really upset about some piece of code and pops up this error every time I place the cursor on that line. The error is:



'Requesting JavaScript AST from Selection' has encountered a problem. 
An internal error occured during Requesting JavaScript AST from selection.
java.lang.NullPointerException


While I am converting this:



if(p){
// enter code here
} else { return false; }


into this:



if(p){
// enter code here
} return false;


the error pops up several times. Each time it stops my typing and requires me to click the okay button. I then type two more characters and the error appears again.



Any ideas how to either prevent the error or disable whatever Javascript AST is?



This is on Eclipse Java EE, Indigo Service Release 2. It is almost a flat install, only two plugins installed and neither are for SVN and have nothing to do with Javascript.


More From » eclipse

 Answers
3

At first I thought this was just a trick, but it is working so well, I had to post it as an actual answer.



When the error window pops up, don't close it. Just drag it off to the side, focus back on the main window and keep editing.



When the error happens again Eclipse doesn't change the focus back to the error message. Focus stays in the editing window and you can continue to edit the document.


[#84469] Tuesday, July 3, 2012, 12 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
kearaw

Total Points: 713
Total Questions: 94
Total Answers: 109

Location: Western Sahara
Member since Sun, Nov 22, 2020
4 Years ago
;