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

`salt-lint` program not found when starting VScode #23

Open msvihra opened 10 months ago

msvihra commented 10 months ago

Hi,

I am facing an issues on VScode on Windows, that salt-lint is not found after start. Full error:

Cannot salt-lint the Salt State file. The salt-lint program was not found.

It is strange, because integrated VScode terminal can use salt-lint Python binary and use linter on file using cli, it can also be called directly from Windows Terminal. I see this error only when running this extenstion. BTW VScode is not running under Administrator and I have path to Python scripts added to ENV variables. Could you help me what need to be checked? Thanks.

jbouter commented 10 months ago

Hi @msvihra 👋🏻

You're able to configure a full path to the binary in the extension settings. That should resolve your issue (no longer relying on your $PATH env vars)

msvihra commented 10 months ago

Thanks for reply. Yes, I have also tried absolute path to salt-lint.exe, which I forgot to mention. The thing is it do not work even with absolute path. Maybe I have set the path wrong (I have a space in user name)?:

where salt-lint
C:\Users\<name> <another_name>\AppData\Local\Packages\<python_path>\Scripts\salt-lint.exe
jbouter commented 10 months ago

Hi @msvihra,

I personally don't use Windows, so I sadly cannot help you reproduce this issue 😞