sqls.nvim icon indicating copy to clipboard operation
sqls.nvim copied to clipboard

No Sqls* command available, yet everything seems to be installed/configured correctly

Open manumoreno opened this issue 2 years ago • 10 comments

I'm having an interesting problem. I know I'm connecting to the database just fine (because I can change a DB parameter to make it fail and then revert back). Also, the sqls binary is installed and in the PATH. The problem I'm having is that no Sqls* command works -- they don't show as possible commands at the ":" prompt in nvim. Has anybody else experienced this problem and, if so, how can I go about resolving it?

manumoreno avatar Jan 17 '23 23:01 manumoreno

I just installed it and I have the exact same problem as you. :(

mavix21 avatar Mar 09 '23 05:03 mavix21

These commands are buffer-local, the plugin creates them when the LSP client attaches to a buffer. They should appear when you open a SQL file

nanotee avatar Mar 09 '23 11:03 nanotee

Thanks @nanotee! I did notice that my the LSP client was having problems attaching to the active buffer. That said, my problem got resolved on its own after a few days. I still don't know what changed behind the scenes.

BTW, great plugin! It's proving to be very useful. I was wondering if the show tables function might work at some point. I don't recall if PostgreSQL is not supported or that functionality is not yet fully implemented.

manumoreno avatar Mar 23 '23 15:03 manumoreno

I don't think it's going to be implemented any time soon since the lighttiger2505/sqls repository has been archived, unless someone forks and takes over the project

nanotee avatar Apr 15 '23 17:04 nanotee

I don't think it's going to be implemented any time soon since the lighttiger2505/sqls repository has been archived, unless someone forks and takes over the project

It seems someone forked it.

guilhas07 avatar Apr 17 '24 14:04 guilhas07

my problem got resolved on its own after a few days. I still don't know what changed behind the scenes.

This is my exact issue also, has anyone found a fix?

I have it set up to use a SQLite temporary DB as my test bed, and the LSP seems to connect fine, and the keyword autocomplete/highlighting and format file works. But none of the :Sqls* family of commands seem to have registered. I am new to LSP configs in nvim so I may have missed something obvious.

Any guidance appreciated!

JDOsborne1 avatar Jun 08 '24 16:06 JDOsborne1

@JDOsborne1 could you please share your lspconfig configuration?

nanotee avatar Jun 09 '24 08:06 nanotee