geddski / macros

macros support for VS Code
MIT License
165 stars 36 forks source link

command 'macros.commentDown' not found #22

Open canadaduane opened 6 years ago

canadaduane commented 6 years ago

I'm using vscode 1.19.0 on Mac OS X. I've added the "macros" key and "commentDown" example macro to my user settings.json file:

image

I've also added example shortcut to my keybindings.json

image

But when I press cmd+ctrl+/ vscode complains with command 'macros.commentDown' not found:

screenshot 2017-12-20 at 11 14 01 pm

Have I configured something incorrectly? I'm expecting it to comment the line, not show the above error.

DennisSchwartz commented 6 years ago

Same issue here

robertpeteuil commented 6 years ago

I had this same issue until I noticed that the "macros" section in settings has a warning on it (the squiggly green underline in your first screen-cap).

This usually means VS Code doesn't know what that setting is - i.e. VSCode isn't loading the extension. In my case, all I had to do was uninstall/reinstall the extension.

It's working for me on both macOS and Ubuntu 16.04.

Amelia-Lopez commented 6 years ago

I had the exact same issue as well. Restarting Visual Studio Code fixed it.

shadyabhi commented 5 years ago

For me, I had to make sure that that the source was User and not Default under Keyboard Settings. That fixed it. Basically, instead of hand-editing the keybindings.json file, I used the GUI to set the binding and it worked.

opsb commented 5 years ago

Same problem. The macro autocompletes in the user keybindings gui and will add it correctly to the settings file, but as soon as it's added to the file I get a "Value is not accepted" green squiggly (tried restarting).

aschor commented 5 years ago

Same problem. The macro autocompletes in the user keybindings gui and will add it correctly to the settings file, but as soon as it's added to the file I get a "Value is not accepted" green squiggly (tried restarting).

Hi, this is not exactly the same issue. Hi have what you have : basically, settings.json is accepted (no green underline), the extension SEEMS to be loaded ... but the keybindings.json refuses the command, stating that for "macros.xxxx" "value is not accepted". So keybindings.json is not aware of the macros extensions (altough keybindings UI is, but same conclusion once the settings file is written)

image

EricTetz commented 5 years ago

Same here. I moved my config from one Windows 10 machine to another. Doesn't work on the second machine.

geddski.macros installed and enabled. No obvious issues. Have restarted VS Code multiple times.

geddski.macros

%APPDATA%\Code\User\settings.json %APPDATA%\Code\User\settings.json

%APPDATA%\Code\User\keybindings.json %APPDATA%\Code\User\keybindings.json

There's a squiggle under the keybinding, the tooltip says "Value is not accepted", and the binding doesn't work.

nagarjunvinukonda commented 2 years ago

I am having the same trouble but instead of green squiggle I am getting red squiggle. And key definition is not in blue color. I tried reinstalling Macros restarting VS code but it didn't work. I have installed the geddski Macros extension.

image

image

Any suggestions? How to solve this problem?