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.

Linter stays half-dead on Windows

See original GitHub issue

demo.mp4 No clue how to reproduce, it’s a first; other spyder instance is running a TensorFlow session. Linter does detect #TODO and unused imports, but not syntax errors, and code folding fails. Kernel restart, Spyder restart, Anaconda Powershell Prompt restart didn’t help - didn’t try restarting computer, but think it’ll work.


Problems: (reproduced in 4.1.2)

  1. Syntax error red flag persists after fixing the error1
  2. Syntax errors no longer detected
  3. Unused variables no longer detected
  4. Code folding markers misplaced4
  5. Code folding folds only partially5

1: This is usually the first ‘symptom’; everything goes downhill from there. The red flags can be dismissed by cut-repasting the entire code in the file. 4: image 5: image

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
ccordoba12commented, May 17, 2020

@OverLordGoldDragon, thanks a lot for giving us a reproducible example!! That’s all we needed!

After hours of debugging I finally found the cause (it was Windows specific). Right now I’m preparing a pull request and the fix will be available in our 4.1.4 version (to be released in mid June).

2reactions
ccordoba12commented, May 17, 2020

Thanks for the pointer @OverLordGoldDragon! I confirmed this generates an internal error in Jedi, which probably kills the linter afterwards on Windows (that’s not the case on Linux, which is my main OS).

I’ll test on Windows later on to check if that’s the case.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Linter stays half-dead on Windows (again?) · Issue #13302 · spyder ...
The error you reported here is unrelated to the linter staying dead, and it was fixed in 4.1.4. Please wait until it's released...
Read more >
Half Dead - PCGamingWiki PCGW
Half Dead. From PCGamingWiki, the wiki about fixing PC games. This page is a stub: it lacks content and/or basic article components.
Read more >
Almost Dead Guy - TV Tropes
Heavily wounded and on the verge of death, the Almost Dead Guy manages to stay alive just long enough to answer a question,...
Read more >
Code quality rules overview - .NET - Microsoft Learn
A method has conditional code that always evaluates to true or false at run time. This leads to dead code in the false...
Read more >
Best PC games to buy 2022: The top games to add to your ...
Whether a game is good or not is often down to personal opinion, but we've crafted this list of fantastic PC games we've...
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