-
Notifications
You must be signed in to change notification settings - Fork 29.4k
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
If terminal.integrated.shell doesn't have a matching terminal.integrated.profiles entry the shell path will be ' ' #121760
Comments
shell/profiles have changed a lot in the upcoming version, but the python extension should not be doing this (definitely in 1.56) as there's a |
Oh sorry I linked to the wrong file! We do use the
Edit: reopening because the shell returned by |
I don't totally understand how profiles would interact with shell in stable but we've made some major changes in this area and introduced a new defaultProfile setting in Insiders. I'll double check that all plays nice with env.shell. |
Can you try this on Insider's? I believe this issue has been fixed. |
to verify: using the extension terminal sample, log the values of these should be non-null and reflect what you've set |
I suspect this isn't fixed |
@Tyriar |
Following up regarding microsoft/vscode-python#16175 (comment),
|
@karrtikr you're right, #123174 won't fix that because it's actually quite a big change to make that happen which I've been working on most of today, I believe this is too risky to try to get into the recovery build as it involves moving a bunch of stuff around to live under different processes. It's unfortunate that users may get confused and I'm not happy at all with the issues that came with default profiles. I suggest once the recovery build ships (tomorrow?), in the Python extension check if the user has set |
@Tyriar Thanks for the quick fix, although I'm still having some issues with the
It seems it takes some time for the terminal change to be propagated to to the API. If a wait a bit before opening the terminal, the problem does not happen. |
@karrtikr Same here as well. Sometimes on reopening VS Code, the settings seem to vanish as well. |
@connor4312 is this verification-found? |
I did not try to verify, but after reading the thread reopened from @karrtikr's report of continued problems. |
@connor4312 it takes up to 2 seconds after changing a profile to apply the changes by design. |
This is true for changes to "terminal.integrated.defaultProfile.windows", but no matter how long I seem to wait, Version: 1.58.0-insider (user setup) |
Hello 👋 The Python extension uses the content of the
terminal.integrated.shell.<os>
setting to determine which shell is currently used and which virtual environment activation command should be sent.However, as reported in microsoft/vscode-python#15919 (comment), if the path specified in
terminal.integrated.shell.<os>
does not have a correspondingterminal.integrated.profiles.<os>
entry, the value returned byterminal.integrated.shell.<os>
will be '', and terminal type detection will fail.Steps to Reproduce:
terminal.integrated.shell.windows
terminal.integrated.shell.windows
usingworkspace.getConfiguration()
Does this issue occur when all extensions are disabled?: Yes
The text was updated successfully, but these errors were encountered: