You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't know how to reproduce the issue. However, It happened before. I copied a file name from the file explorer (I'm using CentOS) into the code. That worked fine. Afterwards I tried to copy/paste a line of code and still, the previous file location was copied. The clipboard works fine for other applications, even after this error in spyder. However, after replacing the clipboard contents in another application and trying to paste into spyder, it does not paste anything and opens this Issue reporter instead.
Thanks for the amazing work, fixing bugs and making spyder!!!
Traceback
Traceback (most recent call last):
File "/home/jestubbe/.conda/envs/sitkpy/lib/python3.8/site-packages/spyder/plugins/editor/widgets/codeeditor.py", line 2831, in paste
text = urls[0].toLocalFile().replace(osp.os.sep, '/')
IndexError: list index out of range
Traceback (most recent call last):
File "/home/jestubbe/.conda/envs/sitkpy/lib/python3.8/site-packages/spyder/plugins/editor/widgets/codeeditor.py", line 2831, in paste
text = urls[0].toLocalFile().replace(osp.os.sep, '/')
IndexError: list index out of range
Traceback (most recent call last):
File "/home/jestubbe/.conda/envs/sitkpy/lib/python3.8/site-packages/spyder/plugins/editor/widgets/codeeditor.py", line 2831, in paste
text = urls[0].toLocalFile().replace(osp.os.sep, '/')
IndexError: list index out of range
Versions
Spyder version: 5.1.5
Python version: 3.8.12
Qt version: 5.9.7
PyQt5 version: 5.9.2
Operating System: Linux 3.10.0-1160.31.1.el7.x86_64
Hey @edus-apps, thanks for reporting. I don't understand very well how this error happens, but we can catch and pass on it so it doesn't appear anymore.
The fix will be available in our next version (5.3.0), to be released next week.
Description
What steps will reproduce the problem?
I don't know how to reproduce the issue. However, It happened before. I copied a file name from the file explorer (I'm using CentOS) into the code. That worked fine. Afterwards I tried to copy/paste a line of code and still, the previous file location was copied. The clipboard works fine for other applications, even after this error in spyder. However, after replacing the clipboard contents in another application and trying to paste into spyder, it does not paste anything and opens this Issue reporter instead.
Thanks for the amazing work, fixing bugs and making spyder!!!
Traceback
Versions
Dependencies
The text was updated successfully, but these errors were encountered: