-
Notifications
You must be signed in to change notification settings - Fork 22
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
Cut down initialization time for debugger (and server) #51
Comments
Can you make sure that the language server itself is fully started before you press F5? It works w/o any problem on my side. |
But indeed, if you press F5 immediately after the project is opened, it will give you |
It seems that the only
And, after the debug process started successfully, the
So, it seems that the problem is caused by the slow initialization of |
This might be (and should be) tolerated, because it takes some round trips for the server to communicate with the editor to start the debugger. Will look into refactorings to accelerate the initialization but not in high priority. |
Please note the following conclusion which I've drawn previously:
This method, especially starting the terminal version with the |
I don't see why it is a fix, since invoking another process will take even longer time. According to my measures, the current initialization time for the server is ~3.47s. Opening the debug port adds ~0.02s while running the |
On Ubuntu 20.04, I use the latest stable
vscode
and the git master version oflsp-wl
. I noticed the following strange problem: after login into the system, the first time running of the "Start Debugging F5" with thelsp-wl
will fail with the following error:The easy and quick way to fix this problem is running the
math
ormathematica
commands once. Other workarounds, based on my observation, including, but may not be limited to, the following way: Click on the "Cancel", and then re-run the "Start Debugging F5" for several times, the problem will finally disappear.Afterwards, if I close the
vscode
, then restart it, the problem doesn't appear again. More specifically, the problem occurs only whenF5
is called fromvscode
for the first time after logging into the system.Regards,
HY
The text was updated successfully, but these errors were encountered: