-
Notifications
You must be signed in to change notification settings - Fork 8.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Terminal Preview returns ERROR_FILE_NOT_FOUND when launching relative path #15487
Comments
Undoubtably, I broke this in #15280. Or at least, forgot about this scenario 🤦 |
Hmmmmmm. This is tricky. So we've got a virtual CWD now, and our real CWD is As an example,
I wonder if there's a trivial flag to try to load the process from the |
But it's not just Ew this is hard. Cause we don't know the |
@zadjii-msft We were trying some work arounds (absolute path) and it seems like environment variables are not being passed to the child wt process either. Is there already a bug about that? |
Talked this over internally - The fix (as in #16028) for this bug is.... unbelievably gross, and probably even incorrect. This is just gonna have to remain a breaking change post-1.18. The workaround being to always pass absolute paths to the |
Windows Terminal version
1.18.1421.0
Windows build number
10.0.22631.0
Other Software
No response
Steps to reproduce
Attempt to launch a terminal from command line with a relative path for a file to launch. (ex: "wt .\test.ps1")
Expected Behavior
In 1.16.10262.0 this would launch the file
Actual Behavior
[error 2147942402 (0x80070002) when launching
.\test.ps1
]is printed in the console.
The text was updated successfully, but these errors were encountered: