Add mapping from win build paths to WSL paths#700
Conversation
|
can how do we test this in CI? |
|
Good questions - I do not have good answers though. Deeper down the stack would require replacing of CI testing - probably just a bit more abstracting and unit testing path replacing cases (and keeping identity for local run), but no easy test guaranteeing proper functionality on WSL. |
but at the time |
Can you please elaborate more? Do you suggesting we should have a different attribute that would take care about providing properly mapped path behind the sceenes? The But I may have very likely just misunderstood you. Anyway - I just wanted to dump my hack to make WSL working as a sample code for possible reference in case anyone would want to play with supporting WSL remote debug scenario - not sure if worth pursuing further. |
i think it is worth pursuing |
I feel I'm in need of other opinions and ideas here :-) Just to quickly brainstorm - I can imagine following ways of solving the paths mapping:
Did you imagine any other way? Or did you had any of those in mind? Any prefference? Thinking about this topic - I tend to prefer the first option. But trying to see other ideas before trying to stitch something together. |
|
Superseded by #729 |
Problem
Running under WSL crashes due to mixing windows and subsystem mapped files
#654
Proposed solution
Added prototype mapper function mapping the build time paths to mapped WSL paths.
Utility would need to be called everywhere where build time paths are being used (so
AttributeReaderand all methods usingCallerFilePathAttribute)What is missing
Adding
IoHelpers.GetMappedBuildPathto all methods usingCallerFilePathAttribute, only few sample usages were treated (so that debugging ofWithDirectorytest could be performed)