Git Product home page Git Product logo

Comments (7)

xsh005 avatar xsh005 commented on June 3, 2024 2

@SrDum using the default config for init_options solves this for me, previously I was using init_options = {}

edit: linux machine + neovim 10 nightly

from kotlin-language-server.

fwy avatar fwy commented on June 3, 2024 2

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.

init_options = {
    storagePath = util.path.join(vim.env.XDG_DATA_HOME, "nvim-data"),
},

'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.

from kotlin-language-server.

fwcd avatar fwcd commented on June 3, 2024

The SLF4J warning is fine (maybe not fine, but expected 😄).

A delegate object is null, jsonrpc methods of 'public default org.eclipse.lsp4j.services.NotebookDocumentService org.eclipse.lsp4j.services.LanguageServer.getNotebookDocumentService()' are ignored

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.

Internal error: com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was BEGIN_ARRAY at path $

The JSON error confuses me. I'd wager a guess and say that it's generally some misconfiguration on the client-side.

from kotlin-language-server.

SrDum avatar SrDum commented on June 3, 2024

The SLF4J warning is fine (maybe not fine, but expected 😄).

A delegate object is null, jsonrpc methods of 'public default org.eclipse.lsp4j.services.NotebookDocumentService org.eclipse.lsp4j.services.LanguageServer.getNotebookDocumentService()' are ignored

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.

Internal error: com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was BEGIN_ARRAY at path $

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?

from kotlin-language-server.

fwcd avatar fwcd commented on June 3, 2024

Consult with the docs/maintainers of the language client you're using or try another client and see if the issues persist.

from kotlin-language-server.

SrDum avatar SrDum commented on June 3, 2024

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.

from kotlin-language-server.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.