-
Notifications
You must be signed in to change notification settings - Fork 38
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
crash when notebooks are present in the workspace and diagnosticMode
is "workspace"
#1055
Comments
looks like it's failing on that jupyter notebook file. are you able to provide the content of that notebook or at least a cut down version of it that reproduces the issue? |
{
"cells": [
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"v = 10"
]
}
],
"metadata": {
"kernelspec": {
"display_name": ".venv",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.6"
}
},
"nbformat": 4,
"nbformat_minor": 2
}
|
Just a guess, but it works fine on small/individual notebooks. Only when you set the analysis mode to 'workspace' / analyse huge jupyter files, does the server become unable to process. This is due to VSCode unable to dedicate enough memory to the Language Servers. I believe both the Pylance and the Typescript Extensions allow you to load the Language Servers with an External Node Executable, to start the Language Server as an external process rather than a VSCode Sub-process. Since Pylance is closed-source, a peek at the in-built Typescript extension source code might reveal how exactly does this offloading to external Node Executable works. |
@RagelVarma it could be that. I tried trimming down my repo to the bare minimum, until I had only two notebooks left. Each has about 250 LOC. If I keep both, I get the aforementioned error. If I delete one, or the other, then basedpyright works. This proves the issue is not my setup or the notebooks themselves |
does it happen if you cut down the size of the notebooks? if you could provide the contents of both notebooks that would help me reproduce it |
I was able to create a minimal example. Extract example.zip, open only You also need in
|
FWIW, I tried the same on vscodium v1.94.0 and observed the issue |
diagnosticMode
is "workspace"
reproduced, thanks |
diagnosticMode
is "workspace"
diagnosticMode
is "workspace"
I just updated to v1.27.0 and the extension is panicking. Previous version works fine.
IDE info (cursor)
Error logs
The text was updated successfully, but these errors were encountered: