question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

PyLS freezes spyder

See original GitHub issue

Description

Spyder froze completely while I was typing code. apparently it was caused by a blocking request to send something to the languageserver:

What steps will reproduce the problem?

Traceback

  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>

Versions

  • Spyder version: 4.1.0.dev0 d01f324e0
  • Python version: 3.7.5
  • Qt version: 5.12.6
  • PyQt5 version: 5.12.3
  • Operating System: Darwin 19.2.0

Dependencies

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)

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:17 (11 by maintainers)

github_iconTop GitHub Comments

2reactions
goanpecacommented, Feb 14, 2020

4.1.0 coming in a few weeks

1reaction
skjernscommented, Mar 11, 2020

I think the language server is local, at least the options make me assume that.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Common Illnesses — Spyder 5 documentation
Most help and completion issues lie outside of Spyder's control, and are either limitations with PyLS or the code that is being introspected,...
Read more >
conda install spyder stuck on solving environment - You.com
Collecting package metadata (repodata.json): done Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Read more >
Program crashes in Pycharm debugger, but not in regular ...
I'm trying to use Pycharm to run and debug the Spyder IDE ... Installing PyLS locally unknown option --port usage: ...
Read more >
Bugs : pyls-spyder package : Ubuntu - Launchpad
Ubuntu ubuntu-23.04 (2023-04-20) Ubuntu ubuntu-23.04-beta (2023-03-30) Ubuntu ubuntu-23.04-feature-freeze (2023-02-23) Ubuntu xenial-updates (2021-04-21) ...
Read more >
FS#70689 : [python-spyder-kernels] spyder crashs at startup.
With the recent update to python-tomli, spyder crashes again with the following error: ... Yes sorry, you should indeed also install python-pyls-spyder from ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found