You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Determinism: --pathmap is not applied to the file name in MatchFailureException #21021
The file name the compiler bakes into a MatchFailureException for an incomplete match is the unmapped absolute path, while __SOURCE_DIRECTORY__, CallerFilePath and the PDB do honour --pathmap. The build machine's path ships in the assembly, and a --deterministic+ build with a path map still gives a different assembly in every directory it is compiled from.
Repro steps
repro.fsproj: same as a console app with <PathMap>$(MSBuildProjectDirectory)=/_/</PathMap>.
Program.fs:
letf(x:int option)=match x with| Some y -> y
printfn "%s"__SOURCE_DIRECTORY__try
f None |> ignore
with MatchFailureException(file, line, column)->
printfn "%s(%d,%d)" file line column
Activity