Eclipse error constantly pops up while editing Javascript

后端 未结 7 596
庸人自扰
庸人自扰 2020-12-23 09:39

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

相关标签:
7条回答
  • 2020-12-23 09:45

    Ironically, the solution for me was to install another plugin. After I installed VJET, and set up my JavaScript project to be a VJET-enabled project, the issue went away.

    0 讨论(0)
  • 2020-12-23 09:49

    An even better answer (from the bug report linked by Cliff Ribaudo, comment #10 and others):

    Turn off Toggle Mark Occurrences (Alt-Shift-O or the paintbrush icon on the toolbar, which handily, will show you your current state).

    Thanks Cliff!

    Edited:

    Via Preferences

    0 讨论(0)
  • 2020-12-23 09:49

    I've been getting this error lately. I am writing Groovy scripts. The fix for me was to update the Groovy plugin.

    0 讨论(0)
  • 2020-12-23 09:52

    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.

    0 讨论(0)
  • 2020-12-23 10:01

    just replace the xml in your .project file (which lies in home directory of your eclipse workspace .

    <?xml version="1.0" encoding="UTF-8"?>
    <projectDescription>
        <name>your Project Name</name>
        <comment></comment>
        <projects>
        </projects>
        <buildSpec>
        </buildSpec>
        <natures>
        </natures>
    </projectDescription>
    
    0 讨论(0)
  • 2020-12-23 10:04

    Likely an eclipse bug. See this thread:

    https://bugs.eclipse.org/bugs/show_bug.cgi?id=359005

    There is a patch posted there which you might try.

    0 讨论(0)
提交回复
热议问题