Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse - Undo "Convert to JavaScript Project..."

I am working on a AngularJS/Gradle project within Eclipse. Everything was working fine and no error was displayed within my project explorer.

Due to an idea I chose my project -> right click -> Configure -> Convert to JavaScript project...

After that I had various errors in my *.js (AngularJS) files in my project explorer (but my project works fine!). Therefore I decided to remove the nature from my ".project" file but the errors are still there.

What's the correct way to "undo" that "Convert to JavaScript project" stuff? Any help appreciated!

like image 744
Stix Avatar asked Sep 26 '22 13:09

Stix


1 Answers

I think It doesn't exists a Un-convert to JavaScript Project. So you must edit your .project and remove the following lines:

<buildSpec>
    <buildCommand>
        <name>org.eclipse.wst.jsdt.core.javascriptValidator</name>
        <arguments>
        </arguments>
    </buildCommand>
</buildSpec>
<natures>
    <nature>org.eclipse.wst.jsdt.core.jsNature</nature>
</natures>

After go at to your Problems View and remove the error if it exists again.

like image 183
Angelo Avatar answered Sep 29 '22 00:09

Angelo