-
-
Notifications
You must be signed in to change notification settings - Fork 593
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
initializationOptions: Cannot read property 'config' of undefined #1341
Labels
Comments
In my (unsuccessful) attempts to use VLS in atom, I have gotten rid of the errors by moving It clears up the errors, but I am still not getting messages from the language server in atom. - logger.setLevel(_.get(params.initializationOptions.config, ['vetur', 'dev', 'logLevel'], 'INFO'));
+ logger.setLevel(_.get(params.initializationOptions, ['config', 'vetur', 'dev', 'logLevel'], 'INFO'));
|
Any workaround? |
zulus
added a commit
to zulus/vetur
that referenced
this issue
May 7, 2020
zulus
added a commit
to zulus/vetur
that referenced
this issue
May 7, 2020
zulus
added a commit
to zulus/vetur
that referenced
this issue
May 8, 2020
zulus
added a commit
to zulus/vetur
that referenced
this issue
May 8, 2020
zulus
added a commit
to zulus/vetur
that referenced
this issue
May 10, 2020
Isn't this already fixed? |
No, without my patch I still see same error. |
Fixed by #1705. |
octref
added a commit
that referenced
this issue
Jul 30, 2020
Fix #1341 - Make sure initializationOptions is at least empty object
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, i'm trying to use vue-language-server with vim and LanguageClient-neovim and it does not work.
I traced bug to this error:
https://github.com/autozimu/LanguageClient-neovim/blob/next/src/language_server_protocol.rs#L897
Looks like initializationOptions can be null, but vue-language-server does not take this into account here:
vetur/server/src/services/vls.ts
Line 83 in 82d1603
It looks like trivial issue, can you fix it or should i make pull-request?
The text was updated successfully, but these errors were encountered: