Nodeclipse / nodeclipse

Nodeclipse-1 : Eclipse plugin for Node.js, PhantomJS development (Nodeclipse core plugin); Maven and Gradle (with Android) plugins
https://nodeclipse.github.io/
158 stars 76 forks source link

EcmaScript 6 support in Nodeclipse #194

Open paulvi opened 9 years ago

paulvi commented 9 years ago

This is broader issue of EcmaScript support in Eclipse.

Here are some links

70 ES5

https://bugs.eclipse.org/bugs/show_bug.cgi?id=223131 https://github.com/angelozerr/tern.java/issues/308 https://github.com/marijnh/tern/issues/116

paulvi commented 9 years ago

https://www.bountysource.com/issues/1141202-support-es6-features

paulvi commented 9 years ago

(from https://github.com/angelozerr/tern.java/issues/306#issuecomment-136648431)

Bug 473559 - [language support] Add support for ECMAScript 2015

paulvi commented 9 years ago

ref https://github.com/angelozerr/tern.java/issues/328

JSDT has 2 limitations (Validation + Syntax coloration) that are explained at https://github.com/angelozerr/tern.java/wiki/Tern-&-ECMAScript6-support#jsdt-limitation and see https://gist.github.com/vrubezhny/18afdbf1194b59604c7d#file-wtp-jsdt-development-txt

paulvi commented 9 years ago

In short remove JSDT nature in .project file as

<natures>
    <nature>org.nodeclipse.ui.NodeNature</nature>
    <!--  
    <nature>org.eclipse.wst.jsdt.core.jsNature</nature>
    -->
    <nature>tern.eclipse.ide.core.ternnature</nature>
</natures>
angelozerr commented 9 years ago

@paulvi for your information the nature "'tern.eclipse.ide.core.ternnature" is not used today. I use the existing of .tern-project file in the project to know if the project has tern nature. It's very helpfull if you get a tern project from github which is created by Sublime Text, Emcas, Atom etc which doesn't contains .project. You will not to convert to Tern project in this case where .tern-project exists.

paulvi commented 9 years ago

nature "'tern.eclipse.ide.core.ternnature" is not used today

so it does not matter if it is present.

When creating new Nodejs project, files at https://github.com/Nodeclipse/nodeclipse-1/tree/master/org.nodeclipse.ui/templates/tern-node are used

there's no yet import wizard, but there's Nodeclipse CLI nodeclipse -p

piotrtomiak commented 8 years ago

@paulvi we have just released JSjet (https://www.genuitec.com/tech/jsjet-javascript-in-eclipse/), which works with Luna and Kepler. It provides full ES6 support, including syntax validation, outline, content assist, call and type hierarchies. The solution is free for use for 8 days per month and even after that most of the features are still available. I would suggest at least trying it. Maybe this is something you could recommend to Nodeclipse users. Support for ES6 is also present in Neon, but so far it looks quite basic ;)

On the other note, I've finally managed to get resources to do Webclipse JS Debugger integration with Nodeclipse and I'll open a separate issue for that.

paulvi commented 8 years ago

@piotrtomiak Should it work well with Mars/Neon?

piotrtomiak commented 8 years ago

Sorry, I meant Luna and Mars :) We plan to release Neon support in the end of June.

paulvi commented 8 years ago

@piotrtomiak 1. Can we get a bunch of free-for-ever license?

  1. Can you give a talk for Shenzhen Eclispe DemoCamp ? http://szjug.github.io/#2016 June 30th 6pm-9pm UTC+8
piotrtomiak commented 8 years ago
  1. Please send us an email to support@genuitec.com, so that we can sort it out
  2. I can do a talk through hangouts. I am based in Europe.
piotrtomiak commented 8 years ago

@paulvi please let me know if you want me to do the talk, I would need to prepare in advance.

paulvi commented 8 years ago

I'd love to hear myself and let colleagues to hear as well.

Please come up with topic to publish. Can be actually anything related to Eclipse.

We may try dry run 1 week before to make sure Internet connection is OK.

And anything change on your side, it is OK to cancel. Just tell once you discovered situation.

piotrtomiak commented 8 years ago

Hey @paulvi!

Sorry for not replying yet - I am really busy with preparing Webclispe for Neon release.

Naturally, I would like to talk about JSjet and JS Debugger and how one can take the most out of them. Not sure if such a topic would interest you though :) It would be easier for me to pick up some topic if you tell me what are the main interests of the group. Also, it might be better to take this talk off github to avoid cluttering issue comments. My e-mail is (piotr at genuitec d0t com).

paulvi commented 8 years ago

OK