sql-language-server: how to solve Error NO_RESULT_CALLBACK_FOUND

When I open nvim to a .sql file, I get the following error:

LSP[sqlls]: Error NO_RESULT_CALLBACK_FOUND: {
  id = 1,
  jsonrpc = "2.0",
  result = {
    capabilities = {
      codeActionProvider = true,
      completionProvider = {
        resolveProvider = true,
        triggerCharacters = { "." }
      },
      executeCommandProvider = {
        commands = { "sqlLanguageServer.switchDatabaseConnection", "sqlLanguageServer.fixAllFixable
Problems" }
      },
      renameProvider = true,
      textDocumentSync = 1
    }
  }

I suspect it is related to connecting to my db? (seems like the easiest place for things to go wrong?)

I have the following project configuration located in the project root (I don’t have a personal config):

{
  "name": "dev-db",
  "adapter": "postgres",
  "host": "db-postgresql-ondigitalocean.com",
  "port": 25060,
  "database": "db_v2",
  "user": "admin",
  "password": "secret",
  "sslmode": "require"
}

Note the sslmode is not documented, but is used to connect to digital ocean.

Question

What does the above error suggest for how to solve it?

Thank you!

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 19
  • Comments: 17 (1 by maintainers)

Most upvoted comments

Hi, all. Sorry for our late response. We’ve released a new version(v1.13.1) and the problem should be fixed. Please update sql-language-server to the latest and try again. Thanks.

bump

Same.

Same here

Same here!

Same issue here

Hahah fair enough @EdmundsEcho

@keyboard-clacker Paused the idea of using it… the feature/plugin seems useful but beyond the “risk benefit” ratio for getting it to work 😦 I went with having a pdf of the db schema displayed nearby; works every time 😃)