PDA

View Full Version : [FIXED] [webstorm plugin code inspection] Unknown controller



mvdweert
9 Jun 2015, 6:43 AM
In my main controller contains a dep to an other controller that cannot be resolved.

controllers: [
'Foo.controller.Bar'
]

Inspection results into the message: Unknown controller Foo.controller.Bar

If I add it to requires no error message popups and the symbols are available to the plugin:

requires: [
'Foo.controller.Bar'
]


Sencha cmd build is just fine, no deps problems
It looks like it is isolated to a path resolve problem with the controllers construction.

Thanks

Mark.Brocato
10 Jun 2015, 5:32 AM
I believe the controllers config expects the short name of controller class, not the fully qualified name. So if your app is called "Foo" and your controller class is named "Foo.controller.Bar", you should use controllers: ['Bar'].

mvdweert
10 Jun 2015, 6:07 AM
Thanks that works indeed for local controllers.

How about inspection of controllers in other local packages (same workspace) ? :


controllers: [
'MyPkg.controller.Bar'
]


Here also the inspection results into the message: Unknown controller MyPkg.controller.Bar

Mark.Brocato
16 Jun 2015, 12:55 PM
Thanks for the report! I have opened a bug in our bug tracker. The next release will support controllers from packages as well as the app.