spyder: Completion and linting in the editor for Python files will not work during current session, or stopped working.
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(orpip, 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
After a few seconds of opening Spyder, I get the message in the title of the issue. LSP Python is down. Linting and completion work for a few seconds when opening Spyder, then stopped and the pop up shows again. Same problem as the one describe on #11026. As requested there, I’m opening a new issue.
Steps taken that didn’t help the issue
- Running
conda update -all - Reinstalled Anaconda.
- Running
spyder --reset - Unable to reproduce issue on Windows.
What steps reproduce the problem?
- Open Spyder.
- Wait a few seconds.
- The pop-up shows again.
Versions
- Spyder version: 4.1.4
- Python version: 3.7.7
- Operating System name/version: macOS 10.15.6
Screenshots
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 2
- Comments: 18 (9 by maintainers)
Yes! Working now. Thanks so much!
It seems that there’s a problem in the environment, so to fix it please go to
User\Anaconda\envs\not-working-env\Lib\site-packagesinside that folder please run in cmdDEL /Q /F /S "*.pyc"After that the LSP should be working fine, please let me know if this fixes the issue@steff456 seems that the problem was resolved by a clean installation. Thanks.
Hi @joseavegaa, That sounds like a nice idea, please let me know if reinstalling Anaconda your problem is fixed
Hi @joseavegaa, Can you please create a new conda environment and run spyder from there? Maybe the
conda update -alldamaged something in your environment.Please let me know if that works