Home > Article > Web Front-end > Eclipse remove js file verification error solution
This article mainly introduces the removal of js (JavaScript) verification errors in Eclipse. In Eclipse, js files often report errors. It can be solved through the following steps:
The first step:
Remove the JS verification of eclipse:
Change windows->preference->Java Script->Validator-> ;Errors/Warnings->
Remove the check mark in front of Enable Javascript Sematic validation;
Step 2:
Right-click the project-> properties -> Builders and remove the check mark in front of JavaScript Validator
If there is no JavaScript Validator item in Builders. Then go to the .project file and modify the following content:
Find the project directory and delete the following parts of the .project file in the project directory:
<buildCommand> <name>org.eclipse.wst.jsdt.core.javascriptValidator</name> <arguments></arguments> </buildCommand> 和<nature>org.eclipse.wst.jsdt.core.jsNature</nature>
Note that modifying the .project file may require a restart eclipse, or close the project in eclipse and then reopen the project.
The third step:
Copy the js file somewhere, then delete the js file reporting the error directly from eclipse, the error disappears, and then copy the
js file just now Copy it in.
If it still doesn’t work after doing the above, open the Problems view in Eclipse, select the relevant error, and solve it according to the prompts.
Related recommendations:
Eclipse PHPEclipse specific configuration method
Use Eclipse to connect to mysql database
The above is the detailed content of Eclipse remove js file verification error solution. For more information, please follow other related articles on the PHP Chinese website!