warpnet / vscode-salt-lint

VSCode extension for running salt-lint in your editor.
https://marketplace.visualstudio.com/items?itemName=warpnet.salt-lint
Other
6 stars 1 forks source link

Error: command 'salt-lint.runLint' not found #6

Closed hbokh closed 4 years ago

hbokh commented 4 years ago

Hello Warpnet! I installed salt-lint as described, using pip3. It works fine on the CLI, but this extension gives command 'salt-lint.runLint' not found every time I try to run it from the "Command Palette".

Any clues on how to fix or debug this issue?

roaldnefs commented 4 years ago

Thanks, @hbokh for your bug report! Does the vscode extension work if you open a .sls file with the default settings?

hbokh commented 4 years ago

Aha! .sls... I had this set in settings.json:

    // Configure file associations to languages (e.g. "*.extension": "html"). These have precedence over the default associations of the languages installed.
    "files.associations": {
        "*.sls": "yaml",
        "*.jinja": "jinja",
    },

and upon commenting, it started working as expected. Since this is a PEBKAC I will close the issue and you can drop the bug label. 👍