-
Notifications
You must be signed in to change notification settings - Fork 460
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
No Check Annotation for compile error in C# project #17
Comments
Configuring the compiler to emit absolute paths as here did not resolve the problem. |
@ericsciple could you take a look? It looks to me like the regex should match this so I'm not totally sure why we're seeing this behavior. |
@rainersigwald sorry i didnt see this issue before now. The relative path not lining up makes sense. The runner attempts to root relative paths to the repo root, and if that path doesnt exist then the file property gets dropped. iirc the runner sets an environment variable However, I am surprised that emitting absolute paths did not resolve the problem. As long as the path is under the repo root, that should work. Thanks for the links, i'll fork your repro and play around with it. |
@ZEisinger looking at the matcher for v1, it looks like it should look something more like this:
frompath will root the relative file also i noticed location isnt a thing, so line/column instead |
...although the annotation still didnt come out correct... debugging the runner now |
@ZEisinger I opened a pr to fix You may not want to update the matcher configuration to include |
The runner has rolled out everywhere now and the |
@ZEisinger i'm unable to assign a different assignee. The runner changes are in now. |
I tested against this regex: https://regex101.com/r/MkisH3/4 |
@StanleyGoldman Thanks! I updated my test PR to use the latest master and everything looks good with and without configuring MSBuild to emit absolute paths. |
I introduced a simple compile error, which seems to have been matched by the problem matcher (it turned red in the console output view and is prefixed with
##[error]
), but there was no annotation linking the error to the file/line number information that is contained in the line.https://github.com/rainersigwald/bumblebee/pull/6/checks?check_run_id=192916618#step:4:32
I hoped for the sort of linking in the Files Changed tab of the PR that are described in the Checks CI docs.
This might be because the error includes only a relative-to-the-project filename, rather than relative-to-the-repo-root?
The text was updated successfully, but these errors were encountered: