Eclipse Mars JavaScript Editor not recognizing errors

336 views Asked by At

Somehow i can enter anything i want in a .js file but there are no errors nor warnings (syntax highlighting works tough) recognized.

I have no exludes or something.

Also i remember having the option to convert a project into a javascript project but this option is also gone.

my .project

<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
    <name>JavaScriptProject</name>
    <comment></comment>
    <projects>
    </projects>
    <buildSpec>
        <buildCommand>
            <name>org.eclipse.wst.jsdt.core.javascriptValidator</name>
            <arguments>
            </arguments>
        </buildCommand>
        <buildCommand>
            <name>org.eclipse.wst.validation.validationbuilder</name>
            <arguments>
            </arguments>
        </buildCommand>
    </buildSpec>
    <natures>
        <nature>org.eclipse.wst.jsdt.core.jsNature</nature>
    </natures>
</projectDescription>

Anyone knows what could be the reason for this?

Update:

I have configured Tern ESLint for validation (and converted the project to a tern project) but also Tern ESlint is also showing no errors or warnings. My Guess is that somewhere there must be a setting which deavtivated the JavaScript code validation for JSDT and / or Tern but in the settings and project settings i have checked all i can find regarding validation...

1

There are 1 answers

1
knb On

Open your .project file and check if your project has the "jsdt nature". As described as in "Edit 4" in the Question section of this post: how-to-ignore-node-shebang-error-in-eclipse

In the answer sections there is quite some information too.

I also recommend to add 'eslint' with the --fix option as an External Tool Configuration .