Open FilipCon opened 2 years ago
I just had the same experience, the <project>/.sqls/config.json
was ignored, no matter if lsp-sqls-workspace-config-path
was nil
or workspace
. The $HOME/.config/sqls/config.yml
as well as the (setq lsp-sqls-connections ...)
approach wokred fine.
The bug persists two years later.
Thank you for the bug report
lsp-mode
related packages.where
lsp-start-plain.el
can be downloaded here.Bug description
There seems to be an issue when connecting to the database with the
sqls
server when the settinglsp-sqls-workspace-config-path
is set to "workspace" (default). Following the instructions on the webpage, I've tried setting the connections as the snippet states, i.e.:The result is that I'm getting an error stating:
Error processing message (wrong-type-argument json-value-p quote).
I'm using Emacs 29.0.50 in Ubuntu.Steps to reproduce
So, I tried setting the
lsp-sqls-connections
with the aforementioned method, both in my Emacs config and in my workspace as a.dir-locals
file. I also tried creating a file<my-project-root-dir>/.sqls/config.json
with contents similar to the following (as found in previous PR https://github.com/emacs-lsp/lsp-mode/pull/1832#issue-642545494).None of the above, or a combination of both, seemed to work.
What worked for me was to have
(setq lsp-sqls-workspace-config-path nil)
and a configuration file~/.config/sqls/config.yml
(note the non-required dot (.) in sqls dir and the .yml extension) with (all) my db connections set as:Expected behavior
I'd expect that after following the instructions I would get a list of connections after executing the code-action in the .sql buffer. However, setting the db connections locally (in workspace) does not seem to work at all.
Which Language Server did you use?
sqls
OS
Linux
Error callstack
No response
Anything else?
Am I missing something in my configuration? Thank you in advance and looking forward to your response.