0

Maybe is a stupid question but I'm using Eclipse Java EE IDE for Web Developers Mars and I would like to use JavaScript Development Tools for help me with Javascript code (now I have to deploy to test my javascript code). I'm using Spring, Maven, Hibernate, Thymeleaf and Bootstrap. I thought that in IDE for Web Developers it was included and if I go in Installation Details I see it:

eclipse

I read javascript for eclipse and follow all the steps except the installation but I can't see if in my javascript there are error. Is it possible to have a validation for syntax and proposals? Now it seems to use Notepad++ for my code in Eclipse environment

Community
  • 1
  • 1
luca
  • 3,248
  • 10
  • 66
  • 145
  • Eclipse is not trivial when it comes to understanding how to activate particular features. The goal is to have a Javascript facet activated in your project, you shouldn't need to install anything specific to activate Javascript validation support. You can see project facets in the project properties, under the **project facets** menu option. – Gimby Jan 22 '16 at 10:59
  • I tried but it gives me only an errore in a plugin javascript and not in mine – luca Jan 22 '16 at 11:19

2 Answers2

0

you need to create static web Project in order to get intellisense and help for Javascript

Mujtaba
  • 143
  • 1
  • 8
0

Disclaimer, I'm the author of tern.java

The JSDT validator is very old and it cannot support ES5/ES6 syntax, so I suggest you that you install tern.java.

tern.java is based on JSDT and extend it to support completion, validation for many JavaScript frameworks (Angular, jQuery, node, requirejs, etc). tern.java supports too ECMAScript6.

tern.java provides several linter like ESLint, JSHint which are able to validate ES5, ES6 syntax and more.

Angelo
  • 2,027
  • 13
  • 17
  • thanks for your advice. I have installed Tern ide, now Do I have to Convert To Tern Project? Can it make problems for my project? – luca Jan 25 '16 at 08:29
  • @luca yes you must convert to tern project. Please take time to read links that I have added. – Angelo Jan 25 '16 at 14:41