sqls icon indicating copy to clipboard operation
sqls copied to clipboard

Error when running code actions

Open weeman1337 opened this issue 4 years ago • 3 comments

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):

  • OS Version: Ubuntu 20.04.2
  • sqls Version: sqls Version:0.2.18, Revision:db8733f
  • Editor: NVIM v0.5.0-dev+1233-g82ac44d01

Additional info

  • LspInfo shows that sqls is up and running
  • code completion works

weeman1337 avatar May 12 '21 12:05 weeman1337

In 2022, me either

kwagi avatar May 22 '22 14:05 kwagi

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

igorlfs avatar May 27 '22 02:05 igorlfs