angular-ui / AngularJS-sublime-package

AngularJS code completion, snippets, go to definition, quick panel search, and more.
MIT License
1.42k stars 169 forks source link

Not able to index project in Sublime 3 beta #62

Closed mattiLeBlanc closed 10 years ago

mattiLeBlanc commented 10 years ago

Hi,

When I run the command angularjs_find manually in my console, I get the following issue:

angularjs_find Traceback (most recent call last): File "", line 1, in NameError: name 'angularjs_find' is not defined

It worked in Sublime 2, but I just switched over to the latest beta build 3059

subhaze commented 10 years ago

Just typing a command name in the console wont work as it's expecting angularjs_find to be a variable that you've defined within the console.

You have to use sublime's API to run commands window.run_command('angularjs_find')

mattiLeBlanc commented 10 years ago

Yes, that works. Thanks. Maybe silly but I need to run the index manually because I use SublimeLinter which already assigned a command to super+ctrl+l button. Sublime 3 doesnt allow me to edit the key assignments anymore, without going through all kind of hoops. So executing the command manually in console seemed easier.

subhaze commented 10 years ago

Ahh, I was curious why you were wanting to do that :)

Another alternative is using the command palette. If you open it up and type 'angularjs' there's quite a few commands there that you can execute and 'look up definition' will create an index if one has not already been created.

mattiLeBlanc commented 10 years ago

okay great. Thanks for the assistance!