-
Notifications
You must be signed in to change notification settings - Fork 90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
What about Angular2 Eclipse support? #164
Comments
Sorry I did not respond before. I am a bit confused, I have no idea what you're talking about. |
@victor grrrrrrrrrr I'm really sorry with my mistake (completion with github to retrieve name). |
I repeat myself again, we should be promoting and teaching how to write tern plugins https://github.com/angelozerr/tern.java/wiki/Creating-Tern-Plugins Otherwise it will be impossible for Angelo to update plugins for all JavaScript framework, and test them, because it is impossible for one person to use all the frameworks, libraries and modules. |
I close this issue. I have decided to give up Angular2 support with tern.java and support Angular2 with TypeScript with : |
Hooray! |
Is there alliance growing between Google and Microsoft? |
@paulvi glad my idea please you. typescript.java starts working (completion, hyperlink, hover, validation). I'm working on preferences (choose node.js, choose typescript bundle). For advanced features like refactoring, search, outline, etc I will see that in later. I would like to intialize Angular2 Eclipse soon based on typescript.java. I'm very motivated because my integration of TypeScript inside Eclipse looks like VSCode which consumes tsserver too.
I think really. You can see current work of Microsoft guy which is working on Angular2 microsoft/TypeScript#6508 and you will see an ansewone demo with Angular2. I'm very excited that this plugin will be available to integrate it inside Angular2 Eclipse |
I create this issue because more and more people tell me if AngularJS Eclipse supports Angular2. The answer is no-(
But I have studied how we could provide this support. The first thing is that Angular2 samples that I have found are based on TypeScript. Here a sample at http://blog.thoughtram.io/angular/2015/03/27/building-a-zippy-component-in-angular-2.html
It's possible to write Angular2 with ES5 too http://blog.thoughtram.io/angular/2015/05/09/writing-angular-2-code-in-es5.html but it seems that the use of TypeScript is a better mean.
Angular2 provides new syntax for Angular expression. HTML editor must support it (syntax highlight, completion, validation, etc). For instance supports this syntax:
See http://blog.thoughtram.io/angular/2015/08/11/angular-2-template-syntax-demystified-part-1.html for more infos.
To support that we need to write a tern plugin for Angular2 like it exists for Angular 1.x
tern doesn't support ES7 decorator and TypeScript. See issues ternjs/tern#652 which provides a mean to support TypeScript with language service. tern.java could use the existing tern server but instead of using ternjs it will use TypeScript language service.
But the big problem will be for Highlight. Is JSDT will be OK to support TypeScript syntax for syntax coloration? @vrubezhny could you give us an answer?
An other solution, should be to use an Eclipse TypeScript plugins like:
But my prefer mean is to use JSDT JavaScript Editor.
@vrubezhny @dgolovin @mickaelistria @maxandersen @pascalleclercq @gamerson @fbricon @piotrtomiak @kaloyan-raev @paulvi @jabby any feedback are welcome!
The text was updated successfully, but these errors were encountered: