[jbosstools-issues] [JBoss JIRA] (JBIDE-18341) angularjs not getting activated

Alexey Kazakov (JIRA) issues at jboss.org
Wed Sep 17 21:09:02 EDT 2014


    [ https://issues.jboss.org/browse/JBIDE-18341?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13003678#comment-13003678 ] 

Alexey Kazakov edited comment on JBIDE-18341 at 9/17/14 9:08 PM:
-----------------------------------------------------------------

So, there are a few known issues with Tern.java/AngularJS IDE/JBoss Tools beside of problems with AngularJS central connector which was fixed in 4.2.0.CR-respin-b (JBDS-3150):

- *1. Unstable enablement of AngularJS* for the project. In most cases it works fine for me but not always.
See my comment above. Just fixed by Victor upstream for tern 0.6.0 which requires to update our tern dependencies (see Victor's previous comment).
*Solution*: Update Tern.java in TP to get https://github.com/angelozerr/tern.java/pull/120

- *2. Limited support of AngularJS* even if you lucky enough to avoid #1. Tern/Angular IDE needs some specific settings to be done in Preferences (include JS libs to the project path) + AngularJS Explorer view. For example it's required to enable code assist in angularJS templates. It's impossible to do manually since JBT hides that settings page.
*Solution:*
-- a) create an adapter for Tern to pick up JSDT Include Path settings: https://github.com/angelozerr/tern.java/issues/119 - Solves the problem with duplicated settings in JSDT and Tern.java
*and*
-- b) Make AngularJS IDE to link HTML templates with controllers automaticly: https://github.com/angelozerr/angularjs-eclipse/issues/102 This will eliminate the need of linking them manually via AngularJS Explorer view.

- *3.* Right now, *AngularJS is enabled for any JSDT project* with JBT JSDT adapter installed as soon as any HTML file with any JS usage is opened with HTML Editor. Even if there is no any AngularJS stuff in the project at all. As a result you will get ng-* code completion for HTML tags in a pure jQueryMobile project.

- *4.* Needs more testing...


was (Author: akazakov):
So, there are a few known issues with Tern.java/AngularJS IDE/JBoss Tools beside of problems with AngularJS central connector which was fixed in 4.2.0.CR-respin-b (JBDS-3150):

- *1. Unstable enablement of AngularJS* for the project. In most cases it works fine for me but not always.
See my comment above. Just fixed by Victor upstream for tern 0.6.0 which requires to update our tern dependencies (see Victor's previous comment).
*Solution*: Update Tern.java in TP to get https://github.com/angelozerr/tern.java/pull/120

- *2. Limited support of AngularJS* even if you lucky enough to avoid #1. Tern/Angular IDE needs some specific settings to be done in Preferences (include JS libs to the project path) + AngularJS Explorer view. For example it's required to enable code assist in angularJS templates. It's impossible to do manually since JBT hides that settings page.
*Solution:*
-- a) create an adapter for Tern to pick up JSDT Include Path settings: https://github.com/angelozerr/tern.java/issues/119 - Solves the problem with duplicated settings in JSDT and Tern.java
*and*
-- b) Make AngularJS IDE to link HTML templates with controllers automaticly: https://github.com/angelozerr/angularjs-eclipse/issues/102 This will eliminate the need of linking them manually via AngularJS Explorer view.

- *3.* Right now, *AngularJS is enabled for any JSDT project* with JBT JSDT adapter installed as soon as any HTML file with any JS usage is opened with HTML Editor. Even if there is no any AngularJS stuff in the project at all. As a result you will get ng-* code completion for HTML tags in a pure jQueryMobile project.

> angularjs not getting activated
> -------------------------------
>
>                 Key: JBIDE-18341
>                 URL: https://issues.jboss.org/browse/JBIDE-18341
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: jsp/jsf/xml/html source editing
>    Affects Versions: 4.2.0.CR1
>            Reporter: Max Rydahl Andersen
>            Assignee: Alexey Kazakov
>            Priority: Blocker
>             Fix For: 4.2.0.CR2
>
>
> [~burrsutter] and [~sebastienblanc] reports angularjs is not getting activated in latest build. 
> need to test since if not that seems like a blocker. 



--
This message was sent by Atlassian JIRA
(v6.3.1#6329)


More information about the jbosstools-issues mailing list