-
Notifications
You must be signed in to change notification settings - Fork 215
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
JsonSyntaxException on startup #546
Comments
The SLF4J warning is fine (maybe not fine, but expected 😄).
This is interesting. We don't provide this method, but the client shouldn't call it either since we don't advertise it in the server capabilities.
The JSON error confuses me. I'd wager a guess and say that it's generally some misconfiguration on the client-side. |
I don't doubt it. How would I go about troubleshooting this? |
Consult with the docs/maintainers of the language client you're using or try another client and see if the issues persist. |
Alright, thank you. |
@SrDum using the default config for edit: linux machine + neovim 10 nightly |
I had the same JSON-related error when first trying this language server with neovim on Windows, and after a little debugging found that setting the init_options.storagePath property to a valid directory fixed it.
'util' is require('lspconfig/util'), and the environment variable plus the 'nvim-data' segment references a location on my machine. After starting the language server in neovim, I can see that the file kls_database.db is created there and the fatal error is gone. Using the default init_options by omitting this property from my lua configuration did not help. |
I'm getting some sort of JSON error too on a fresh install, I haven't been able to find out what's going on:
|
I'm seeing something similar on kotlin 2.x.x with neovim.
This happens on opening a Kotlin file so I'm not able to use the language server yet :) |
@RimuhRimu #546 (comment) looks like a duplicate of #564 By the way, it would be great if you (all) could pretty-print the stack traces (i.e. replace |
Full log follows: lsp.log
This is happening after a clean build (and trying to use it with nvim, using lspconfig). Worth noting that just running the server outside of nvim (while not spamming me with erros like nvim did), still gives teh first warning that seems to be the root cause, that being the line
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder"
Now, full disclosure, It's completely possible this is somehow an error on my part while building, but I have already retried multiple times following the readme.md to the letter.
Thanks in advance for any assistence.
The text was updated successfully, but these errors were encountered: