Zulip Chat Archive

Stream: lean4

Topic: Error messages don't respect the infoview context order


Yaël Dillies (Aug 18 2024 at 18:19):

Have people noticed this? Errors show context (eg "unsolved goals") in the default order even when the context order is set to reverse.

Julian Berman (Aug 18 2024 at 20:29):

I'm not in front of Lean but my recollection is that the diagnostic message comes from the server preassembled

Julian Berman (Aug 18 2024 at 20:29):

Whereas the goal state VSCode assembles and respects the setting

Julian Berman (Aug 18 2024 at 20:30):

Which isn't to say this isn't fixable but yeah if my recollection is right then I think the backend isn't seeing the setting today

Yaël Dillies (Aug 19 2024 at 10:46):

I guess my question is "Should I open an issue?"

Julian Berman (Aug 19 2024 at 12:19):

I guess yes though I suspect priority-wise it wouldn't get immediate attention. I think even more broadly it might be worth considering if diagnostic messages from the server should be "as structured" as the goal state is normally -- i.e. if the goal state wasn't "pre-rendered" as a string. The LSP spec does have some spots where diagnostic objects can put arbitrary structured data -- https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#diagnostic


Last updated: May 02 2025 at 03:31 UTC