-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LSP_SERVER.workspace
is None
when initializationOptions
are set
#43
Comments
Can you make sure that the options under E.g., in Sublime, it's like:
|
(As-is, you might be overriding stuff on |
(It's possible that |
Will try this first thing tomorrow, looks like this might be it. Thanks and I'll keep you posted. |
We def didn't support path expansion, but I just fixed it in #44. |
Just tried it with
Unfortunately, I'm still getting the same problem, a workspace which is |
A bit more digging. Apparently, my LSP configuration is broken -- turns out, |
I wish I could help, but I'm not very familiar with Emacs. If you get it working, I'd love to add instructions to the docs (#19). |
That's more or less what I aim for, yes. Ideally I'd get the client PRed to |
@charliermarsh can confirm, it's working now, |
Awesome :) |
This is a weird one, it's more a cry for help than a definitive issue in
ruff-lsp
. Might be connected to #42, but that's a conjecture at best.So I'm trying to get my LSP configuration to do what it's supposed to do (Emacs 28.2 +
lsp-mode
). There seems to be a problem withinitializationOptions
, so I try both with and without them:Trial 1: without
initializationOptions
. Initialization message seems to be alright:The language server starts normally and successfully tries to call
ruff
on file change (but fails in my case, since it's trying to call/usr/bin/ruff
, which is not installed).Trial 2: with
initializationOptions
to set both Python binary andruff
binary. Initialization message only differs in those parameters (I sincerely hope the format ofinterpreter
andpath
is correct):In this case, the language server starts, but fails to call
ruff
with the following error message:I'm massively confused at to why this happens. The source code for
pygls
tells me that setting up a workspace can only fail ifroot_path
/rootPath
is not set, but it's set in both cases and should have failed in trial 1 if it fails in trial 2. There is also a peculiar case ofpygls
somehow transparently converting snake-case to camel-case and vice-versa, but I have to assume it's working somehow.I honestly don't see a fault in
ruff-lsp
's handling, but something is happening betweenruff-lsp
andpygls
, which is possibly triggered by my configuration. I just can't see where the problem is happening and what it is.The text was updated successfully, but these errors were encountered: