Spyder froze completely while I was typing code. apparently it was caused by a blocking request to send something to the languageserver:
File "/usr/local/lib/python3.7/site-packages/zmq/sugar/socket.py", line 400 in send
File "/usr/local/lib/python3.7/site-packages/zmq/sugar/socket.py", line 611 in send_pyobj
File "/Users/quentinpeter/pyscripts/spyder/spyder/plugins/completion/languageserver/client.py", line 325 in send
File "/Users/quentinpeter/pyscripts/spyder/spyder/plugins/completion/languageserver/decorators.py", line 42 in wrapper
File "/Users/quentinpeter/pyscripts/spyder/spyder/plugins/completion/languageserver/client.py", line 394 in perform_request
File "/Users/quentinpeter/pyscripts/spyder/spyder/plugins/completion/languageserver/plugin.py", line 312 in send_request
File "/Users/quentinpeter/pyscripts/spyder/spyder/plugins/completion/plugin.py", line 248 in send_request
File "/Users/quentinpeter/pyscripts/spyder/spyder/plugins/editor/plugin.py", line 319 in send_completion_request
File "/Users/quentinpeter/pyscripts/spyder/spyder/plugins/editor/widgets/editor.py", line 2571 in perform_completion_request
File "/Users/quentinpeter/pyscripts/spyder/spyder/plugins/editor/widgets/codeeditor.py", line 983 in emit_request
File "/Users/quentinpeter/pyscripts/spyder/spyder/plugins/completion/decorators.py", line 22 in wrapper
File "/Users/quentinpeter/pyscripts/spyder/spyder/plugins/editor/widgets/codeeditor.py", line 3708 in insert_text
File "/Users/quentinpeter/pyscripts/spyder/spyder/plugins/editor/widgets/codeeditor.py", line 3885 in keyPressEvent
File "/Users/quentinpeter/pyscripts/spyder/spyder/plugins/editor/widgets/codeeditor.py", line 3686 in event
File "/Users/quentinpeter/pyscripts/spyder/spyder/app/mainwindow.py", line 3634 in run_spyder
File "/Users/quentinpeter/pyscripts/spyder/spyder/app/mainwindow.py", line 3735 in main
File "/Users/quentinpeter/pyscripts/spyder/spyder/app/start.py", line 204 in main
File "/Applications/Spyder.app/Contents/MacOS/Spyder", line 4 in <module>
applaunchservices >=0.1.7 : 0.2.1 (OK)
atomicwrites >=1.2.0 : 1.3.0 (OK)
chardet >=2.0.0 : 3.0.4 (OK)
cloudpickle >=0.5.0 : 1.2.2 (OK)
diff_match_patch >=20181111 : 20181111 (OK)
intervaltree : None (OK)
IPython >=4.0 : 7.10.2 (OK)
jedi =0.14.1 : 0.14.1 (OK)
nbconvert >=4.0 : 5.6.1 (OK)
numpydoc >=0.6.0 : 0.9.1 (OK)
pexpect >=4.4.0 : 4.7.0 (OK)
pickleshare >=0.4 : 0.7.5 (OK)
psutil >=0.3 : 5.6.5 (OK)
pygments >=2.0 : 2.4.2 (OK)
pylint >=0.25 : 2.4.4 (OK)
pyls >=0.31.2;<0.32.0 : 0.31.2 (OK)
zmq >=17 : 18.1.1 (OK)
qdarkstyle >=2.7 : 2.7 (OK)
qtawesome >=0.5.7 : 0.6.0 (OK)
qtconsole >=4.6.0 : 4.7.0.dev0 (OK)
qtpy >=1.5.0 : 1.9.0 (OK)
sphinx >=0.6.6 : 2.2.1 (OK)
spyder_kernels >=1.8.1;<2.0.0: 1.9.0.dev0 (OK)
watchdog : None (OK)
cython >=0.21 : 0.29.14 (OK)
matplotlib >=2.0.0 : 3.1.2 (OK)
numpy >=1.7 : 1.17.4 (OK)
pandas >=0.13.1 : 0.25.3 (OK)
scipy >=0.17.0 : 1.3.3 (OK)
sympy >=0.7.3 : 1.4 (OK)
will updating my version to master
fix this problem?
I lost quite a bit of code due to this bug already. Nothing too dramatic, yet annoying to have it multiple times per day.
Yes, this is fixed in master.
If I understand correctly this fix will be released in 4.0.2? I read the install instructions to run it from source but I'm wary of trying that and messing something up. Any ETA on 4.0.2 release?
4.1.0 coming in a few weeks
Thank you, that's awesome. I really love Spyder. Thanks for the support.
wehoo! i was almost about to switch to visual studio code. yet spyder still has a better interface for interactive computing
wehoo! i was almost about to switch to visual studio code.
@skjerns, does that mean that this error is fixed in master?
I think it was, but upgrading via pip
somehow crashed my spyder installation a few days later, so currently I have to stay on 4.0.1.
But as 4.1.0 is coming soon I'll wait until then and just set my autosave to 1 second.
Is there an update on 4.1 release? This behavior seems to bite me several times a day now.
Thanks
Sorry for that. We're still fixing some important bugs with code completion.
The release should be ready by the end of the week, at most.
Sorry for that. We're still fixing some important bugs with code completion.
The release should be ready by the end of the week, at most.
No worries, appreciate the update!
until then I set my auto-save option to 1 second, that way I'm not losing any code, as it prompts me to restore after freeze
until then I set my auto-save option to 1 second, that way I'm not losing any code, as it prompts me to restore after freeze
The recovery behavior of Spyder is one of many great features.
The recovery behavior of Spyder is one of many great features.
It costs us more time than expected to implement autosave and recovery correctly, so it's great to hear that it is appreciated.
Is it solvable by blocking the Language-server in the firewall or something?...
Could'nt start Spyder with Firejail and I dont know the server address that need blocking.
Also, WHY is Spyder trying to reach that server, perhaps I just want to code without online-fuzzle?
I think the language server is local, at least the options make me assume that.
Yes, it is local.
Most helpful comment
4.1.0 coming in a few weeks