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

Putout doesn't work in VS Code via ESLint #48

Closed
EvgenyOrekhov opened this issue Jan 28, 2021 · 3 comments
Closed

Putout doesn't work in VS Code via ESLint #48

EvgenyOrekhov opened this issue Jan 28, 2021 · 3 comments

Comments

@EvgenyOrekhov
Copy link

VS Code comes bundled with Node v12, but Putout now requires Node v14.

image

ESLint with Putout just doesn't work, this is what I get in VS Code log:

[Info  - 2:41:11 PM] ESLint server is starting
[Info  - 2:41:12 PM] ESLint server running in node v12.14.1
[Info  - 2:41:12 PM] ESLint server is running.
[Info  - 2:41:16 PM] ESLint library loaded from: C:\eslint-config-hardcore\node_modules\eslint\lib\api.js
[Info  - 2:41:21 PM] Failed to load plugin 'putout' declared in '.eslintrc.json » ./index.json » ./base.json': Cannot find module 'putout/parse-options' Require stack: - C:\eslint-config-hardcore\node_modules\eslint-plugin-putout\lib\putout\index.js - C:\eslint-config-hardcore\node_modules\eslint-plugin-putout\lib\index.js - C:\eslint-config-hardcore\node_modules\@eslint\eslintrc\lib\config-array-factory.js - C:\eslint-config-hardcore\node_modules\@eslint\eslintrc\lib\index.js - C:\eslint-config-hardcore\node_modules\eslint\lib\cli-engine\cli-engine.js - C:\eslint-config-hardcore\node_modules\eslint\lib\cli-engine\index.js - C:\eslint-config-hardcore\node_modules\eslint\lib\api.js - c:\Users\user\.vscode\extensions\dbaeumer.vscode-eslint-2.1.14\server\out\eslintServer.js
coderaiser added a commit that referenced this issue Jan 28, 2021
@coderaiser
Copy link
Owner

coderaiser commented Jan 28, 2021

2021-03-02 electron with node v14 support became stable.
For now fixed with 0c55eca.

Landed to:
🎈 putout v14.0.2
🎈 eslint-plugin-putout v7.0.1

Is it works for you?

@EvgenyOrekhov
Copy link
Author

Thank you, it works now!

BTW, note that VS Code might not migrate to Electron v12 right after its release, they might do it several months later.

@coderaiser
Copy link
Owner

Looks like node v14 already supported by vs code🎈.

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

No branches or pull requests

2 participants