Comments (10)
Configuring the compiler to emit absolute paths as here did not resolve the problem.
from setup-dotnet.
@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.
from setup-dotnet.
@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 github=true
, so defaulting to absolute when that is set, might be something to consider.
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.
from setup-dotnet.
@ZEisinger looking at the matcher for v1, it looks like it should look something more like this:
"pattern": [
{
"regexp": "^\\s*([^:]+)\\((\\d+),(\\d+)\\): (error|warning) ([^:]+): (.*) \\[(.+)\\]$",
"file": 1,
"line": 2,
"column": 3,
"severity": 4,
"code": 5,
"message": 6,
"fromPath": 7
}
]
frompath will root the relative file
also i noticed location isnt a thing, so line/column instead
from setup-dotnet.
...although the annotation still didnt come out correct... debugging the runner now
from setup-dotnet.
@ZEisinger I opened a pr to fix fromPath
in the runner. There is a bug in the runner where it currently does not trim the file name (csproj) before rooting the file
. I'll sync w/ folks tomorrow to get a better idea when we can roll the fix out to prod.
You may not want to update the matcher configuration to include fromPath
, until the runner fix is deployed.
from setup-dotnet.
The runner has rolled out everywhere now and the fromPath
field can be used. Sorry for the delay we had a freeze for a while and was waiting for the new runner to roll out.
from setup-dotnet.
@ZEisinger i'm unable to assign a different assignee. The runner changes are in now.
from setup-dotnet.
I tested against this regex: https://regex101.com/r/MkisH3/4
from setup-dotnet.
@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.
from setup-dotnet.
Related Issues (20)
- Cache fails to be recreated after NuGet package update HOT 6
- Problem matcher does not work with normal verbosity HOT 5
- Dotnet version looking for a version that is not available HOT 1
- All dotnet commands fail due to environment variables HOT 6
- .NET Test invoking an Azure Function: An error occurred trying to start process 'func' with working directory. The system cannot find the file specified. HOT 6
- .NET MAUI IOS HOT 4
- Share this site HOT 1
- Fallback to different installation directory if `/usr/share/dotnet` doesn't available due to permissions HOT 4
- Allow control of the noCdn / no_cdn script parameters HOT 1
- Unauthorised when using `secrets.GITHUB_TOKEN`. Packages not pushed to Github Repository Packages when using PAT. HOT 9
- Add a possibility to specify the verbosity flag for the install-scripts execution HOT 1
- Support SDK workloads HOT 2
- Support explicit architecture for dotnet HOT 1
- Allow tools to cache
- NUGET_AUTH_TOKEN does not work for official NuGet repository HOT 3
- Docs Bug: v4 README points to v3 HOT 2
- Bitcoin HOT 1
- Infrequent "MSB4236: The SDK 'Microsoft.NET.Sdk.Web' specified could not be found" errors with ubuntu 24.04 hosted runner. HOT 7
- cache-dependency-path does not support list of file names, but in description it's said, thay it can HOT 1
- Installed version of .NET not respected. HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from setup-dotnet.