eclipse项目里javascript总是验证,且出现最多的error是 Description Resource Path Location Type Syntax error on toke
解决方法:
1.可能之前安装了JSHint,那先在eclipse->Help->Installation Details里面卸载(Uninstall...)
2.* Right Click Project =>
Build Path =>
Configure Build Path =>
Builders
* In the right hand side , make sure JavaScript Validator is Unchecked, if not uncheck it.
3.I removed the tag in the .project .
<buildCommand>
<name>org.eclipse.wst.jsdt.core.javascriptValidator</name>
<arguments>
</arguments>
</buildCommand>
It's worked very well for me.
说明:只要是含有javascriptValidator这个关键字的buildCommand就移除,比如我的buildCommand是这样的
<buildCommand>
<name>org.eclipse.ui.externaltools.ExternalToolBuilder</name>
<triggers>full,incremental,</triggers>
<arguments>
<dictionary>
<key>LaunchConfigHandle</key>
<value><project>/.externalToolBuilders/org.eclipse.wst.jsdt.core.javascriptValidator (1).launch</value>
</dictionary>
</arguments>
</buildCommand>
4.* Open your project's .project file in a text editor.
* Remove the line <nature>org.eclipse.wst.jsdt.core.jsNature</nature>
* Refresh your project
5.* Right click your project
* Select Properties -> JavaScript -> Include
* Select Source tab (It looks similar to the Java Build Path Source tab)
* Expand source folder
* Highlight Excluded pattern
* Click Edit button
* Click Add button next to Exclusion patterns box.
* Click Browse button and select the JavaScript source by name.
6.Window > Preferences… > JavaScript > Validator > Errors/Warnings and uncheck the box.
7.操作完上面的步骤之后,在Problems透视图里面还有Errors,那我们要手动删除这些Errors,然后刷新一下项目,再Project=>Clean一下就OK了
eclipse项目里javascript总是验证,且出现最多的error是 Description Resource Path Location Type Syntax error on toke相关推荐
- Eclipse项目红叉:报错Description Resource Path Location Type Target runtime Apache Tomcat v8.0 is not defin
在学习机房写的项目,tomcat版本是8.0的,然后用u盘拷到自己的电脑上,导入项目,就出现了: 但是项目中并没有错误,后来看报错信息发现: 是tomcat版本不对,于是乎:打开项目下的.settin ...
- maven 警告:Description Resource Path Location Type Classpath entry org.eclipse.m2e.MAVE
异常描述: > *Classpath entry org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER will not be exported or ...
- Description Resource Path Location Type Classpath entry org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER w
Classpath entry org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER will not be exported or published. Runtim ...
- Eclipse 报错The method xxx of type must override a superclass method、Description Resource Path Locati
问题: 如上图, 没改钱@Override会报错The method run() of type must override a superclass method 原因: java1.5中继承接口是 ...
- eclipse项目红叉,Target runtime Apache Tomcat 6.0 is not defined
Target runtime Apache Tomcat 6.0 is not defined 1.导入以前的项目(Problems中查看),报以下错误,但不影响操作: Description Res ...
- eclipse项目两个红点
Description Resource Path Location Type Unbound classpath container: 'JRE Sy 选中项目右键build path 选择libr ...
- eclipse项目出现感叹号——快速解决
>>>>>>>快速解决>>>>>> eclipse项目出现红色感叹号,一般都是jar报错了,Build Path配置一下即 ...
- 如何从我的eclipse项目中删除javascript验证?
本文翻译自:How do I remove javascript validation from my eclipse project? I am using eclipse on my projec ...
- Eclipse去除js(JavaScript)验证错误
这篇文章主要是对Eclipse去除js(JavaScript)验证错误进行了介绍.在Eclipse中,js文件常常会报错.可以通过如下几个步骤解决 第一步: 去除eclipse的JS验证: 将wind ...
最新文章
- 现半透明的popupwindow
- 3.1.2 vernam 代数密码
- Play on Words UVA - 10129 (有向图欧拉路径)
- mlp神经网络_白天鹅黑天鹅灰天鹅?卷积神经网络帮你搞定识别
- Android项目实战欢迎界面
- hashmap有关问题与计算
- 面试时会谈薪的人一开口就赢了:让你薪资翻倍的谈薪技巧
- C语言strstr函数实现
- 计算机二级证学的什么,考计算机二级证需要学什么
- WEB交互的划时代革新--HTML5中WebSocket应用【1】
- 虚拟机自动安装linux操作系统(kickstart+pxe+dhcp+tftp)
- 【ABAP系列】SAP ABAP的事件执行顺序
- 产品经理工具之软件篇
- 8086cpu物理寻址
- 什么是md5码,md5码有什么用?
- 一文读懂ICS工业控制系统架构
- overleaf下载word版本
- 用电脑无线投屏到电视屏幕的连接方法
- 原生Array.isArray()判断对象是否为数组
- Android开发技巧!怒斩获了30家互联网公司offer,大厂直通车!