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.

Spyder steals my letters!

See original GitHub issue

Issue Report Checklist

  • Searched the issues page for similar reports
  • Read the relevant sections of the Spyder Troubleshooting Guide and followed its advice
  • Reproduced the issue after updating with conda update spyder (or pip, if not using Anaconda)
  • Could not reproduce inside jupyter qtconsole (if console-related)
  • Tried basic troubleshooting (if a bug/error)
    • Restarted Spyder
    • Reset preferences with spyder --reset
    • Reinstalled the latest version of Anaconda
    • Tried the other applicable steps from the Troubleshooting Guide
  • Completed the Problem Description, Steps to Reproduce and Version sections below

Problem Description

Spyder steals letters and give them back as a block at a latter point.

What steps reproduce the problem?

  1. Create a new file (I created test.py on the Desktop)
  2. Type the following as fast as you can:
import numpy as np
np.asarray()
np.asarray()
np.asarray()
np.asarray()
np.asarray()
  1. Save the file under a new name (I save it as test2.py on the Desktop)

What is the expected output? What do you see instead?

I expect to see what I typed. instead I see:

import numpy as np
np.asaray()
np.asarray()
np.asaray()
np.asaray()
np.asaray()
rrrr

In this case only the r are missing, but I had parenthesis and other letters missing in the same way. The rrrr at the end appeared when I saved the file under a new name.

Paste Traceback/Error Below (if applicable)

NA

Versions

  • Spyder version: Spyder 4.0.0.dev0 (Commit: 2c90e2aea)
  • Python version: Python 3.7.3 64-bit
  • Qt version: Qt 5.9.1
  • PyQt version: PyQt5 5.9
  • Operating System name/version: Darwin 18.5.0

Dependencies

pygments >=2.0 : 2.3.1 (OK) qdarkstyle >=2.6.4: 2.6.5 (OK) sphinx >=0.6.6 : 1.8.5 (OK) psutil >=0.3 : 5.6.1 (OK) pyls >=0.19.0 : 0.25.0 (OK) nbconvert >=4.0 : 5.4.1 (OK) pandas >=0.13.1 : 0.24.2 (OK) numpy >=1.7 : 1.16.2 (OK) sympy >=0.7.3 : 1.3 (OK) cython >=0.21 : 0.29.6 (OK) qtconsole >=4.2.0 : 4.5.0.dev0 (OK) IPython >=4.0 : 7.3.0 (OK) matplotlib >=2.0.0: 3.0.3 (OK) pylint >=0.25 : 2.3.1 (OK)

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
ccordoba12commented, May 7, 2019

Nop, don’t worry. You’re right that PR #9260 is going to fix this.

1reaction
impact27commented, May 3, 2019

I solved it by removing

         elif text in self.auto_completion_characters: 
             self.insert_text(text) 
             if not self.in_comment_or_string(): 
                 last_obj = getobj(self.get_text('sol', 'cursor')) 
                 if last_obj and not last_obj.isdigit(): 
                     self.do_completion(automatic=True) 

It is a bit annoying anyway to have the widget appearing randomly. If I want code completion I can press <tab>. Is there a way to do that from the options? There is probably an underlying bug but I suspect it is with Qt. Something like: If you receive an event while processing another event, it is not queued properly?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Thread: Has anyone had a Spyder stolen? - SpyderLovers.com
Just curious if anyone knows of an incident where a Spyder was stolen where the thief did not have access to a key?...
Read more >
conda install spyder=5.3.3 stuck on solving env - Stack Overflow
Spyder has an issue where input() will cause an issue to the app. I've heard that spyder 5.3.3 has this issue fixed. I...
Read more >
Python Intro for Libraries
Once you have installed Python and the Spyder IDE requirements, ... The characters (individual letters, numbers, and so on) in a string are...
Read more >
Grandmother Spider Steals the Sun
When you have finished the story map, write a sentence under each picture to describe what is happening. Remember to use capital letters...
Read more >
Tricksters 1 Anansi Tries to Steal All the Wisdom in the World ...
spider. "I am climbing this tree with my gourd full of wisdom," Anansi replied. "But ... The nex' day, Anansi come back with...
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