KeyError textDocumentSync when opening Spyder with a project
See original GitHub issueDescription
What steps will reproduce the problem?
- Close Spyder with a project open by clicking the “X” in the top right corner
- Open Spyder. Previous project opens.
- Issue reporter appears before the main window.
Traceback
File "/home/keoughs/anaconda3/lib/python3.7/site-packages/spyder/plugins/editor/lsp/client.py", line 306, in on_msg_received
handler(resp['params'])
File "/home/keoughs/anaconda3/lib/python3.7/site-packages/spyder/plugins/editor/lsp/client.py", line 365, in process_server_capabilities
if isinstance(server_capabilites['textDocumentSync'], int):
KeyError: 'textDocumentSync'
Versions
- Spyder version: 4.0.0b3
- Python version: 3.7.3
- Qt version: 5.9.6
- PyQt5 version: 5.9.2
- Operating System: Linux 2.6.32-754.14.2.el6.x86_64
Dependencies
pygments >=2.0 : 2.4.2 (OK)
qdarkstyle >=2.6.4: 2.7 (OK)
sphinx >=0.6.6 : 2.1.2 (OK)
psutil >=0.3 : 5.6.3 (OK)
pyls >=0.27.0 : 0.27.0 (OK)
nbconvert >=4.0 : 5.5.0 (OK)
pandas >=0.13.1 : 0.24.2 (OK)
numpy >=1.7 : 1.16.4 (OK)
sympy >=0.7.3 : 1.4 (OK)
cython >=0.21 : 0.29.11 (OK)
qtconsole >=4.5.0 : 4.5.1 (OK)
IPython >=4.0 : 7.6.0 (OK)
matplotlib >=2.0.0: 3.1.0 (OK)
pylint >=0.25 : 2.3.1 (OK)
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (7 by maintainers)
Top Results From Across the Web
Key error after updating Spider and Anaconda - Stack Overflow
Issue solved: the excel file was corrupted.
Read more >Projects — Spyder 5 documentation
Spyder allows you to associate a given directory with a Project, which automatically saves and restores the files you have open in the...
Read more >Working with Spyder — Spyder 5 documentation
Browse, interact with and open external programs in the in the Files pane ... Search for text or regular expressions across your entire...
Read more >Spyder-ide error - General Discussion - Clear Linux OS Forum
Hello everyone. I have installed the python-data-science bundle (which include spyder-ide) but the program don't start.
Read more >CHANGELOG.md · albert_yl/Spyder - Gitee.com
Spyder (前身是 Pydee) 是一个强大的交互式 Python 语言开发环境,提供高级的代码编辑、交互测试、调试等特性,支持包括 Windows、Linux 和 OS X.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I’ll set up my boot method to enable verbose debugging and grab them next time I see the traceback. It’s less consistent now than it was with beta2, so it might take a few days.
@Keou0007, to generate those logs, you need to start Spyder with the following option from the command line:
Then you can upload here the two log files present in
~/.config/spyder-py3-dev/lsp-logs
(i.e.client_python.log
andserver_python.log
).Thanks for your help!