Repository navigation
Add a regexp for problem matching on the msvc linker output - #4675
Merged
Merged
Conversation
Hannia Valera (hanniavalera)
force-pushed
the
problem-matcher-linker
branch
from
January 30, 2026 13:54
c19a39e to
bbd47de
Compare
added 2 commits
February 10, 2026 10:16
Brad Phelan (bradphelan)
force-pushed
the
problem-matcher-linker
branch
from
February 10, 2026 09:20
772384e to
ca11c56
Compare
Contributor
Author
|
Hannia Valera (@hanniavalera) I added more regexps and more tests |
added 3 commits
February 10, 2026 13:27
…le. link errors need a dummy file to point to. This is a work around. Perhaps the copilot, vscode and cmake-tools-teams need to talk to ensure llm agent workflow is robust
… in linkerrors.txt
Contributor
Author
|
Hannia Valera (@hanniavalera) The big hack now is that get_errors from copilot doesn't support diagnostics without a source file. I've hacked the diagnostics to produce a dummy source file for linker errors. Now copilot can consume these errors correctly |
Contributor
|
Hi Brad Phelan (@bradphelan), thanks for this contribution, looking over this now! :) |
Hannia Valera (hanniavalera)
approved these changes
Feb 10, 2026
snehara99
approved these changes
Feb 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.