amoilanen / Brackets-Command-Line-Shortcuts

Brackets IDE plugin. Adds support of shortcuts for execution of terminal commands right from the IDE.
8 stars 1 forks source link

Nothing happens when I press the key combination #7

Closed etlweather closed 9 years ago

etlweather commented 9 years ago

I created a configuration like so:

[
  {
    "name": "Check Puppet File",
    "dir": "$PROJECT_ROOT",
    "cmd": "puppet parser validate $SELECTED_ITEM",
    "shortcut": "Ctrl-Alt-X",
    "autohide": false
  },
]

When I press the key combination (and I tried several different combinations), nothing happens. I checked the error console and nothing there either.

Not sure what else to check for.

amoilanen commented 9 years ago

Are there any errors in the logs or in the Developer Tools (F12)? Which version of Brackets do you use?

etlweather commented 9 years ago

I am using Brackets version 1.1.0-15558. Only errors in the Console are from some themes.

etlweather commented 9 years ago

I just reloaded once again and I saw an error this time: Unexpected token ] - checking...

etlweather commented 9 years ago

Sorry about that - somehow I did not see that error earlier. I have been writing too much Puppet code lately - you end anything and everything with a comma but obviously in standard JSON you don't. My bad - thanks for this extension, it's awesomely useful.

amoilanen commented 9 years ago

Good, thanks. Please, report any issues you find.

Maybe I should improve error handling for the extension so that it will be more obvious that the error is in the configuration.