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

Provide some help on shutting down due to too many crashes #122

Open
janlimpens opened this issue Dec 16, 2021 · 4 comments
Open

Provide some help on shutting down due to too many crashes #122

janlimpens opened this issue Dec 16, 2021 · 4 comments

Comments

@janlimpens
Copy link

janlimpens commented Dec 16, 2021

At least when the plugin can't connect to the server 5 times, and it stops trying, log output could tell people to try to restart the process. Ideally, this would be provided as an action (c-s-P). There also could be some action to allow retrying the process other than restarting code itself.

I do

sudo netstat -plten | grep 13603
kill -9 pid
@omena89
Copy link

omena89 commented Dec 16, 2021

give this cmd a try

ps ax | grep LanguageServer | grep -v \"grep\" | awk '{print $1}' | xargs kill; and reload vscode window

@janlimpens
Copy link
Author

ps ax | grep LanguageServer | grep -v "grep" | awk '{print $1}' | xargs kill;

That's a nice snippet!
For me, it was

ps ax | grep LanguageServer | grep -v grep | awk '{print $1}' | xargs kill;

, though.

@omena89
Copy link

omena89 commented Dec 16, 2021

@janlimpens sry. copy paste. this snippet is a copy from my vscode workspace. I installed the "adrianwilczynski.terminal-commands" extension for running this command in a console. but it should be working with the vscode buildin "Tasks"

@richterger
Copy link
Owner

pkill -f Lang is even shorter (maybe use LanguageServer in case there is another process with Lang in the name)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants