Skip to content

Copy Diagnostic Button#74

Open
rcosta358 wants to merge 1 commit into
mainfrom
copy-diagnostic-button
Open

Copy Diagnostic Button#74
rcosta358 wants to merge 1 commit into
mainfrom
copy-diagnostic-button

Conversation

@rcosta358
Copy link
Copy Markdown
Collaborator

@rcosta358 rcosta358 commented May 10, 2026

This PR adds a button to copy diagnostics to the clipboard.

Example

image

Clicking the button on the top right copies the following text to the clipboard:

Title: Refinement Error
Message: #ret³ == x - 1 is not a subtype of #ret³ > 0
Expected: #ret³ > 0
Found: #ret³ == x - 1
Counterexample: x == 1 && #ret³ == 0
Location: Example.java:11

@rcosta358 rcosta358 requested a review from CatarinaGamboa May 10, 2026 11:46
@rcosta358 rcosta358 self-assigned this May 10, 2026
@rcosta358 rcosta358 added the enhancement New feature or request label May 10, 2026
Copy link
Copy Markdown
Collaborator

@CatarinaGamboa CatarinaGamboa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the use case you see relevant for this feature?
The one thing that could be interesting i think is copying to an llm chat to ask why that is happening, and for that I think we need more information.
Actually, planning these features around use cases would be pretty nice to present

@rcosta358
Copy link
Copy Markdown
Collaborator Author

I think that is the main use case yes, for either sending the error message to someone else or to an LLM.
With the relevant code snippet the user will copy paste manually, I think thats enough information to fix the error.

@CatarinaGamboa
Copy link
Copy Markdown
Collaborator

I think that is the main use case yes, for either sending the error message to someone else or to an LLM. With the relevant code snippet the user will copy paste manually, I think thats enough information to fix the error.

Well.... we dont know if it is enough information, this is just the simplified version, it does not connect to code, it is tricky to know if it is enough. We can leave it for now but i doubt that this is enough for complex cases

@rcosta358
Copy link
Copy Markdown
Collaborator Author

I guess, but it's the same information the command-line version has.
At least it's a starting point, we can always improve it later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants