-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Error running timer ‘lsp--on-idle’: (error "Undefined error level: lsp-flycheck-info-unnecessary") #16224
Comments
I cannot reproduce your issue, I have opened a simple test js file and the lsp layer was working fine. Please provide more infos for reproduction. |
So, one thing I noticed over the last few days is that it isn't with every file. It was happening with with seemingly any lsp I use.
I'm trying to make a reproducible case, but it seems to be somewhat temperamental... Ok, this one seems to work for me consistently.
|
I have followed your instructions but I seem to not get the same error, however I have seen a suspicious error for an invalid face for I have searched that string in our code and did not find it, I am afraid this error comes from lsp-mode or lsp-server itself. I have seen a similar issue with the java lsp at work but have hoped this would only be an issue of my outdated installation. Once I have updated my work environment I may be able to provide some more diagnostics for now I am clueless. |
Hi @tanj, please take a look at emacs-lsp/lsp-mode#2255 it looks like an upstream issue and there is a comment with temporary solution |
I have the temporary fix in my config already, but it doesn't fix the error. My issue is talking about an undefined error level, not an undefined face. It could be that this is adjacent to that issue and be fully upstream and not a spacemacs issue. |
@tanj What was your temporary fix? I have the same issue (not spacemacs, regular Emacs 29) |
;; https://github.com/emacs-lsp/lsp-mode/issues/2255#issuecomment-1786355147
(defface lsp-flycheck-info-unnecessary
'((t))
"Face which apply to side line for symbols not used.
Possibly erroneously redundant of lsp-flycheck-info-unnecessary-face."
:group 'lsp-ui-sideline) This didn't fix this exact issue tho. It only fixed the undefined face issue. |
In case anyone else is seeing this error "Undefined error level: lsp-flycheck-info-unnecessary", the cause is the workaround to the previous bug. It happens when you have upgraded lsp to include the bugfix for the use of So if you are seeing the error-level error, then remove the "defface" workaround from your init file, and restart and it should work again. |
Description
When opening a file that uses an
lsp
mode no debug information is shown.Reproduction guide 🪲
Observed behaviour: 👀 💔
Expected behaviour: ❤️ 😄
no error message and any lsp errors or info shown
System Info 💻
Backtrace 🐾
The text was updated successfully, but these errors were encountered: