-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Referring to existing or vscode variables from values in .env
file
#955
Comments
@brettcannon Hi, I think this issue should be given a higher priority. Also a similar kind of problem is caused for developers working on different platforms or different shells, by the fact that And just to prevent your query, I'd like, but I cannot help. Never programmed with js. |
Have you tried using relative paths? |
@DonJayamanne Oh my! I guess aging is beginning to take its toll :( It took me a while to understand why i was so sure that relative paths were not supported. I remembered having red somewhere about it and it took a bit o googling to find where. It was this
in Debugging doc. Thanks, you made may day. |
This is an important issue for python projects. My default sys.path is overwritten by setting PYTHONPATH in the .env file, rather than amending it. By default, I have ~15 paths in sys.path (which are lost), and I'm only using PYTHONPATH to include a few local paths specific to the project (which are gained). This can be handled dynamically with
but that's sloppy and is more of workaround than a solution. |
Please could you provide an example, I'm unable to replicate such an issue. |
To help manage our issues and to better communicate what the team plans to work on we are closing issues that we don't plan to work on but would accept a pull request from a volunteer for. To be clear, closing this issue does not mean we won't consider a pull request for this enhancement as outlined in our contributing guide, just that the development team has no plans to work on it themselves. |
@DonJayamanne asked me to file this from the discussion in #944
Basically, it would make sense to me to want to do the above -- add workspace-relative paths to
PYTHONPATH
. It requires recursively using the existing value inPYTHONPATH
as well as resolving the workspace folder.In my use case, this is for convenience. The actual code runs in a docker container, which has it's
PYTHONPATH
set appropriately for it. I need VSCode to know about that so it doesn't show me quasi-existent import errors.Maybe this is already supported, but I did it wrong. Maybe this is not supported, in which case this is a feature request. Either way, I can't tell!
The text was updated successfully, but these errors were encountered: