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

Relative paths or environment variables in settings #116

Open
psolyca opened this issue Feb 6, 2021 · 5 comments
Open

Relative paths or environment variables in settings #116

psolyca opened this issue Feb 6, 2021 · 5 comments
Labels
vscode This is VS Code related bug/fix/feature wontfix This will not be worked on

Comments

@psolyca
Copy link
Contributor

psolyca commented Feb 6, 2021

Is your feature request related to a problem? Please describe.
To develop, I use an environment which is shared accross different computers with different partition structures.
I use environment variables to set my environment around VSCode (VSCodium).
Using absolute path in settings is a bit pain cause I need to change it every time I change my computer.

Describe the solution you'd like
I would like to be able to use environment variables in path settings ${env:MYVAR} or relativ paths.

@Surendrajat
Copy link
Member

@psolyca are you talking about the path of dependencies (apktool etc.) ? If so, is there any existing extension that is doing this kind of thing(accepting absolute paths and also accepting env vars)? I'd like to see if it's supported in VS Code, in any way.
However, I don't get the relative path thing. Could you explain a bit more with some example?

@psolyca
Copy link
Contributor Author

psolyca commented Feb 6, 2021

For on extension using this, I know Python is able to use environment variables, I set it like that.
"python.pythonPath": "${env:PROGRAM}\\Python\\python.exe"
As the extension is looking in the PATH variable, I am not sure it is not superseeded my own variable.
The extension is also searching for python.exe in variables relativ to virtual environment.
https://code.visualstudio.com/docs/python/settings-reference#_general-settings

Thinking about that, using relativ paths could not really work ^^;

Maybe trying to find needed JAR files or folder (jadx) in PATH ?

EDIT: I also tried to use environmnet variables in another extension which is not working ! So maybe not easy to implement.

@psolyca
Copy link
Contributor Author

psolyca commented Feb 7, 2021

I have just look around for this but you can not currently.
microsoft/vscode#2809

@psolyca psolyca changed the title Relative paths or environment varaibles in settings Relative paths or environment variables in settings Feb 7, 2021
@Surendrajat
Copy link
Member

I see. I think if VS Code implemented such a thing then we don't need to do anything. Therefore, I will be going to wait for that to happen instead of writing some hacky implementation of it.

@Surendrajat Surendrajat added the vscode This is VS Code related bug/fix/feature label Feb 7, 2021
@Surendrajat Surendrajat added the wontfix This will not be worked on label Oct 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
vscode This is VS Code related bug/fix/feature wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

3 participants
@psolyca @Surendrajat and others