Skip to content

Add a regexp for problem matching on the msvc linker output#4675

Open
bradphelan wants to merge 3 commits intomicrosoft:mainfrom
bradphelan:problem-matcher-linker
Open

Add a regexp for problem matching on the msvc linker output#4675
bradphelan wants to merge 3 commits intomicrosoft:mainfrom
bradphelan:problem-matcher-linker

Conversation

@bradphelan
Copy link
Contributor

@bradphelan bradphelan commented Jan 29, 2026

This change addresses item #4077

It doesn't specifically fix #4077 but it adds the missing problem matcher for MSVC linker errors.

Problem

When running CMake: build with msvc all the build errors are found and added to the problems pane. However linker errors are not found.

This is of particular concern with using github copilot in an agent loop. The agent expects to be able to see the problems via get_errors and if the linker errors are lost then the llm gets very confused because it will see that the build has completed and then it will proceed to run my tests which may not have been built and then it goes quickly downhill.

I've made a separate REGEX for the linker to avoid messing with the already complex regexp used for the compiler. This means two regexp per line which I hope is not considered bad form or a performance issue.

image

@hanniavalera hanniavalera force-pushed the problem-matcher-linker branch from c19a39e to bbd47de Compare January 30, 2026 13:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow for Additional Problem Matchers to be defined in the settings

1 participant