sqls-server / sqls

SQL language server written in Go.
MIT License
936 stars 68 forks source link

Error when running code actions #55

Open weeman1337 opened 3 years ago

weeman1337 commented 3 years ago

Describe the bug

While trying to run any code action I am receiving an error:

To Reproduce Steps to reproduce the behavior:

  1. Setup a db connection
  2. Open an SQL and write any query
  3. Select the "Execute Query" code action

Actual behaviour

Error: 1RPC[Error] code_name = MethodNotFound, message = "method workspace/executeCommand is not supported by any of the servers registered for the current buffer"

Expected behavior

Query will be executed.

Versions (please complete the following information):

Additional info

kwagi commented 2 years ago

In 2022, me either

igorlfs commented 2 years ago

@kwagi you may wanna try this plugin. I believe such code actions are off-spec and therefore nvim's builtin LSP doesn't support them by default.

jamietanna commented 1 month ago

Thanks @igorlfs that ended up working for me in 2024 with:

% nvim --version
NVIM v0.10.0
Build type: Release
LuaJIT 2.1.1713773202
Run "nvim -V1 -v" for more info

And:

% /home/jamie/.local/share/nvim/mason/bin/sqls --version
sqls version Version:0.2.28, Revision:HEAD