Perl-LanguageServer icon indicating copy to clipboard operation
Perl-LanguageServer copied to clipboard

Provide some help on shutting down due to too many crashes

Open janlimpens opened this issue 4 years ago • 4 comments

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

janlimpens avatar Dec 16 '21 10:12 janlimpens

give this cmd a try

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

omena89 avatar Dec 16 '21 10:12 omena89

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.

janlimpens avatar Dec 16 '21 10:12 janlimpens

@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"

omena89 avatar Dec 16 '21 10:12 omena89

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

richterger avatar Mar 15 '22 15:03 richterger