Pressing Ctrl+V inside a snippet is generating an error
See original GitHub issueDescription
What steps will reproduce the problem?
import matplotlib.pyplot as plt
plt.plot(<Ctrl+V>)
I just pressed ctrl + v inside closed paranthesis and the error occured
Traceback
File "C:\Users\Lenovo\Anaconda3\lib\site-packages\spyder\plugins\editor\extensions\snippets.py", line 52, in wrapper
return f(self, *args, **kwargs)
File "C:\Users\Lenovo\Anaconda3\lib\site-packages\spyder\plugins\editor\extensions\snippets.py", line 236, in _process_text
self.insert_text(text, line, column)
File "C:\Users\Lenovo\Anaconda3\lib\site-packages\spyder\plugins\editor\extensions\snippets.py", line 383, in insert_text
first_token = token_nodes[0]
IndexError: list index out of range
WARNING:spyder.widgets.github.backend:Failed to send bug report on Github. response={'code': 401, 'json': {'message': 'Bad credentials', 'documentation_url': 'https://developer.github.com/v3'}}
WARNING:spyder.widgets.github.backend:Failed to send bug report on Github. response={'code': 401, 'json': {'message': 'Bad credentials', 'documentation_url': 'https://developer.github.com/v3'}}
WARNING:spyder.widgets.github.backend:Failed to send bug report on Github. response={'code': 401, 'json': {'message': 'Bad credentials', 'documentation_url': 'https://developer.github.com/v3'}}
WARNING:spyder.widgets.github.backend:Failed to send bug report on Github. response={'code': 401, 'json': {'message': 'Bad credentials', 'documentation_url': 'https://developer.github.com/v3'}}
Versions
- Spyder version: 4.0.0b7
- Python version: 3.7.4
- Qt version: 5.11.2
- PyQt5 version: 5.11.3
- Operating System: Windows 10
Dependencies
cloudpickle >=0.5.0 : 1.2.2 (OK)
pygments >=2.0 : 2.4.2 (OK)
qtconsole >=4.5.5 : 4.5.5 (OK)
nbconvert >=4.0 : 5.6.0 (OK)
sphinx >=0.6.6 : 2.2.1 (OK)
pylint >=0.25 : 2.4.3 (OK)
psutil >=0.3 : 5.6.3 (OK)
qtawesome >=0.5.7 : 0.6.0 (OK)
qtpy >=1.5.0 : 1.9.0 (OK)
pickleshare >=0.4 : 0.7.5 (OK)
zmq >=17 : 18.1.0 (OK)
chardet >=2.0.0 : 3.0.4 (OK)
numpydoc >=0.6.0 : 0.9.1 (OK)
spyder_kernels >=1.5.0;<2.0.0: 1.6.0 (OK)
qdarkstyle >=2.7 : 2.7 (OK)
atomicwrites >=1.2.0 : 1.3.0 (OK)
diff_match_patch >=20181111 : 20181111 (OK)
watchdog : None (OK)
keyring : None (OK)
pexpect >=4.4.0 : 4.7.0 (OK)
pympler : None (OK)
sympy >=0.7.3 : 1.4 (OK)
cython >=0.21 : 0.29.13 (OK)
IPython >=4.0 : 7.9.0 (OK)
matplotlib >=2.0.0 : 3.1.1 (OK)
pandas >=0.13.1 : 0.25.2 (OK)
numpy >=1.7 : 1.16.5 (OK)
scipy >=0.17.0 : 1.3.1 (OK)
pyls >=0.28.2;<0.29.0 : 0.28.3 (OK)
rtree >=0.8.3 : 0.8.3 (OK)
Issue Analytics
- State:
- Created 4 years ago
- Comments:8 (8 by maintainers)
Top Results From Across the Web
Your browser doesn't allow you to paste this way. Press Ctrl+V ...
A button "paste as plain text" doesn't work in windows firefox now. It says "Your browser does not allow you to paste plain...
Read more >In Visual Studio Code Ctrl+V is not working - Stack Overflow
Open the keyboard shortcuts preferences by pressing CTRL + SHIFT + P and search for open keyboard shortcuts file. Then ...
Read more >Fix program errors and improve code - Visual Studio (Windows)
In this article, find out how Visual Studio can help you find ... Press Ctrl+G to quickly jump to the line number where...
Read more >Video: Cut, copy, and paste - Microsoft Support
or press Ctrl + C. Clipboard. After you've cut or copied content, like from the web or another app, select Clipboard in ......
Read more >Keyboard shortcuts - Visual Studio (Windows) | Microsoft Learn
Learn about the default keyboard shortcuts in Visual Studio that allow you ... Show mobile service script error details, Ctrl+Num *, Ctrl+D ...
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 FreeTop 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
Top GitHub Comments
Ok, please take a look at that error instead.
@dalthviz, please try to replicate this one to see if it’s still an error in master. It’s weird because I could replicate it as soon as it came up.