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

Failed to lint Untitled JavaScript file. #295

Closed
chenxsan opened this issue Sep 12, 2017 · 1 comment
Closed

Failed to lint Untitled JavaScript file. #295

chenxsan opened this issue Sep 12, 2017 · 1 comment

Comments

@chenxsan
Copy link
Contributor

chenxsan commented Sep 12, 2017

I just created a new Untitled file, and add some js code, then changed language mode to javascript, and got this in OUTPUT panel:

[Info  - 2:28:55 PM] ESLint server is running.
[Info  - 2:28:56 PM] ESLint library loaded from: /Users/sam/Documents/tmp/test-standard-js/node_modules/eslint/lib/api.js
(node:59569) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: Request workspace/configuration failed with message: Cannot read property 'name' of undefined
(node:59569) DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
(node:59569) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): Error: Request workspace/configuration failed with message: Cannot read property 'name' of undefined

The problem is at https://github.com/Microsoft/vscode-eslint/blob/master/client/src/extension.ts#L527, since the workspaceFolder value of Untitled is undefined.

I just don't know how to fix it with the latest code.

@dbaeumer
Copy link
Member

Published 1.3.1

@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 21, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants