I'm running Eclipse Mars 4.5 with JSDT and it's getting increasingly difficult to use this for JavaScript/Node.JS development, since it doen't recognize modern patterns:
This is because the JavaScript Validator is set to ECMAScript 3.
To my surprise for such an up-to-date release of Eclipse, this dropdown is greyed out and I cannot select 5 or 5.1, let alone 6. ES3 is from 1999 (!).
Am I correct to assume that Eclipse has no considerable JavaScript munity? Other FOSS projects with modern ECMAScript support:
- NetBeans supports ES5.1, ES6 in 8.1
- Atom.io supports ES6
(I haven't used these so I don't know how they pare to Eclipse)
Is Eclipse discouraged for JavaScript development? Or is there actually a well-documented non-hacky go-to plugin for Eclipse to play nice with ES6?
I'm running Eclipse Mars 4.5 with JSDT and it's getting increasingly difficult to use this for JavaScript/Node.JS development, since it doen't recognize modern patterns:
This is because the JavaScript Validator is set to ECMAScript 3.
To my surprise for such an up-to-date release of Eclipse, this dropdown is greyed out and I cannot select 5 or 5.1, let alone 6. ES3 is from 1999 (!).
Am I correct to assume that Eclipse has no considerable JavaScript munity? Other FOSS projects with modern ECMAScript support:
- NetBeans supports ES5.1, ES6 in 8.1
- Atom.io supports ES6
(I haven't used these so I don't know how they pare to Eclipse)
Is Eclipse discouraged for JavaScript development? Or is there actually a well-documented non-hacky go-to plugin for Eclipse to play nice with ES6?
Share Improve this question edited Apr 8, 2016 at 1:15 Redsandro asked Apr 8, 2016 at 0:34 RedsandroRedsandro 11.4k15 gold badges80 silver badges111 bronze badges 5- 2 Possible duplicate of Is there a way in Eclipse to change the ECMAScript pliance level? – Krease Commented Apr 8, 2016 at 0:48
- 1 (Spoiler alert from the duplicate: surprisingly the specified eclipse plugin does not support this, but there are other options) – Krease Commented Apr 8, 2016 at 0:50
- 1 @Chris I invite you to mention these other options. – Redsandro Commented Apr 8, 2016 at 1:15
- Refer to the duplicate - it mentioned other plugins – Krease Commented Apr 8, 2016 at 1:27
- @Chris The one answer and its ments is all about the same plugin called 'tern'. If this can at the same time be not supporting ES6 and other options, it requires some clarification. – Redsandro Commented Apr 8, 2016 at 1:53
1 Answer
Reset to default 4Eclipse Neon will improve a lot support for JavaScript with JST 2.0.0 like :
- support for ES6
- Grunt, Gulp, npm support
You can try too tern.java if you wish advanced pletion, validation where you can use for eslint, jshint which support ES6. See Tern Linter section for that.