emacs-lsp / lsp-ui

UI integrations for lsp-mode
https://emacs-lsp.github.io/lsp-ui
GNU General Public License v3.0
1.03k stars 141 forks source link

golang errors in lsp-sideline are truncated #609

Closed ray2011 closed 2 years ago

ray2011 commented 3 years ago

when use lsp-mode in spacemacs, golang errors in lsp-sideline are truncated , details are as below https://github.com/syl20bnr/spacemacs/issues/14746#issue-880715127

gerrywastaken commented 2 years ago

Same for dart/flutter errors. I've taken to just opening M-x flycheck-list-errors when there's an error. I just use the sideline for an indication that a line has a error. However at least in the golang case it does seem like some of those lines could have whitespace stripped form the beginning so that more of the error is shown.

gerrywastaken commented 2 years ago

Actually thinking about this further... there is a lot of repetition at the start of both of our error messages which doesn't actually help with understanding the error. An amazing solution would be to be able to specify regular expressions which could either filter or find relevant parts of the message and only display that. In your example you would use that to filter out the start of that path which contains the least significant info.

ray2011 commented 2 years ago

M-x flycheck-list-errors helps me