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.

[coc.nvim] The "python" server crashed 4 times in the last 3 minutes. The server will not be restarted

See original GitHub issue

Hi, I’m not sure what happened recently, but I don’t think I changed anything in my config other than updating everything, and now whenever I open a Python file, I hear the Pyright language server spinning up the CPU usage and after a while, it seems to be crashing and I see the message “… server crashed 4 times …”.

I’d really appreciate if you help me solve this issue because it basically killed my usual workflow of using neovim with Python files 🙁

What’s the output of :CocCommand pyright.version [coc.nvim] coc-pyright 1.1.156 with Pyright 1.1.156

What’s the output of :CocCommand workspace.showOutput Pyright

Workspace: /data/github/wrk
Using python from /data/github/wrk/.direnv/python-3.9.6/bin/python

[Info  - 12:13:24 p.m.] Pyright language server 1.1.156 starting
[Info  - 12:13:25 p.m.] Server root directory: /home/farzad/.config/coc/extensions/node_modules/coc-pyright/node_modules/pyright/dist/

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
farzadmfcommented, Jul 20, 2021

Hey @fannheyward , just wanted to thank you again for finding out the root issue

All this time, I was getting duplicate diagnostics etc and the reason I think was that I had both coc-python and coc-pyright installed. Today, I opened a Python file and it’s much better.

I’m happy that I opened this issue 😆

1reaction
fannheywardcommented, Jul 20, 2021

how you found out

  1. The "python" server crashed ..., if Pyright failed, the message should be Pyright server. This why I ask you the output of :CocList extensions
  2. The Python interpreter informations in your status line. coc-pyright doesn’t show this
  3. And the python.setInterpreter command

It’s ok for this issue, glad to help you.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error: The "java" server crashed 5 times in the last 3 ... - GitHub
nvim ] The "java" server crashed 5 times in the last 3 minutes. The server will not be restarted. I'm on linux and...
Read more >
neoclide/coc.nvim - Gitter
[coc.nvim] The "languageserver.python" server crashed 5 times in the last 3 minutes. The server will not be restarted. my coc-settings.json
Read more >
coc-java The java server crashed 5 times in the last 3 minutes
This happened to me alot, fixed it by doing :CocCommand java.clean.workspace After u do that restart coc and it should work fine, usually...
Read more >
coc-java server gets crashed - Vi and Vim Stack Exchange
[coc.nvim] The "java" server crashed 4 times in the last 3 minutes. The server will not be restarted. I review the :CocCommand workspace....
Read more >
The Python Tools server crashed 5 times in the last 3 minutes ...
I had a similar issue, which I resolved based on this answer. What I found was opening the folders individually seemed to work...
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