Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

salt-lint program not found when starting VScode #23

Open
msvihra opened this issue Nov 10, 2023 · 3 comments
Open

salt-lint program not found when starting VScode #23

msvihra opened this issue Nov 10, 2023 · 3 comments

Comments

@msvihra
Copy link

msvihra commented Nov 10, 2023

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.

@msvihra msvihra changed the title salt-lint program not found when starting VScode salt-lint program not found when starting VScode Nov 10, 2023
@jbouter
Copy link
Member

jbouter commented Nov 10, 2023

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
Copy link
Author

msvihra commented Nov 10, 2023

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
Copy link
Member

jbouter commented Nov 10, 2023

Hi @msvihra,

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants