Aptana Studio gives me syntax errors for uses of function* and yield in JavaScript code.
These are ES6 features. Is it possible to configure Aptana to accept them?
No, Aptana does not support ES6 (nor JSX) and there are no plugins available to support it.
Aptana is compatible with all Eclipse plugins. The plugin "Enide Studio 2015" is tagged with ES6, which is disingenuous because as far as I can tell the only thing it enables a subset of the const keyword. Nothing else.
To install the plugin (which won't help you), visit the plugin page, then drag the "install" button into your Aptana editor.
Related
My one website is into requirement gathering stage. I know that JavaScript new version ES6 is introduced.
On googling, I found some good tools to work with ES6 like:-
Bable
Traceur
Is there any Nuget package available or any alternate that will convert ES6 to ES5 parallely.
or How do I get started with ES6 in ASP.Net MVC site.
I am using VS 2015 & ASP.Net(4.5.2)
You can try Webpack with visual Studio here is a useful package. Just dont forget you require the Babel module.
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 community? 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 compare 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?
Eclipse 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 completion, validation where you can use for eslint, jshint which support ES6. See Tern Linter section for that.
I enabled ECMAScript 6 on WebStorm so that I do not get IDE errors when using arrow functions.
However, I did not install Babel. I was prompted to install Babel after enabling ECMAScript 6. I had problems installing Babel.
Is it necessary to use Babel together with ECMAScript 6? What would be the side effect of enabling ECMAScript 6 without installing Babel?
I am using node.js on WebStorm.
The purposes of Babel is to convert es6 code into es5 code BECAUSE most browsers do not FULLY support es6 yet, although are getting closer.
https://kangax.github.io/compat-table/es6/
You will see that IE11 support is poor whilst Firefox and Chrome almost have full support.
However, given that the latest Node fully understands ES6 there is now no need for Babel when using Node only unless of course you need to support older versions of Node which only understand ES5.
PS: if you enable Babel support in Webstorm it can generate ES5 files on the fly for you as you code in ES6. Alternatively, you can use a task runner such as Grunt or Gulp to do this for you. Depends if you need it!
Ive seen other questions regarding this issue - Is there a way to turn on ES6/ES7 syntax support in vscode? - but this has now been addressed by Microsoft and implemented in VSCode.
However, I have downloaded the latest version of VSCode, and cloned the example es6 repo from GitHub, and it seems to not be working
To turn ES6/ES7 support, the best way is to use ESLint with dedicated parser ( babel, etc...). I try it if you're interested: VSCode Linter ES6 ES7 Babel linter.
If you're using eslint with npm, you may need the .eslintrc file in the root folder of your project. See my answer to this question and the docs for the ESLint VSCode extension.
I am learning GameClosure (a HTML5 game engine) and want to develop in JavaScript in Eclipse. I've downloaded WTP 3.4.2 plugin, but Eclipse don't recognize the syntax of import ... as ... like here:
Is there any way to fix that and have GameClosure support? There is needed a special compiler or something? (GameClosure uses basil)
I also have an warning with no semicolon after last entry in parameter-array:
I assume this semicolon isn't needed, but how can I make this warning go away?
Looks like it's using the old Harmony modules proposal, in which case Eclipse will not parse it properly, it chokes on "let" never mind modules.
Hopefully once the standard is released later on this year Eclipse will receive an upgraded parser.
you can use jsio as an importer:
jsio("import device");
//etc.