emacs-lsp / lsp-sourcekit

lsp-mode :heart: Apple's sourcekit
https://emacs-lsp.github.io/lsp-sourcekit
GNU General Public License v3.0
103 stars 13 forks source link

Error during redisplay: (eval (lsp-mode-line)) signaled (wrong-type-argument lsp--workspace nil) [6 times] #4

Closed dabrahams closed 5 years ago

dabrahams commented 5 years ago

Pursuant to #3, I tried using this on sourcekit-lsp itself, which is a SwiftPM project, but I just keep getting

Error during redisplay: (eval (lsp-mode-line)) signaled (wrong-type-argument lsp--workspace nil) [6 times]

Ideas?

danielmartin commented 5 years ago

Can you post the entire stack trace? (M-x toggle-debug-on-error and try again).

yyoncho commented 5 years ago

@danielmartin - lsp-sourcekit should me migrated to latest lsp.el since there was a breaking change- https://github.com/emacs-lsp/lsp-mode#whats-new-in-lspel

danielmartin commented 5 years ago

Ah, yes, there's a breaking API change. In the meantime, using lsp-mode 5.0 from MELPA stable (https://stable.melpa.org) should still work.

danielmartin commented 5 years ago

OK, the extension has been updated to the new lsp-mode API. It requires a current lsp-mode that contains the Swift language identifier (https://github.com/emacs-lsp/lsp-mode/commit/6733e449b6f7a8dea8083df81bda44a0bf929795). I've tested it locally and works well. @dabrahams, can you check if updating to the latest version solves your issue?

yyoncho commented 5 years ago

Should have been fixed in the past. Please reopen if it happens again.