The stylelint server crashed 5 times in the last 3 minutes. The server will not be restarted.

See original GitHub issue

description

When install stylelint globally, and set stylelint.stylelintPath to the global path, stylelint server crashes when vscode starts.

info

This is the vscode version info.

Version: 1.44.0
Commit: 2aae1f26c72891c399f860409176fe435a154b13
Date: 2020-04-08T08:23:56.137Z
Electron: 7.1.11
Chrome: 78.0.3904.130
Node.js: 12.8.1
V8: 7.8.279.23-electron.0
OS: Darwin x64 19.4.0

What vscode-stylelint configuration is needed to reproduce the bug?

  "stylelint.enable": true,
  "stylelint.stylelintPath": "/Users/username/.nvm/versions/node/v14.0.0/bin/stylelint",
  "editor.codeActionsOnSave": { "source.fixAll": true },

Is this issue related to autofix? (editor.codeActionsOnSave)

No.

Which version of vscode-stylelint are you using?

0.84.0

Which version of stylelint are you using?

13.3.3

Does your issue relate to non-standard syntax (e.g. SCSS, nesting, etc.)?

no

What did you expect to happen?

globally installed stylelint should work since configuration item stylelint.stylelintPath has been provided.

What actually happened (e.g. what warnings or errors you are getting)?

vscode 'official' extension crashed

This issue has nothing to do with style lint

Issue Analytics

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

github_iconTop GitHub Comments

4reactions
ota-meshicommented, Apr 24, 2020

It’s probably a problem with the library global-modules used by stylelint. It seems that using nvm may not return the correct global module path.

https://github.com/jonschlinkert/global-modules/issues/7

It may work if you specify the full path in config.

module.exports = {
  extends: [
    '/path/to/.../node_modules/stylelint-config-rational-order',
    // or 
    require.resolve('stylelint-config-rational-order'),
  ],
}
3reactions
ota-meshicommented, Apr 23, 2020

Hi @multics. I think that if you specify the Node module in “stylelint.stylelintPath”, it will work. e.g. "stylelint.stylelintPath": "/usr/local/lib/node_modules/stylelint" Even if “bin” is specified, it does not work.

Read more comments on GitHub >

github_iconTop Results From Across the Web

eslint server crashed 5 times in the last 3 minutes. the ... - GitHub
Eslint server crashes everytime I open VS code. I have added eslint.trace.server": "verbose to settings and unfortunately when the eslint server ...
Read more >
The Language Support for Java server crashed 5 times in the ...
The Language Support for Java server crashed 5 times in the last 3 minutes. The server will not be restarted. Any idea how...
Read more >
The language server crashed 5 times in the last 3 minutes. In c ...
I worked on a medium sized C project and at times it became so slow that I constantly have to restart VSCode.
Read more >
Unable to use intellisense - language server crashed 5 time in ...
cpptools client: couldn't create connection to server. The language server crashed 5 times in the last 3 minutes. It will not be restarted....
Read more >
Options - Stylelint
Stylelint does not throw an error when glob pattern matches no files. ... Use this option if you don't want Stylelint to search...
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