question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Pathmap does not seem to be working, resulting in determinism failure

See original GitHub issue

Version Used: .NET SDK 5.0.101

For simplicity the repro doesn’t reference an NuGet package that includes .cs files out of the package cache, but /pathmap appears to not be working for .cs files out of the package cache either. I can provide a repro involving the package cache if that is useful.

Repro.csproj
<Project Sdk="Microsoft.NET.Sdk">

  <PropertyGroup>
    <TargetFramework>net5.0</TargetFramework>
    <IncludeSymbols>true</IncludeSymbols>
    <ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
  </PropertyGroup>

</Project>
Class1.cs
public class Class1 { }

dotnet pack -c Release creates a package that does this:

image

Here’s what the SDK provided to csc: image

Here are the filenames in the PDB (in the case of the repro that includes source from the package cache, the package cache path is not mapped either): image

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
tmatcommented, Aug 18, 2021
1reaction
jnm2commented, Aug 18, 2021

The 5.0.302 SDK seems to have switched to using commas instead of semicolons in the pathmap. This bug was fixed somewhere between 5.0.101 and 5.0.302.

Read more comments on GitHub >

github_iconTop Results From Across the Web

c# - How can we avoid showing the literal path in ...
The build property or rather msbuild parameter is /pathmap or <PathMap> . ... Error Messages, on the other hand, are crafted for Users....
Read more >
Implementing record and refinement for debugging timing- ...
One important requirement of our test-driven fault navigation is the reproducibility of failures. Unfortunately, the bug report from above ...
Read more >
A Possible Failure of Determinism in General Relativity
This scenario would represent a failure of determinism: one would not be able to use the initial data to predict the state of...
Read more >
Why the Classical Argument Against Free Will Is a Failure
The question of whether determinism is true is an open question for physicists. So the classical argument against free will is a failure...
Read more >
Causal Determinism - Stanford Encyclopedia of Philosophy
For a variety of reasons this approach is fraught with problems, and the reasons explain why philosophers of science mostly prefer to drop ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found