Navigation Menu

Skip to content
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

Closed
angelozerr opened this issue Sep 28, 2015 · 7 comments
Closed

What about Angular2 Eclipse support? #164

angelozerr opened this issue Sep 28, 2015 · 7 comments

Comments

@angelozerr
Copy link
Owner

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.

  1. [HTML] Angular2 syntax

Angular2 provides new syntax for Angular expression. HTML editor must support it (syntax highlight, completion, validation, etc). For instance supports this syntax:

<li *ng-for="#name of names">

See http://blog.thoughtram.io/angular/2015/08/11/angular-2-template-syntax-demystified-part-1.html for more infos.

  1. [JavaScript] Angular2 with ES5

To support that we need to write a tern plugin for Angular2 like it exists for Angular 1.x

  1. [JavaScript] Angular2 with TypeScript

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!

@angelozerr angelozerr changed the title What about Angular2 Eclipse? What about Angular2 Eclipse support? Sep 28, 2015
@victor
Copy link

victor commented Nov 18, 2015

Sorry I did not respond before. I am a bit confused, I have no idea what you're talking about.

@angelozerr
Copy link
Owner Author

@victor grrrrrrrrrr I'm really sorry with my mistake (completion with github to retrieve name).

@paulvi
Copy link
Contributor

paulvi commented Nov 18, 2015

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
And make tern visible to all users.

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.
There's no fun of doing that.

@angelozerr
Copy link
Owner Author

I close this issue. I have decided to give up Angular2 support with tern.java and support Angular2 with TypeScript with :

@paulvi
Copy link
Contributor

paulvi commented Mar 2, 2016

Hooray!

@paulvi
Copy link
Contributor

paulvi commented Mar 2, 2016

Is there alliance growing between Google and Microsoft?

@angelozerr
Copy link
Owner Author

@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.

Is there alliance growing between Google and Microsoft?

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants