Zulip Chat Archive
Stream: lean4
Topic: Can Cursor access Lean InfoView?
Geoffrey Irving (Aug 05 2025 at 19:53):
Has anyone on the FRO spoken with Cursor about what it would take for Cursor (either tab completion or agent chat) to see the Lean InfoView? There's some chance this is only a couple-day fix for them on their side, and they might be interested in doing it.
π πππππππ πππ πππππ (Aug 05 2025 at 20:26):
What would be the benefit of using this over something like the lean_goal request in lean-lsp-mcp? Would you expect the Cursor agent to use interactive features like type popups?
Geoffrey Irving (Aug 05 2025 at 20:28):
Possibly that the right mechanism to do what I want. Really just any way for either out-of-the-box Cursor or a decent Lean-specific VSCode UX would be good; currently I don't have any AI agent setup that can see the error messages automatically.
π πππππππ πππ πππππ (Aug 05 2025 at 21:20):
Hm, I think in VSC agents already see error messages. There is a subtlety here in that messages reported by Lean via default LSP methods (and which builtin VSC methods/agents would use) can sometimes differ from those seen in the infoview, but I think that only happens for traces.
Geoffrey Irving (Aug 05 2025 at 21:48):
- Do you mean if an agent builds via the commandline? I suppose thatβs right, but itβs much longer latency than the infoview when iterating on a proof or even within a file. A particular thing I would like is Cursor applying as many deprecation fixes as possible, and this would be much faster if it didnβt have to rebuild the whole file.
- The smaller LLMs behind autocomplete would ge sufficient for a lot more things if they could see the infoview too.
Possibly I should just ping someone at Cursor to ask. And admittedly this may belong in the ML for Theorem Proving channel.
π πππππππ πππ πππππ (Aug 05 2025 at 22:10):
(+1 on moving this to #Machine Learning for Theorem Proving).
Do you mean if an agent builds via the commandline?
No; I mean agents in the GitHub Copilot Chat extension see errors by default; e.g. here's a sample chat for a file containing def foo : Nat := 100. Perhaps I'm misunderstanding the question?
Screenshot 2025-08-05 at 6.09.55β―PM.png
Geoffrey Irving (Aug 05 2025 at 22:13):
This is nice, but thatβs Copilot, not Cursor.
π πππππππ πππ πππππ (Aug 05 2025 at 22:14):
Ah sorry, I was replying to the "Lean-specific VSCode UX" part. I'm not sure about Cursor!
Kim Morrison (Aug 06 2025 at 00:38):
My experience in Cursor is that can see error messages, but can't see warnings or info messages. It can't see the InfoView at all. I'd be very surprised (but happy!) if they were interested in implemented such a niche (from their PoV) feature). It's also pretty hacky, as the InfoView is just a pile of HTML by the time Cursor would be getting to it.
Julian Berman (Aug 06 2025 at 12:03):
(this works in lean.nvim FWIW :), CopilotChat can see the infoview buffer just like any other)
Last updated: Dec 20 2025 at 21:32 UTC