We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Build of Visual Studio Code - Insiders: 1.96.0-insider Build of python-insider: 2024.21.2024111301 Build of pylance-insider: 2024.11.100
x = "str
Create a new directory somewhere on disk
Open VS Code
Open that new directory via File > Open Folder...
Create a new Jupyter notebook
Add the following to one of the cells. You should see an error squiggle under "str because the trailing quotes are missing: x = "str
Save the notebook in the directory.
Run "Workspaces: Manage Workspace Trust" via the command palette
Press the "Don't Trust" button
In the pop-up window, select Trust Folder & Continue.
Trust Folder & Continue
The python environment is loaded and displayed normally.
The python environment cannot be displayed normally.
Python Language Server
Output
2024-11-14 09:41:27.217 [info] (Client) Pylance async client (2024.11.100) started with python extension (2024.21.2024111301) 2024-11-14 09:41:28.510 [info] [Info - 9:41:28 AM] (5652) Server root directory: file:///c%3A/Users/vting/.vscode-insiders/extensions/ms-python.vscode-pylance-2024.11.100/dist 2024-11-14 09:41:28.511 [info] [Info - 9:41:28 AM] (5652) Pylance language server 2024.11.100 (pyright version 1.1.388, commit 7a829a4e) starting 2024-11-14 09:41:28.511 [info] [Info - 9:41:28 AM] (5652) Starting service instance "Folder" 2024-11-14 09:41:28.552 [info] [Info - 9:41:28 AM] (5652) Setting environmentName for service "Folder": "3.11.9 (global)" 2024-11-14 09:41:28.552 [info] [Info - 9:41:28 AM] (5652) Setting pythonPath for service "Folder": "C:\Python311\python.exe" 2024-11-14 09:41:28.553 [info] [Info - 9:41:28 AM] (5652) No include entries specified; assuming c:\Users\vting\Desktop\Folder 2024-11-14 09:41:28.553 [info] [Info - 9:41:28 AM] (5652) Auto-excluding **/node_modules 2024-11-14 09:41:28.554 [info] [Info - 9:41:28 AM] (5652) Auto-excluding **/__pycache__ 2024-11-14 09:41:28.554 [info] [Info - 9:41:28 AM] (5652) Auto-excluding **/.* 2024-11-14 09:41:28.621 [info] [Info - 9:41:28 AM] (5652) Assuming Python version 3.11.9.final.0 2024-11-14 09:41:28.769 [info] [Info - 9:41:28 AM] (5652) No source files found. 2024-11-14 09:41:29.225 [info] [Info - 9:41:29 AM] (5652) Background analysis(1) root directory: file:///c%3A/Users/vting/.vscode-insiders/extensions/ms-python.vscode-pylance-2024.11.100/dist 2024-11-14 09:41:29.228 [info] [Info - 9:41:29 AM] (5652) Background analysis(1) started 2024-11-14 09:41:29.399 [info] [Info - 9:41:29 AM] (5652) Indexer background runner(2) root directory: file:///c%3A/Users/vting/.vscode-insiders/extensions/ms-python.vscode-pylance-2024.11.100/dist (index) 2024-11-14 09:41:29.399 [info] [Info - 9:41:29 AM] (5652) Indexing(2) started 2024-11-14 09:41:30.136 [info] [Info - 9:41:30 AM] (5652) scanned(2) 22 files over 1 exec env 2024-11-14 09:41:30.776 [info] [Info - 9:41:30 AM] (5652) indexed(2) 22 files over 1 exec env 2024-11-14 09:41:30.800 [info] [Info - 9:41:30 AM] (5652) Indexing finished(2). 2024-11-14 09:41:43.561 [info] (Client) Pylance async client (2024.11.100) started with python extension (2024.21.2024111301) 2024-11-14 09:41:44.111 [info] [Info - 9:41:44 AM] (6028) Server root directory: file:///c%3A/Users/vting/.vscode-insiders/extensions/ms-python.vscode-pylance-2024.11.100/dist 2024-11-14 09:41:44.112 [info] [Info - 9:41:44 AM] (6028) Pylance language server 2024.11.100 (pyright version 1.1.388, commit 7a829a4e) starting 2024-11-14 09:41:44.112 [info] [Info - 9:41:44 AM] (6028) Starting service instance "Folder" 2024-11-14 09:41:44.160 [info] [Info - 9:41:44 AM] (6028) No include entries specified; assuming c:\Users\vting\Desktop\Folder 2024-11-14 09:41:44.160 [info] [Info - 9:41:44 AM] (6028) Auto-excluding **/node_modules 2024-11-14 09:41:44.160 [info] [Info - 9:41:44 AM] (6028) Auto-excluding **/__pycache__ 2024-11-14 09:41:44.161 [info] [Info - 9:41:44 AM] (6028) Auto-excluding **/.* 2024-11-14 09:41:44.210 [info] [Info - 9:41:44 AM] (6028) No source files found. 2024-11-14 09:41:44.213 [info] [Info - 9:41:44 AM] (6028) Starting service instance "Folder" 2024-11-14 09:41:44.224 [info] [Info - 9:41:44 AM] (6028) Setting pythonPath for service "Folder": "c:\Users\vting\Desktop\Folder" 2024-11-14 09:41:44.225 [info] [Info - 9:41:44 AM] (6028) No include entries specified; assuming c:\Users\vting\Desktop\Folder 2024-11-14 09:41:44.225 [info] [Info - 9:41:44 AM] (6028) Auto-excluding **/node_modules 2024-11-14 09:41:44.225 [info] [Info - 9:41:44 AM] (6028) Auto-excluding **/__pycache__ 2024-11-14 09:41:44.225 [info] [Info - 9:41:44 AM] (6028) Auto-excluding **/.* 2024-11-14 09:41:44.258 [info] [Info - 9:41:44 AM] (6028) No source files found. 2024-11-14 09:41:44.749 [info] [Info - 9:41:44 AM] (6028) Background analysis(1) root directory: file:///c%3A/Users/vting/.vscode-insiders/extensions/ms-python.vscode-pylance-2024.11.100/dist 2024-11-14 09:41:44.751 [info] [Info - 9:41:44 AM] (6028) Background analysis(1) started 2024-11-14 09:41:44.836 [info] [Info - 9:41:44 AM] (6028) Background analysis(2) root directory: file:///c%3A/Users/vting/.vscode-insiders/extensions/ms-python.vscode-pylance-2024.11.100/dist 2024-11-14 09:41:44.838 [info] [Info - 9:41:44 AM] (6028) Background analysis(2) started
The text was updated successfully, but these errors were encountered:
This would be a bug in the Python extension. It controls environment selection.
Sorry, something went wrong.
@ttSpace Does reloading after trust status change help with this?
@karthiknadig After reloading, the Python environment was displayed as expected.
Build of Visual Studio Code - Insiders: 1.96.0-insider Build of python-insider: 2024.21.2024111501 Build of pylance-insider: 2024.11.100
karthiknadig
No branches or pull requests
Environment data
Build of Visual Studio Code - Insiders: 1.96.0-insider
Build of python-insider: 2024.21.2024111301
Build of pylance-insider: 2024.11.100
Code Snippet
Repro Steps
Create a new directory somewhere on disk
Open VS Code
Open that new directory via File > Open Folder...
Create a new Jupyter notebook
Add the following to one of the cells. You should see an error squiggle under "str because the trailing quotes are missing:
x = "str
Save the notebook in the directory.
Run "Workspaces: Manage Workspace Trust" via the command palette
Press the "Don't Trust" button
In the pop-up window, select
Trust Folder & Continue
.Expected behavior
The python environment is loaded and displayed normally.
Actual behavior
The python environment cannot be displayed normally.
Logs
Output for
Python Language Server
in theOutput
panelThe text was updated successfully, but these errors were encountered: