Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError when getting text snippets #14183

Closed
leavor opened this issue Nov 10, 2020 · 5 comments · Fixed by #14185 or #14186
Closed

TypeError when getting text snippets #14183

leavor opened this issue Nov 10, 2020 · 5 comments · Fixed by #14185 or #14186

Comments

@leavor
Copy link

leavor commented Nov 10, 2020

Problem Description

The problem encountered by chance cannot be reproduced. It can be determined that the "sequence" is None under certain special circumstances.

image

Versions

  • Spyder version: 4.2.0
  • Python version: 3.7.6
  • Qt version: 5.12.9
  • PyQt version: 5.12.3
  • Operating System name/version: win10
@ccordoba12
Copy link
Member

I don't understand what you mean by this. Could you clarify it?

@ccordoba12 ccordoba12 self-assigned this Nov 10, 2020
@ccordoba12
Copy link
Member

Sorry, I understood it after seeing your screenshot. We'll fix it in our next version.

@ccordoba12 ccordoba12 changed the title spyder internal error TypeError when getting text snippets Nov 10, 2020
@ccordoba12 ccordoba12 added this to the v4.2.1 milestone Nov 10, 2020
@ElieGouzien
Copy link
Contributor

ElieGouzien commented Nov 10, 2020

I can confirm this issue. Not sure why it happens for me and @leavor, but for sure we are not alone, and as the bug window appear as soon as I start typing, it's a critical bug.

I propose a quick fix in #14185, that I suggest to be released as soon as possible.

@ElieGouzien
Copy link
Contributor

I was finally able to reproduce this bug (in 4.2.0).

  1. Create a file containing
def f_g():
    pass

f_g()
  1. put the cursor at the beggining of line f_g()
  2. type _, _ ; the error should pop when writing the last _

@ElieGouzien
Copy link
Contributor

And now I'm able to reproduce it, I withdraw what I said about criticality, it's a definitely not a critical bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment