-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
changing pwsh through terminal->shell->program setting on windows to new powershell causes a panic on launch #23872
Comments
I should also note that the settings.json I am using works without the terminal snippet, crashes with it, then goes back to working once I revert it(through deleting the settings.json and replacing it with an old version of it, cause once again, using this setting seems to cause corruption which then causes it to crash after removing the snippet) |
Hi SF! For what it's worth this works for me (no crash):
When I start up the terminal it starts pwsh no issue. A couple of things that may have a bearing on this. 1.) Not running on a VM version of Win11. 2.) The path I've got is significantly shorter than your so it may be a length of path issue (maybe)? 3.) How did I come up with that path? I'm also going to share this on the Discord since it may help others! Oh and before I forget--Zed Dev 0.172.0 29bfb56 Win 11 Pro 24H2 OS Build 26100.2894 |
see, I only went to test on a VM because a bare-metal windows install was crashing, and I was able to recreate the crash using the VM, so for what its worth, this doesn't seem to care whether or not its in a VM. the goal was to see if I could recreate the crash on a blank windows install, also, for what its worth that doesn't look anything like the path my windows store installed my powershell at |
I used |
I was able to narrow the issue down a bit further. I have installed pwsh via the Microsoft Store. Running C:\Program Files\WindowsApps\Microsoft.PowerShell_7.5.0.0_x64__8wekyb3d8bbwe\pwsh.exe
C:\Users\<username>\AppData\Local\Microsoft\WindowsApps\pwsh.exe When using the first path in my Zed settings, everything works fine. When using the second path, Zed crashes. When viewing the second path in explorer, it also reports a filesize of 0KB. Running busybox's |
Can you tell if the second path is a hard link or a symbolic link? That may have some bearing on the problem since the underlying windows mechanism may be different between one and the other. Just a suggestion, of course. |
Describe the bug / provide steps to reproduce it
Actual Behavior: during launch zed panics, causing the window to appear and disappear in a fraction of a second
Expected Behavior: zed to work, and powershell to be the latest-and-greatest within the zed terminal panel
Zed Version and System Specs
Zed: v0.172.0 (Zed Dev 33d1145)
OS: Windows 10.0.26100
Memory: 31.1 GiB
Architecture: x86_64
GPU: NVIDIA GeForce RTX 2080 SUPER || NVIDIA || 566.36
If applicable, attach your
~/Library/Logs/Zed/Zed.log
file to this issue.Zed.log
The text was updated successfully, but these errors were encountered: