-
Notifications
You must be signed in to change notification settings - Fork 34
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
Pylint doesn't find the path set in .env
and terminal.integrated.env.linux
#433
Comments
@eromoe Did you run |
Not sure whether it's a useful second reference, but this issue seems to be the same I raised in my It appears that when using a virtual environment, pylint invocation looks like the following:
This doesn't apply any modifications to environment variables (including PYTHONPATH) specified in my |
We don't use the |
Is there a workaround? |
@pmuller You can set environment variables in a terminal outside of vscode from a terminal, then launch VS code from there using, |
@karthiknadig It does not work for some reason at least not always. |
Hello from 2024! This is still an issue as far as I can tell, and the work-around is assuming all workflows are local, which is not ideal. Please let me know if there's a work-around besides just not linting or disabling specific errors. It's frustrating that a Microsoft-endorsed extension wouldn't support I'll also start looking for alternatives :( |
Steps to cause the bug to occur
.env
with some path likePYTHONPATH=/home/dc/sales_forecast/jobs/airflow:/home/dc/sales_forecast/sales_forecast
terminal.integrated.env.linux
with{"PYTHONPATH": "/home/dc/sales_forecast/jobs/airflow:/home/dc/sales_forecast/sales_forecast"}
to.vscode/settings.json
pylint
still show import error
PS: intelligence is working by set
Your Jupyter and/or Python environment
Please provide as much info as you readily know
The text was updated successfully, but these errors were encountered: