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.

Realtime code analysis stops working when non-ASCII characters are used in strings

See original GitHub issue

Hi everyone. Searched for the problem I’m about to report, and didn’t found anything. Please excuse me about any possible mistakes, as I’m not used to Github issue reporting.

Problem Description

Code highlighting and analysis suddenly stops as soon as you type any latin1 character inside the editor. Removing the character resumes the normal process.

(PLEASE NOTICE THE DIFFERENCE IN THE HIGHLIGHTED “ê”) As a Brazilian user (many ê, â, ã etc needs), this is somewhat frustrating.

with_mark

without_mark

Package Versions

  • Spyder: 3.2.8
  • Python: 3.6
  • PyQt: 5.9.2
  • Operating System: W10

Dependencies

IPython >=4.0    :  6.3.0 (OK)
cython >=0.21    :  0.28.2 (OK)
jedi >=0.9.0     :  0.11.1 (OK)
nbconvert >=4.0  :  5.3.1 (OK)
numpy >=1.7      :  1.14.2 (OK)
pandas >=0.13.1  :  None (NOK)
pycodestyle >=2.3:  2.3.1 (OK)
pyflakes >=0.6.0 :  1.6.0 (OK)
pygments >=2.0   :  2.2.0 (OK)
pylint >=0.25    :  1.8.3 (OK)
qtconsole >=4.2.0:  4.3.1 (OK)
rope >=0.9.4     :  0.10.7 (OK)
sphinx >=0.6.6   :  1.7.2 (OK)
sympy >=0.7.3    :  None (NOK)

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
ccordoba12commented, Jun 5, 2018

Yes, please.

0reactions
dalthvizcommented, Jun 5, 2018

@ccordoba12 we are already using enconding.get_coding here, should I change the behavior of the function to make possible the use of the chardet fallback directly and handle the expection here?

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Fix Non-ASCII Characters in a URL - Sitechecker
Open the code editor. · Press Ctrl + F to run a Find or Search command. · Enter [^\x00-\x7F]+ in the search box....
Read more >
Code Inspection: Non-ASCII characters | PhpStorm ... - JetBrains
Reports code elements that use non-ASCII symbols in an unusual context. ... Non-ASCII characters used in identifiers, strings, or comments.
Read more >
Dealing with non-ASCII characters when parsing fixed-width ...
Identify all non-ASCII characters that could come up so that I can adjust the parsing. This is an issue because the data are...
Read more >
Error "CHAR string contains invalid ASCII character" Occurs ...
Resolution. Option 1. Rename the generated name of the group and exclude Non-ASCII characters in Tableau Desktop. Option 2. Change the column ...
Read more >
If a file name has non-ascii characters then code completion in ...
If a file name has non-ascii characters then code completion in the editor stops working · Issue #770 · spyder-ide/spyder · GitHub.
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