Description
What steps will reproduce the problem?
- go to anaconda
- open spyder console
- go to new file to add
Traceback
File "C:\Users\990112578\Anaconda3\lib\site-packages\spyder\plugins\editor\widgets\codeeditor.py", line 1295, in handle_hover_response
self._request_hover_clicked)
TypeError: CodeEditor.sig_display_object_info[str, bool].emit(): argument 1 has unexpected type 'list'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\990112578\Anaconda3\lib\logging\__init__.py", line 1025, in emit
msg = self.format(record)
File "C:\Users\990112578\Anaconda3\lib\logging\__init__.py", line 869, in format
return fmt.format(record)
File "C:\Users\990112578\Anaconda3\lib\logging\__init__.py", line 608, in format
record.message = record.getMessage()
File "C:\Users\990112578\Anaconda3\lib\logging\__init__.py", line 369, in getMessage
msg = msg % self.args
ValueError: incomplete format
Call stack:
File "C:\Users\990112578\Anaconda3\Scripts\spyder-script.py", line 10, in <module>
sys.exit(main())
File "C:\Users\990112578\Anaconda3\lib\site-packages\spyder\app\start.py", line 205, in main
mainwindow.main()
File "C:\Users\990112578\Anaconda3\lib\site-packages\spyder\app\mainwindow.py", line 3718, in main
mainwindow = run_spyder(app, options, args)
File "C:\Users\990112578\Anaconda3\lib\site-packages\spyder\app\mainwindow.py", line 3600, in run_spyder
app.exec_()
File "C:\Users\990112578\Anaconda3\lib\site-packages\spyder\plugins\completion\languageserver\client.py", line 360, in on_msg_received
self.req_reply[req_id](None, {'params': []})
File "C:\Users\990112578\Anaconda3\lib\site-packages\spyder\plugins\completion\languageserver\plugin.py", line 302, in receive_response
self.COMPLETION_CLIENT_NAME, req_id, response)
File "C:\Users\990112578\Anaconda3\lib\site-packages\spyder\plugins\completion\plugin.py", line 120, in receive_response
self._maybe_send_locked(req_id)
File "C:\Users\990112578\Anaconda3\lib\site-packages\spyder\plugins\completion\plugin.py", line 161, in _maybe_send_locked
send()
File "C:\Users\990112578\Anaconda3\lib\site-packages\spyder\plugins\completion\plugin.py", line 143, in send
self.gather_and_send(request_responses)
File "C:\Users\990112578\Anaconda3\lib\site-packages\spyder\plugins\completion\plugin.py", line 212, in gather_and_send
response_instance.handle_response(req_type, responses)
File "C:\Users\990112578\Anaconda3\lib\site-packages\spyder\plugins\editor\widgets\codeeditor.py", line 940, in handle_response
handler(params)
File "C:\Users\990112578\Anaconda3\lib\site-packages\spyder\plugins\editor\widgets\codeeditor.py", line 1308, in handle_hover_response
self.log_lsp_handle_errors("Error when processing hover")
File "C:\Users\990112578\Anaconda3\lib\site-packages\spyder\plugins\editor\widgets\codeeditor.py", line 971, in log_lsp_handle_errors
logger.error('%', 1, stack_info=True)
Message: '%'
Arguments: (1,)
Versions
- Spyder version: 4.0.1
- Python version: 3.7.6
- Qt version: 5.9.6
- PyQt5 version: 5.9.2
- Operating System: Windows 10
Dependencies
atomicwrites >=1.2.0 : 1.3.0 (OK)
chardet >=2.0.0 : 3.0.4 (OK)
cloudpickle >=0.5.0 : 1.3.0 (OK)
diff_match_patch >=20181111 : 20181111 (OK)
intervaltree : None (OK)
IPython >=4.0 : 7.12.0 (OK)
jedi =0.14.1 : 0.14.1 (OK)
nbconvert >=4.0 : 5.6.1 (OK)
numpydoc >=0.6.0 : 0.9.2 (OK)
pexpect >=4.4.0 : 4.8.0 (OK)
pickleshare >=0.4 : 0.7.5 (OK)
psutil >=0.3 : 5.6.7 (OK)
pygments >=2.0 : 2.5.2 (OK)
pylint >=0.25 : 2.4.4 (OK)
pyls >=0.31.2;<0.32.0 : 0.31.7 (OK)
zmq >=17 : 18.1.1 (OK)
qdarkstyle >=2.7 : 2.8 (OK)
qtawesome >=0.5.7 : 0.6.1 (OK)
qtconsole >=4.6.0 : 4.6.0 (OK)
qtpy >=1.5.0 : 1.9.0 (OK)
rtree >=0.8.3 : 0.9.3 (OK)
sphinx >=0.6.6 : 2.4.0 (OK)
spyder_kernels >=1.8.1;<2.0.0: 1.8.1 (OK)
watchdog : None (OK)
cython >=0.21 : 0.29.15 (OK)
matplotlib >=2.0.0 : 3.1.3 (OK)
numpy >=1.7 : 1.18.1 (OK)
pandas >=0.13.1 : 1.0.1 (OK)
scipy >=0.17.0 : 1.4.1 (OK)
sympy >=0.7.3 : 1.5.1 (OK)
Yes I created my environment using 3.7 this time instead of 3.6, no other changes, and found that so far I am not getting the hover hints error in Spyder 4.1.4. That’s progress for me. Thank you.
“all our tests run in Python 3.7.”
This sure is good to know. Long ago I chose to stay at 3.6 because some of the packages I was using weren’t available yet in 3.7. It seems like it is time for me to go to 3.7 now. I will try creating my virtual environment using 3.7. If all goes well that may get me past these issues.
Thank you.
Ok, thanks @dalthviz for the confirmation. I think I know what’s happening in this case.
@dalthviz, could you check what happens if you use Python 3.6 and Spyder 4.1.3?
@ccordoba12 @DanCodigaMWRA checking with Python 3.7.6 and conda-forge packages the hover hints worked. Just in case the packages list of the testing env created are: