2

I have installed Eclipse for PHP Developers (Oxygen package). I am not getting error messages for javascript. (for example, it is not showing error or warning even if semi-column for some lines are missing or statements like x=x is present)

I have referred this question . Accordingly, enabled all the validations.

enter image description here

Still Eclipse does not show warnings or error for javascript. I did clean build also but it did not help. For php, it is working fine.

Could anyone help me to know what I am doing wrong with the configuration.

EDIT: Errors are missing for files with js extension. Attaching sample file content below (content of a file test.js)

var test = 'hello';
test = test;

var test2 = 'e'

alert('hello');
Kiran
  • 896
  • 1
  • 6
  • 25
  • In what kind of file the errors are missing (`.js`, `.html`, `.php`, ...)? Can you extend your question by an example file? – howlger Dec 30 '17 at 09:45
  • @howlger, please see the edit – Kiran Dec 30 '17 at 09:50
  • I can reproduce your issue. In addition, the missing `' ` in `var test = 'hello;` is only shown as error if and only if the project has also the `org.eclipse.wst.jsdt.core.jsNature` nature. Please report it to Eclipse. – howlger Dec 30 '17 at 10:09
  • thanks @howlger. i will do that. It is surprising that this error was not reported by anyone till now. I guess less people use js validation feature of eclipse. – Kiran Dec 30 '17 at 10:13
  • 1
    I guess so, too. For JavaScript validation, you can install a plug-in like the [Tern Eclipse IDE](http://marketplace.eclipse.org/content/tern-eclipse-ide). – howlger Dec 30 '17 at 10:19

0 Answers0