-
-
Notifications
You must be signed in to change notification settings - Fork 46
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
python.venvPath config setting does not expand variables #189
Comments
No, Pyright server gets configurations by sending |
Expansion used to work for the previous provider. I'd really like to not have to have a custom config per machine I run on (where my username is different). Are you saying this isn't possible and we can't fix it? Should I open this as a feature request against pyright? |
What do you mean previous provider? |
coc-python, sorry. Anyway your comment was enough to point me in the right direction, and I have opened microsoft/pyright#1267 |
For anyone coming across this issue, the fix is (or will be when next pyright release happens) is to use |
@fannheyward A question about developing this extension/pyright itself using this: is there any easy way I can point at a custom pyright install? I'm trying to debug the above linked issue and would like to do so in by running it "as I normally do" -- from within nvim. Is this possible? |
Replace your build with |
Could you elaborate how to make this work please? I tried to set it to: {
"python.venvPath": "${env: HOME}/.pyenv/versions"
} but no luck. (The absolute path, for me it's Interestingly, relative paths work for {
"python.formatting.blackPath": "~/.pyenv/versions/coc/bin/black",
"python.sortImports.path": "~/.pyenv/versions/coc/bin/isort"
} and relative path works in those settings. |
@g6ai This is what I have in my global coc-settings.json "python.venvPath":"${env:HOME}/.virtualenvs", Probably no space after the |
@ashb You are right, it works! |
Updated my original comment. |
I have |
I'm migrating from coc-python, and I have this in my global config file
Previously this worked, but now I see the following message in the pyright output:
I also tried with
$HOME
, neither worked.Please could one of these expansion mechanisms work before the config is passed on to pyright?
The text was updated successfully, but these errors were encountered: