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

"Cannot read property 'toLowerCase' of null" #1195

Closed
Awyssa opened this issue Mar 5, 2021 · 6 comments
Closed

"Cannot read property 'toLowerCase' of null" #1195

Awyssa opened this issue Mar 5, 2021 · 6 comments
Labels
info-needed Issue requires more information from poster

Comments

@Awyssa
Copy link

Awyssa commented Mar 5, 2021

Hello, apologies in advance as I can see this issue has come up before, but I still have no workaround.

TypeError: Cannot read property 'toLowerCase' of null
    at Object.e.fromString (/Users/ernest/.vscode/extensions/dbaeumer.vscode-eslint-2.1.14/client/out/extension.js:1:44688)
    at R.refreshTrace (/Users/ernest/.vscode/extensions/dbaeumer.vscode-eslint-2.1.14/client/out/extension.js:1:139367)
    at R.initialize (/Users/ernest/.vscode/extensions/dbaeumer.vscode-eslint-2.1.14/client/out/extension.js:1:131626)
    at /Users/ernest/.vscode/extensions/dbaeumer.vscode-eslint-2.1.14/client/out/extension.js:1:131226
[Info  - 5:39:46 PM] ESLint server running in node v12.18.3

tried removing the "eslint.trace.server", and/or changing it, but to no avail. Did uninstall on npm and vscode, still same issue. Cannot resolve issue.

Maybe I am being very stupid and it's an obvious fix, or perhaps many others are having the same issue and we can all resolve this together. Please request more info if needed.

@dbaeumer
Copy link
Member

dbaeumer commented Mar 8, 2021

@Awyssa do you have any null value in your settings (user or workspace)?

@dbaeumer dbaeumer added the info-needed Issue requires more information from poster label Mar 8, 2021
@Awyssa
Copy link
Author

Awyssa commented Mar 11, 2021

Hi Dirk, thanks for the response! 
I did indeed. My VSCode settings were setting the trace.server to null, was silly of me to not check that initially. Followed these steps to fix it, just in case anyone else ran into this.

Open settings.json in VSCode, not the one that says default settings
See if you’ve got the line 'eslint.trace.server: null'
If it is in there then remove it.

Thanks again for the response, and hope this serves anyone else some assistance.

@Awyssa Awyssa closed this as completed Mar 11, 2021
@Awyssa Awyssa reopened this Mar 15, 2021
@dbaeumer
Copy link
Member

@Awyssa can you comment why you reopened. The issue got fixed in the LSP libraries but not imported into ESLint yet.

@Awyssa Awyssa closed this as completed Mar 16, 2021
@Awyssa
Copy link
Author

Awyssa commented Mar 16, 2021

@dbaeumer reopened by mistake, the issue is resolved. apologies for the confusion.

@dbaeumer
Copy link
Member

No, I was asking if there was a reason why you reopened it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
info-needed Issue requires more information from poster
Projects
None yet
Development

No branches or pull requests

2 participants