EcmaScript 6 - Tern IDE for Eclipse Validation Errors

I am using Eclipse Mars with Tern IDE für ES6 support on version 1.1.0 (snapshot). I get errors checking the arrow functions and const-export, as you can see in this screenshot:

enter image description here

I worked on these descriptions, but the errors did not disappear: https://github.com/angelozerr/tern.java/wiki/Tern-&-ECMAScript6-support https://github.com/angelozerr/tern.java/wiki/ Tern-linter

I do not know, however, what is really supported by the Tern plugin, but according to the documentation at http://ternjs.net/ Tern should support arrow functions with 0.14. However, only the class, import, and promise support are mentioned on the github IDE page (which does not lend itself to a plugin for ES6 support).

Is there anyone who is developing ES6 with Eclipse with (more or less) full feature support? I kinda feel like a unicorn ...

+6
source share
1 answer

Your error comes from the JSDT Validator, which does not support ES6 syntax (and not from tern).

tern 1.1.0-SNAPSHOT provides ES6 support for termination, hyperlink, validation, but not for ES6 validation. Linter https://github.com/angelozerr/tern.java/wiki/Tern-Linter is a type checking tool, not a syntax checking tool.

To test ES6 with the Eclipse IDE and tern.java, you should:

+7
source

All Articles