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

AngularJS 1.1.0: Cannot find controller when validating #171

Open
lmcdubo opened this issue Nov 16, 2015 · 2 comments
Open

AngularJS 1.1.0: Cannot find controller when validating #171

lmcdubo opened this issue Nov 16, 2015 · 2 comments

Comments

@lmcdubo
Copy link

lmcdubo commented Nov 16, 2015

Hi,

I'm having a problem using eclipse AngularJS (version 1.1.0) where some controllers are not found in HTML files

Project is located at: https://github.com/lmcdubo/testApp.git

Basically two controllers, which are defined with the "Controller as" syntax, cannot be found

e.g.

Description Resource Path Location Type
Cannot find controller with name ShellController. shell.html /testApp/WebContent/src/client/app/layout line 0 HTML Problem
Description Resource Path Location Type
Cannot find controller with name SidebarController. sidebar.html /testApp/WebContent/src/client/app/layout line 0 HTML Problem

I saw that an old issue was reported with a similar problem in the past

#69

Any ideas?

Thx,
/S

@angelozerr
Copy link
Owner

Your problem is similar to #102

It's because it's hard to define link between template and module. To fix your problem, you must link your HTML shell.html with ShellController with Angular Explorer https://github.com/angelozerr/angularjs-eclipse/wiki/Angular-Explorer-View#html-template-linkunlink

@lmcdubo
Copy link
Author

lmcdubo commented Nov 17, 2015

Hi,

Awesome yes it works fine!

I'm having another problem that might be related though where I get "Unknown Tag" warnings for tag that are defined in some of my directives, as such:

Description Resource Path Location Type Unknown tag (ht-sidebar). sidebar.html /testApp/WebContent/src/client/app/layout line 2 HTML Problem Description Resource Path Location Type Unknown tag (ht-top-nav). shell.html /testApp/WebContent/src/client/app/layout line 3 HTML Problem

I know that I can disable those warnings, but it would be nice to get this to work.

Finally on an unrelated note, I'm not sure if you actively monitor the jsbuild git repo, but I registered one issues a few days ago regarding a problem with gulp builds there: angelozerr/jsbuild-eclipse#10

Thanks again,
/Sebas

geekcheng pushed a commit to geekcheng/angularjs-eclipse that referenced this issue Dec 6, 2021
Additional changes:
- refactoring of completion proposals collection - introduced a record
object to hold all information relevant to a completion item
- refactoring of collectors API - collection algorithms have been moved
out of *TernServer classes and placed in singletons
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

2 participants