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

Flake8 client: couldn't create connection to the server #329

Closed
AlexUmnov opened this issue Sep 12, 2024 · 1 comment
Closed

Flake8 client: couldn't create connection to the server #329

AlexUmnov opened this issue Sep 12, 2024 · 1 comment
Labels
bug Issue identified by VS Code Team member as probable bug triage-needed

Comments

@AlexUmnov
Copy link

Diagnostic Data

  • Python version (& distribution if applicable, e.g., Anaconda): miniconda3, python 3.8.18
  • Type of virtual environment used (e.g., conda, venv, virtualenv, etc.): conda
  • Operating system (and version): macOS 14.6.1
  • Version of tool extension you are using: v2023.10.0

Behaviour

Expected Behavior

For the plugin to work

Actual Behavior

It doesn't work.
I receive this error:
Flake8 client: couldn't create connection to the server

Reproduction Steps:

It happenes when I run with command palette "Flake8: Restart server"

Logs:

Click here for detailed logs Comment: I've removed all of my personal details 2024-09-12 09:17:10.228 [info] Launching server using command /Users//opt/miniconda3/bin/python failed. Error: spawn /Users//opt/miniconda3/bin/python ENOENT 2024-09-12 09:17:10.228 [error] Server: Start failed: Launching server using command /Users//opt/miniconda3/bin/python failed. Error: spawn /Users//opt/miniconda3/bin/python ENOENT 2024-09-12 09:18:23.690 [info] Interpreter from setting flake8.interpreter: /Users//opt/miniconda3/bin/python 2024-09-12 09:18:23.690 [info] Server: Stop requested 2024-09-12 09:18:23.691 [error] Server: Stop failed: Error: Client is not running and can't be stopped. It's current state is: startFailed 2024-09-12 09:18:23.691 [info] Interpreter from setting flake8.interpreter: /Users//opt/miniconda3/bin/python 2024-09-12 09:18:23.699 [info] Server run command: /Users//opt/miniconda3/bin/python /Users//.vscode/extensions/ms-python.flake8-2023.10.0/bundled/tool/lsp_server.py 2024-09-12 09:18:23.700 [info] Server: Start requested. 2024-09-12 09:18:23.700 [debug] Server State: Starting 2024-09-12 09:18:23.711 [debug] Server State: Stopped 2024-09-12 09:18:23.711 [info] [Error - 09:18:23] Flake8 client: couldn't create connection to server. 2024-09-12 09:18:23.712 [info] Launching server using command /Users//opt/miniconda3/bin/python failed. Error: spawn /Users//opt/miniconda3/bin/python ENOENT 2024-09-12 09:18:23.712 [error] Server: Start failed: Launching server using command /Users//opt/miniconda3/bin/python failed. Error: spawn /Users//opt/miniconda3/bin/python ENOENT

Outcome When Attempting Debugging Steps:

Did running it from the command line work? Attempting to run in the command line gives me no errors, and no other output either.

Extra Details

I was installing different linters and I saw that originally Flake8 worked and I could see the linting results. However, after installing something else it broke somehow.
I also installed Black linter extension and https://marketplace.visualstudio.com/items?itemName=demystifying-javascript.python-extensions-pack
I've since tried to remove all the corresponding folders for those extensions, but this didn't help.

@AlexUmnov AlexUmnov added the bug Issue identified by VS Code Team member as probable bug label Sep 12, 2024
@AlexUmnov
Copy link
Author

Full purge and reinstall helped

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue identified by VS Code Team member as probable bug triage-needed
Projects
None yet
Development

No branches or pull requests

1 participant