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
macOS: opening documents by file path only is broken #18181
Issue-BugIssue has been identified as a bug in the productResolution-FixedThe issue is fixed.WG-DevEx-Portabilityauthoring cross-platform or cross-architecture modules, cmdlets, and scripts
I'll need to check it, but on Windows I always use Start-Process ./t.txt to open file in default program, I assumed that just ./t.txt would throw an equivalent of "file is not executable"
I'll need to check it, but on Windows I always use Start-Process ./t.txt to open file in default program, I assumed that just ./t.txt would throw an equivalent of "file is not executable"
When you do ./t.txt it opens in notepad, also able to reproduce this on my mac, nothing happens.
Took a bit of time going through different versions of pwsh to find out where the regression was introduced and it was in 7.2-preview.6. It appears that the process is being started, but then immediately killed. I'll have a fix.
Steve Lee (@SteveL-MSFT) Good job hunting it down. BTW, did you do it manually or use git bisect? It's an awesome tool not many people know about, you give it a passing and failing commit and a test script (here: compile, run test line, detect process started or prompt user to say whether case passes if it's too difficult to automate) and it finds the breaking chang
e with log2(n) steps.
Issue-BugIssue has been identified as a bug in the productResolution-FixedThe issue is fixed.WG-DevEx-Portabilityauthoring cross-platform or cross-architecture modules, cmdlets, and scripts
Activity
dkaszews commentedon Sep 28, 2022
I'll need to check it, but on Windows I always use
Start-Process ./t.txtto open file in default program, I assumed that just./t.txtwould throw an equivalent of "file is not executable"SteveL-MSFT commentedon Oct 3, 2022
I'm debugging this and on macOS,
UseShellExecuteis being set correctly as the file is not executable. Not sure yet why it's not working as expected.SteveL-MSFT commentedon Oct 3, 2022
It seems this works in 7.1, but stopped working in 7.2. Checking to see what changed in .NET.
StevenBucher98 commentedon Oct 3, 2022
When you do
./t.txtit opens in notepad, also able to reproduce this on my mac, nothing happens.SteveL-MSFT commentedon Oct 4, 2022
Took a bit of time going through different versions of pwsh to find out where the regression was introduced and it was in 7.2-preview.6. It appears that the process is being started, but then immediately killed. I'll have a fix.
dkaszews commentedon Oct 4, 2022
Steve Lee (@SteveL-MSFT) Good job hunting it down. BTW, did you do it manually or use git bisect? It's an awesome tool not many people know about, you give it a passing and failing commit and a test script (here: compile, run test line, detect process started or prompt user to say whether case passes if it's too difficult to automate) and it finds the breaking chang
e with log2(n) steps.