Skip to content

Chages in the error notation #1769

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

Robotechnic
Copy link
Contributor

When using the VS Code terminal, it is possible to click on error messages to go directly to the error range involved. Turns out the error format is slightly different than the one used by Goblint.
Goblint does: file : line : column - line : column while VS Code recognise by default file : line . column - line . column.
This PR fixes that.
I tried with a default VS Code configuration without any extensions installed, and it works.

@sim642
Copy link
Member

sim642 commented Jun 26, 2025

Looks like this causes all of our tests to fail because we're probably matching the old format in some scripts.
Also, all of the cram tests will get touched by this.

@Robotechnic
Copy link
Contributor Author

It's fixed. But I think that those scripts should use json output. Human-readable output is not really meant for that.

@sim642
Copy link
Member

sim642 commented Jun 27, 2025

I'm still wondering where this notation comes from. I managed to find some kind of default regexes in VSCode here: https://github.com/microsoft/vscode/blob/fad39b690188aa2a5e9ebe87c3d51ee1afdf9dfd/src/vs/workbench/contrib/tasks/common/problemMatcher.ts#L1491-L1603. But none of them matches the format with the . instead of :.

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

Successfully merging this pull request may close these issues.

2 participants