Closed jordonbiondo closed 5 years ago
Sorry for not replying to this earlier. Github didn't notify me for some reason. the implementation changed quite a bit and we no longer edit this variable directly.
However, we still edit the mode-line-process, so I'm leaving this open as a reminder.
I hit this when working in sh file.
Debugger entered--Lisp error: (wrong-type-argument listp "[bin]")
spinner-start(progress-bar-filled)
(condition-case err (spinner-start 'progress-bar-filled) ((debug error) (message "Unable to start spinner. Error: %s" err) nil))
lsp--spinner-start()
eval((lsp--spinner-start) nil)
eval-expression((lsp--spinner-start) nil nil 127)
funcall-interactively(eval-expression (lsp--spinner-start) nil nil 127)
call-interactively(eval-expression nil nil)
command-execute(eval-expression)
I've added a check for that, let me know if it solves the problem.
@Malabarba thanks for the fix! It seems to work. Is it possible to roll out a release?
The package assumes that mode-line-format is a list and tries modify it, however the mode line format is not always a list. Fromt the docs:
The package errors when it is not a list. If it is not a list you could simply take the current symbol or string and set the mode-line-format to a list where the existing value is the car.