zed-industries / zed

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
https://zed.dev
Other
48.99k stars 2.95k forks source link

misconfigured `shell` setting might crash Zed on startup #16352

Closed everdrone closed 1 month ago

everdrone commented 2 months ago

Check for existing issues

Describe the bug / provide steps to reproduce it

Not sure why, but shell might crash the editor on startup (see attached video)

To reproduce:

Environment

Zed: v0.150.0 (Zed Dev f7f5a255845b45ac33ab88bfdc023894034168b7) OS: Windows 10.0.22631 Memory: 63.1 GiB Architecture: x86_64 GPU: NVIDIA GeForce RTX 4090 || NVIDIA || 560.81

If applicable, add mockups / screenshots to help explain present your vision of the feature

https://github.com/user-attachments/assets/56e2b85c-c029-450b-a140-1dddc1d3d70e

If applicable, attach your Zed.log file to this issue.

Zed.log

2024-08-16T14:16:21.7213616+02:00 [INFO] ========== starting zed ==========
2024-08-16T14:16:21.8862663+02:00 [INFO] Use Segoe UI as UI font.
2024-08-16T14:16:21.8875149+02:00 [INFO] Opening main db
2024-08-16T14:16:21.8947022+02:00 [INFO] Using git binary path: None
2024-08-16T14:16:21.8953792+02:00 [ERROR] SHELL environment variable is not assigned so we can't source login environment variables

Caused by:
    environment variable not found
2024-08-16T14:16:21.8954692+02:00 [ERROR] Error { kind: Generic("Input watch path is neither a file nor a directory."), paths: [] }
2024-08-16T14:16:21.9180894+02:00 [INFO] initializing context server client
2024-08-16T14:16:21.9200949+02:00 [INFO] extensions updated. loading 13, reloading 0, unloading 0
2024-08-16T14:16:21.9281776+02:00 [INFO] Opening main db
2024-08-16T14:16:21.932575+02:00 [ERROR] Element not found. (0x80070490)
2024-08-16T14:16:21.9328565+02:00 [ERROR] Error { kind: Generic("Input watch path is neither a file nor a directory."), paths: [] }
2024-08-16T14:16:21.9594276+02:00 [INFO] Enabling Vulkan Portability
2024-08-16T14:16:21.959488+02:00 [INFO] Enabling color space support
2024-08-16T14:16:22.011273+02:00 [INFO] Adapter "NVIDIA GeForce RTX 4090"
2024-08-16T14:16:22.011342+02:00 [INFO] Ray tracing is supported
2024-08-16T14:16:22.1287809+02:00 [WARN] Requested size 1x1 is outside of surface capabilities
2024-08-16T14:16:22.1288531+02:00 [ERROR] No composite alpha flag for transparency: OPAQUE
2024-08-16T14:16:22.129562+02:00 [INFO] Using surface present mode MAILBOX
2024-08-16T14:16:22.1379091+02:00 [INFO] Creating a descriptor pool for at most 16 sets
2024-08-16T14:16:22.1379722+02:00 [INFO] Creating a descriptor pool for at most 16 sets
2024-08-16T14:16:22.138032+02:00 [INFO] Initializing Blade pipelines for surface SurfaceInfo { format: Bgra8UnormSrgb, alpha: Ignored }
2024-08-16T14:16:22.1395044+02:00 [INFO] Skip function Some("to_tile_position")
2024-08-16T14:16:22.1397592+02:00 [INFO] Skip function Some("to_tile_position")
2024-08-16T14:16:22.1405042+02:00 [INFO] Skip function Some("to_tile_position")
2024-08-16T14:16:22.1407082+02:00 [INFO] Skip function Some("to_tile_position")
2024-08-16T14:16:22.1410985+02:00 [INFO] Skip function Some("to_tile_position")
2024-08-16T14:16:22.14128+02:00 [INFO] Skip function Some("to_device_position_impl")
2024-08-16T14:16:22.1413433+02:00 [INFO] Skip function Some("to_device_position")
2024-08-16T14:16:22.1414051+02:00 [INFO] Skip function Some("to_device_position_transformed")
2024-08-16T14:16:22.141467+02:00 [INFO] Skip function Some("to_tile_position")
2024-08-16T14:16:22.1415677+02:00 [INFO] Skip function Some("blend_color")
2024-08-16T14:16:22.141979+02:00 [INFO] Skip function Some("to_tile_position")
2024-08-16T14:16:22.1423365+02:00 [INFO] Skip function Some("to_tile_position")
2024-08-16T14:16:22.1425245+02:00 [INFO] Skip function Some("to_tile_position")
2024-08-16T14:16:22.1430043+02:00 [INFO] Skip function Some("to_tile_position")
2024-08-16T14:16:22.1434964+02:00 [INFO] Skip function Some("to_tile_position")
2024-08-16T14:16:22.1438506+02:00 [INFO] Skip function Some("to_tile_position")
2024-08-16T14:16:22.1440445+02:00 [INFO] Skip function Some("to_device_position_impl")
2024-08-16T14:16:22.1441087+02:00 [INFO] Skip function Some("to_device_position")
2024-08-16T14:16:22.1441707+02:00 [INFO] Skip function Some("to_device_position_transformed")
2024-08-16T14:16:22.1442329+02:00 [INFO] Skip function Some("to_tile_position")
2024-08-16T14:16:22.1443342+02:00 [INFO] Skip function Some("blend_color")
2024-08-16T14:16:22.1520424+02:00 [ERROR] No composite alpha flag for transparency: OPAQUE
2024-08-16T14:16:22.1521042+02:00 [INFO] Using surface present mode MAILBOX
2024-08-16T14:16:22.1580515+02:00 [ERROR] No composite alpha flag for transparency: OPAQUE
2024-08-16T14:16:22.1581034+02:00 [INFO] Using surface present mode MAILBOX
2024-08-16T14:16:22.1631458+02:00 [INFO] Using surface present mode MAILBOX
2024-08-16T14:16:22.1674195+02:00 [INFO] Initializing Blade pipelines for surface SurfaceInfo { format: Bgra8UnormSrgb, alpha: Ignored }
2024-08-16T14:16:22.1687102+02:00 [INFO] Skip function Some("to_tile_position")
2024-08-16T14:16:22.1689279+02:00 [INFO] Skip function Some("to_tile_position")
2024-08-16T14:16:22.1692601+02:00 [INFO] Skip function Some("to_tile_position")
2024-08-16T14:16:22.1694505+02:00 [INFO] Skip function Some("to_tile_position")
2024-08-16T14:16:22.1696872+02:00 [INFO] Skip function Some("to_tile_position")
2024-08-16T14:16:22.1698634+02:00 [INFO] Skip function Some("to_device_position_impl")
2024-08-16T14:16:22.1699264+02:00 [INFO] Skip function Some("to_device_position")
2024-08-16T14:16:22.1700254+02:00 [INFO] Skip function Some("to_device_position_transformed")
2024-08-16T14:16:22.170087+02:00 [INFO] Skip function Some("to_tile_position")
2024-08-16T14:16:22.1701885+02:00 [INFO] Skip function Some("blend_color")
2024-08-16T14:16:22.1705059+02:00 [INFO] Skip function Some("to_tile_position")
2024-08-16T14:16:22.1707348+02:00 [INFO] Skip function Some("to_tile_position")
2024-08-16T14:16:22.1709454+02:00 [INFO] Skip function Some("to_tile_position")
2024-08-16T14:16:22.1713004+02:00 [INFO] Skip function Some("to_tile_position")
2024-08-16T14:16:22.1716489+02:00 [INFO] Skip function Some("to_tile_position")
2024-08-16T14:16:22.1718784+02:00 [INFO] Skip function Some("to_tile_position")
2024-08-16T14:16:22.1720559+02:00 [INFO] Skip function Some("to_device_position_impl")
2024-08-16T14:16:22.1721186+02:00 [INFO] Skip function Some("to_device_position")
2024-08-16T14:16:22.1721805+02:00 [INFO] Skip function Some("to_device_position_transformed")
2024-08-16T14:16:22.1722423+02:00 [INFO] Skip function Some("to_tile_position")
2024-08-16T14:16:22.1723406+02:00 [INFO] Skip function Some("blend_color")
2024-08-16T14:16:22.1733038+02:00 [INFO] Using GPU: GPUSpecs { is_software_emulated: false, device_name: "NVIDIA GeForce RTX 4090", driver_name: "NVIDIA", driver_info: "560.81" }
2024-08-16T14:16:22.1738118+02:00 [ERROR] Error { kind: Generic("Input watch path is neither a file nor a directory."), paths: [] }
2024-08-16T14:16:22.1804071+02:00 [INFO] Opening main db
2024-08-16T14:16:22.1821344+02:00 [INFO] Initializing default prettier with plugins {}
2024-08-16T14:16:22.1831874+02:00 [INFO] Initializing default prettier with plugins {}
2024-08-16T14:16:22.1841521+02:00 [INFO] Initializing default prettier with plugins {}
2024-08-16T14:16:22.1851317+02:00 [INFO] Initializing default prettier with plugins {}
2024-08-16T14:16:22.1864507+02:00 [INFO] Initializing default prettier with plugins {}
2024-08-16T14:16:22.1896313+02:00 [INFO] Opening main db
2024-08-16T14:16:22.1945722+02:00 [INFO] Using Windows API for pseudoconsole
2024-08-16T14:16:22.2633611+02:00 [WARN] Theme "Nightfox" is using a deprecated style property: scrollbar_thumb.background. Use `scrollbar.thumb.background` instead.
2024-08-16T14:16:22.263426+02:00 [WARN] Theme "Dayfox" is using a deprecated style property: scrollbar_thumb.background. Use `scrollbar.thumb.background` instead.
2024-08-16T14:16:22.2634785+02:00 [WARN] Theme "Dawnfox" is using a deprecated style property: scrollbar_thumb.background. Use `scrollbar.thumb.background` instead.
2024-08-16T14:16:22.2635308+02:00 [WARN] Theme "Duskfox" is using a deprecated style property: scrollbar_thumb.background. Use `scrollbar.thumb.background` instead.
2024-08-16T14:16:22.2635833+02:00 [WARN] Theme "Nordfox" is using a deprecated style property: scrollbar_thumb.background. Use `scrollbar.thumb.background` instead.
2024-08-16T14:16:22.2636359+02:00 [WARN] Theme "Terafox" is using a deprecated style property: scrollbar_thumb.background. Use `scrollbar.thumb.background` instead.
2024-08-16T14:16:22.2636883+02:00 [WARN] Theme "Carbonfox" is using a deprecated style property: scrollbar_thumb.background. Use `scrollbar.thumb.background` instead.
2024-08-16T14:16:22.4504508+02:00 [WARN] Theme "Xcode Bare" is using a deprecated style property: scrollbar_thumb.background. Use `scrollbar.thumb.background` instead.
2024-08-16T14:16:22.4505125+02:00 [WARN] Theme "Xcode Basic" is using a deprecated style property: scrollbar_thumb.background. Use `scrollbar.thumb.background` instead.
2024-08-16T14:16:22.4505646+02:00 [WARN] Theme "Xcode Classic Dark" is using a deprecated style property: scrollbar_thumb.background. Use `scrollbar.thumb.background` instead.
2024-08-16T14:16:22.4506167+02:00 [WARN] Theme "Xcode Classic Light" is using a deprecated style property: scrollbar_thumb.background. Use `scrollbar.thumb.background` instead.
2024-08-16T14:16:22.4506687+02:00 [WARN] Theme "Xcode Default Dark" is using a deprecated style property: scrollbar_thumb.background. Use `scrollbar.thumb.background` instead.
2024-08-16T14:16:22.4507588+02:00 [WARN] Theme "Xcode Default Light" is using a deprecated style property: scrollbar_thumb.background. Use `scrollbar.thumb.background` instead.
2024-08-16T14:16:22.4508104+02:00 [WARN] Theme "Xcode High Contrast Dark" is using a deprecated style property: scrollbar_thumb.background. Use `scrollbar.thumb.background` instead.
2024-08-16T14:16:22.4508609+02:00 [WARN] Theme "Xcode High Contrast Light" is using a deprecated style property: scrollbar_thumb.background. Use `scrollbar.thumb.background` instead.
2024-08-16T14:16:22.450912+02:00 [WARN] Theme "Xcode Low Key" is using a deprecated style property: scrollbar_thumb.background. Use `scrollbar.thumb.background` instead.
2024-08-16T14:16:22.4509626+02:00 [WARN] Theme "Xcode Midnight" is using a deprecated style property: scrollbar_thumb.background. Use `scrollbar.thumb.background` instead.
2024-08-16T14:16:22.4510132+02:00 [WARN] Theme "Xcode Presentation Dark" is using a deprecated style property: scrollbar_thumb.background. Use `scrollbar.thumb.background` instead.
2024-08-16T14:16:22.4510636+02:00 [WARN] Theme "Xcode Presentation Light" is using a deprecated style property: scrollbar_thumb.background. Use `scrollbar.thumb.background` instead.
2024-08-16T14:16:22.4511141+02:00 [WARN] Theme "Xcode Spartan" is using a deprecated style property: scrollbar_thumb.background. Use `scrollbar.thumb.background` instead.
2024-08-16T14:16:22.4511647+02:00 [WARN] Theme "Xcode Sunset" is using a deprecated style property: scrollbar_thumb.background. Use `scrollbar.thumb.background` instead.
JunkuiZhang commented 2 months ago

You should use powershell.exe instead of pwsh.exe

everdrone commented 2 months ago

You should use powershell.exe instead of pwsh.exe

They resolve to different binaries, pwsh.exe is more up to date

image

JunkuiZhang commented 2 months ago

Is pwsh.exe included in your PATH environment variable? Typically, the terminal searches for pwsh.exe within the PATH environment variable.

everdrone commented 2 months ago

Yes the path to pwsh.exe is available in my PATH

JunkuiZhang commented 2 months ago

The log file you attached doesn't seem to be complete. Could you try running a debug build, such as with cargo run, and share the final error output?

BTW, is the following working?

"with_arguments": { "program": "C:\\full\\path\\to\\pwsh.exe", "args": "-nologo" }
JunkuiZhang commented 2 months ago

I just installed the PowerShell, and it works fine for me.

Screenshot 2024-08-17 030123

I guess you just installed PowerShell and didn't restart your terminal?

BTW, what's the difference between PowerShell and Windows PowerShell?

everdrone commented 2 months ago

@JunkuiZhang no, pwsh has been installed on my system for a long time now. I'll reproduce the issue and paste the full logs in 30 minutes or so, I pasted the section at the time of the incident and probably missed something. I'll also try using the full path and report back.

Windows PowerShell is version 5.1, it's not actively developed anymore, pwsh or PowerShell is being maintained at https://github.com/PowerShell/PowerShell, so the difference is the builtin one is just a lot older than pwsh, I have version 7.4.4 on my system

JunkuiZhang commented 2 months ago

I see. Take your time, no rush. I'm currently in China, and it's already 3 AM here, so I'll be heading to bed. I'll be able to respond to your message in about 10 hours later.

everdrone commented 2 months ago

Steps:

Console output ```log [2024-08-16T21:58:48+02:00 ERROR fs.rs] Error { kind: Generic("Input watch path is neither a file nor a directory."), paths: [] } [2024-08-16T21:58:48+02:00 ERROR blade_graphics::hal::init] No composite alpha flag for transparency: OPAQUE [2024-08-16T21:58:48+02:00 ERROR blade_graphics::hal::init] No composite alpha flag for transparency: OPAQUE [2024-08-16T21:58:48+02:00 ERROR blade_graphics::hal::init] No composite alpha flag for transparency: OPAQUE [2024-08-16T21:58:48+02:00 ERROR fs.rs] Error { kind: Generic("Input watch path is neither a file nor a directory."), paths: [] } Thread "main" panicked with "already borrowed: BorrowMutError" at crates\gpui\src\app\async_context.rs:90:28 0: backtrace::backtrace::dbghelp64::trace at C:\Users\Giorgio\.cargo\registry\src\index.crates.io-6f17d22bba15001f\backtrace-0.3.73\src\backtrace\dbghelp64.rs:91 backtrace::backtrace::trace_unsynchronized at C:\Users\Giorgio\.cargo\registry\src\index.crates.io-6f17d22bba15001f\backtrace-0.3.73\src\backtrace\mod.rs:66 1: backtrace::backtrace::trace at C:\Users\Giorgio\.cargo\registry\src\index.crates.io-6f17d22bba15001f\backtrace-0.3.73\src\backtrace\mod.rs:53 2: backtrace::capture::Backtrace::create at C:\Users\Giorgio\.cargo\registry\src\index.crates.io-6f17d22bba15001f\backtrace-0.3.73\src\capture.rs:197 3: backtrace::capture::Backtrace::new at C:\Users\Giorgio\.cargo\registry\src\index.crates.io-6f17d22bba15001f\backtrace-0.3.73\src\capture.rs:162 4: zed::reliability::init_panic_hook::closure$0 at D:\Projects\cloned_reference\zed\crates\zed\src\reliability.rs:58 5: alloc::boxed::impl$50::call at /rustc/051478957371ee0084a7c0913941d2a8c4757bb9/library\alloc\src\boxed.rs:2077 std::panicking::rust_panic_with_hook at /rustc/051478957371ee0084a7c0913941d2a8c4757bb9/library\std\src\panicking.rs:799 6: std::panicking::begin_panic_handler::closure$0 at /rustc/051478957371ee0084a7c0913941d2a8c4757bb9/library\std\src\panicking.rs:664 7: std::sys_common::backtrace::__rust_end_short_backtrace at /rustc/051478957371ee0084a7c0913941d2a8c4757bb9/library\std\src\sys_common\backtrace.rs:171 8: std::panicking::begin_panic_handler at /rustc/051478957371ee0084a7c0913941d2a8c4757bb9/library\std\src\panicking.rs:652 9: core::panicking::panic_fmt at /rustc/051478957371ee0084a7c0913941d2a8c4757bb9/library\core\src\panicking.rs:72 10: core::cell::panic_already_borrowed at /rustc/051478957371ee0084a7c0913941d2a8c4757bb9/library\core\src\cell.rs:785 11: core::cell::RefCell::borrow_mut at /rustc/051478957371ee0084a7c0913941d2a8c4757bb9\library\core\src\cell.rs:1076 12: gpui::app::AppCell::borrow_mut at D:\Projects\cloned_reference\zed\crates\gpui\src\app.rs:74 13: gpui::app::async_context::impl$0::update_window,gpui::window::impl$19::new::closure$6::closure_env$0> at D:\Projects\cloned_reference\zed\crates\gpui\src\app\async_context.rs:90 14: gpui::window::AnyWindowHandle::update,gpui::window::impl$19::new::closure$6::closure_env$0> at D:\Projects\cloned_reference\zed\crates\gpui\src\window.rs:4713 15: gpui::window::impl$19::new::closure$6 at D:\Projects\cloned_reference\zed\crates\gpui\src\window.rs:731 16: alloc::boxed::impl$49::call_mut,dyn$,assoc$ > > >,alloc::alloc::Global> at /rustc/051478957371ee0084a7c0913941d2a8c4757bb9\library\alloc\src\boxed.rs:2070 17: gpui::platform::windows::events::handle_move_msg at D:\Projects\cloned_reference\zed\crates\gpui\src\platform\windows\events.rs:129 18: gpui::platform::windows::events::handle_msg at D:\Projects\cloned_reference\zed\crates\gpui\src\platform\windows\events.rs:33 19: gpui::platform::windows::window::wnd_proc at D:\Projects\cloned_reference\zed\crates\gpui\src\platform\windows\window.rs:961 20: DispatchMessageW 21: CallWindowProcW 22: wglSwapBuffers 23: DispatchMessageW 24: DispatchMessageW 25: GetClassLongW 26: KiUserCallbackDispatcher 27: NtUserMessageCall 28: SendMessageW 29: GetDlgCtrlID 30: GetDlgCtrlID 31: ThemeInitApiHook 32: ThemeInitApiHook 33: GetDlgCtrlID 34: windows::Win32::UI::WindowsAndMessaging::DefWindowProcW at C:\Users\Giorgio\.cargo\registry\src\index.crates.io-6f17d22bba15001f\windows-0.58.0\src\Windows\Win32\UI\WindowsAndMessaging\mod.rs:630 35: gpui::platform::windows::events::handle_msg at D:\Projects\cloned_reference\zed\crates\gpui\src\platform\windows\events.rs:93 36: gpui::platform::windows::window::wnd_proc at D:\Projects\cloned_reference\zed\crates\gpui\src\platform\windows\window.rs:961 37: DispatchMessageW 38: CallWindowProcW 39: wglSwapBuffers 40: DispatchMessageW 41: DispatchMessageW 42: TranslateAcceleratorW 43: KiUserCallbackDispatcher 44: NtUserPeekMessage 45: PeekMessageW 46: PeekMessageW 47: Ordinal87 48: Ordinal87 49: Ordinal87 50: Ordinal87 51: CoGetProcessIdentifier 52: Ordinal87 53: Ordinal87 54: Ordinal87 55: CoGetProcessIdentifier 56: Ordinal87 57: HSTRING_UserUnmarshal64 58: NdrClientCall3 59: NdrpFindInterface 60: ObjectStublessClient32 61: RoGetActivationFactory 62: CoWaitForMultipleHandles 63: CoWaitForMultipleHandles 64: RoGetActivationFactory 65: RoGetActivationFactory 66: GetRegistryPathDetokenizer 67: GetRegistryPathDetokenizer 68: GetRegistryPathDetokenizer 69: GetRegistryPathDetokenizer 70: CreateDesktopAppXActivationInfo 71: lstrcpyn 72: GetPackagedDataForFile 73: CreateProcessInternalW 74: CreateProcessW 75: CreateProcessW 76: alacritty_terminal::tty::windows::conpty::new at C:\Users\Giorgio\.cargo\git\checkouts\alacritty-d00d61bb8a410914\cacdb5b\alacritty_terminal\src\tty\windows\conpty.rs:219 77: alacritty_terminal::tty::windows::new at C:\Users\Giorgio\.cargo\git\checkouts\alacritty-d00d61bb8a410914\cacdb5b\alacritty_terminal\src\tty\windows\mod.rs:37 78: terminal::TerminalBuilder::new at D:\Projects\cloned_reference\zed\crates\terminal\src\terminal.rs:399 79: project::Project::create_terminal at D:\Projects\cloned_reference\zed\crates\project\src\terminals.rs:205 80: terminal_view::impl$8::deserialize::closure$0::async_block$0::closure$1 at D:\Projects\cloned_reference\zed\crates\terminal_view\src\terminal_view.rs:1142 81: gpui::window::impl$23::update_model,anyhow::Error> >,terminal_view::impl$8::deserialize::closure$0::async_block$0::closure_env$1> at D:\Projects\cloned_reference\zed\crates\gpui\src\window.rs:3761 82: gpui::app::async_context::impl$3::update_model::closure$0,anyhow::Error> >,terminal_view::impl$8::deserialize::closure$0::async_block$0::closure_env$1> at D:\Projects\cloned_reference\zed\crates\gpui\src\app\async_context.rs:336 83: gpui::app::impl$5::update_window::closure$0,anyhow::Error> >,gpui::app::async_context::impl$3::update_model::closure_env$0,anyhow::Error> >,anyhow::Error> >,gpui::app::impl$5::update_window::closure_env$0,anyhow::Error> >,gpui::app::async_context::impl$3::update_model::closure_env$0,anyhow::Error> >,gpui::app::async_context::impl$3::update_model::closure_env$0,anyhow::Error> >,gpui::app::async_context::impl$3::update_model::closure_env$0,anyhow::Error> >,gpui::app::async_context::impl$3::update_model::closure_env$0,anyhow::Error> >,terminal_view::impl$8::deserialize::closure$0::async_block$0::closure_env$1> at D:\Projects\cloned_reference\zed\crates\gpui\src\app\async_context.rs:335 90: gpui::app::entity_map::Model::update,anyhow::Error> >,terminal_view::impl$8::deserialize::closure$0::async_block$0::c at D:\Projects\cloned_reference\zed\crates\gpui\src\app\entity_map.rs:422 91: terminal_view::impl$8::deserialize::closure$0::async_block$0 at D:\Projects\cloned_reference\zed\crates\terminal_view\src\terminal_view.rs:1141 92: core::future::future::impl$1::poll,anyhow::Error> > > > >,alloc::alloc::Global> > at /rustc/051478957371ee0084a7c0913941d2a8c4757bb9\library\core\src\future\future.rs:123 93: async_task::runnable::impl$6::spawn_local::impl$1::poll,anyhow::Error> > > > >,alloc::alloc::Global> at C:\Users\Giorgio\.cargo\registry\src\index.crates.io-6f17d22bba15001f\async-task-4.7.1\src\runnable.rs:455 94: async_task::raw::RawTask::run,anyhow::Error> > > > at C:\Users\Giorgio\.cargo\registry\src\index.crates.io-6f17d22bba15001f\async-task-4.7.1\src\raw.rs:557 95: async_task::runnable::Runnable::run > at C:\Users\Giorgio\.cargo\registry\src\index.crates.io-6f17d22bba15001f\async-task-4.7.1\src\runnable.rs:781 96: gpui::platform::windows::dispatcher::impl$2::dispatch_on_main_thread::closure$0 at D:\Projects\cloned_reference\zed\crates\gpui\src\platform\windows\dispatcher.rs:111 97: windows::System::DispatcherQueueHandlerBox::Invoke at C:\Users\Giorgio\.cargo\registry\src\index.crates.io-6f17d22bba15001f\windows-0.58.0\src\Windows\System\mod.rs:4697 98: CoreUICreateEx 99: CoreUICallReceive 100: CoreUICallReceive 101: CoreUICallReceive 102: CoreUICallReceive 103: CoreUICallReceive 104: CoreUICallReceive 105: CoreUICallReceive 106: CoreUICallReceive 107: DispatchMessageW 108: DispatchMessageW 109: GetClassLongW 110: KiUserCallbackDispatcher 111: NtUserPeekMessage 112: PeekMessageW 113: PeekMessageW 114: windows::Win32::UI::WindowsAndMessaging::PeekMessageW > > > at C:\Users\Giorgio\.cargo\registry\src\index.crates.io-6f17d22bba15001f\windows-0.58.0\src\Windows\Win32\UI\WindowsAndMessaging\mod.rs:2413 115: gpui::platform::windows::platform::impl$2::run at D:\Projects\cloned_reference\zed\crates\gpui\src\platform\windows\platform.rs:217 116: gpui::app::App::run at D:\Projects\cloned_reference\zed\crates\gpui\src\app.rs:153 117: zed::main at D:\Projects\cloned_reference\zed\crates\zed\src\main.rs:423 118: core::ops::function::FnOnce::call_once > at /rustc/051478957371ee0084a7c0913941d2a8c4757bb9\library\core\src\ops\function.rs:250 119: core::hint::black_box at /rustc/051478957371ee0084a7c0913941d2a8c4757bb9\library\core\src\hint.rs:338 std::sys_common::backtrace::__rust_begin_short_backtrace > at /rustc/051478957371ee0084a7c0913941d2a8c4757bb9\library\std\src\sys_common\backtrace.rs:155 120: std::rt::lang_start::closure$0 > at /rustc/051478957371ee0084a7c0913941d2a8c4757bb9\library\std\src\rt.rs:159 121: std::rt::lang_start_internal at /rustc/051478957371ee0084a7c0913941d2a8c4757bb9/library\std\src\rt.rs:141 122: std::rt::lang_start > at /rustc/051478957371ee0084a7c0913941d2a8c4757bb9\library\std\src\rt.rs:158 123: main 124: invoke_main at D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:78 __scrt_common_main_seh at D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288 125: BaseThreadInitThunk 126: RtlUserThreadStart error: process didn't exit successfully: `target\debug\zed.exe` (exit code: 0xffffffff) ```

After that I've set shell.with_arguments.program to C:\\Program Files\\WindowsApps\\Microsoft.PowerShell_7.4.4.0_x64__8wekyb3d8bbwe\\pwsh.exe, args to ["-nologo"] then cargo run. Also crashed. This is weird I expected it to work with the full path to the powershell executable.

Console output ```log [2024-08-16T22:01:51+02:00 ERROR fs.rs] Error { kind: Generic("Input watch path is neither a file nor a directory."), paths: [] } [2024-08-16T22:01:52+02:00 ERROR blade_graphics::hal::init] No composite alpha flag for transparency: OPAQUE [2024-08-16T22:01:52+02:00 ERROR blade_graphics::hal::init] No composite alpha flag for transparency: OPAQUE [2024-08-16T22:01:52+02:00 ERROR blade_graphics::hal::init] No composite alpha flag for transparency: OPAQUE [2024-08-16T22:01:52+02:00 ERROR fs.rs] Error { kind: Generic("Input watch path is neither a file nor a directory."), paths: [] } Thread "main" panicked with "already borrowed: BorrowMutError" at crates\gpui\src\app\async_context.rs:90:28 0: backtrace::backtrace::dbghelp64::trace at C:\Users\Giorgio\.cargo\registry\src\index.crates.io-6f17d22bba15001f\backtrace-0.3.73\src\backtrace\dbghelp64.rs:91 backtrace::backtrace::trace_unsynchronized at C:\Users\Giorgio\.cargo\registry\src\index.crates.io-6f17d22bba15001f\backtrace-0.3.73\src\backtrace\mod.rs:66 1: backtrace::backtrace::trace at C:\Users\Giorgio\.cargo\registry\src\index.crates.io-6f17d22bba15001f\backtrace-0.3.73\src\backtrace\mod.rs:53 2: backtrace::capture::Backtrace::create at C:\Users\Giorgio\.cargo\registry\src\index.crates.io-6f17d22bba15001f\backtrace-0.3.73\src\capture.rs:197 3: backtrace::capture::Backtrace::new at C:\Users\Giorgio\.cargo\registry\src\index.crates.io-6f17d22bba15001f\backtrace-0.3.73\src\capture.rs:162 4: zed::reliability::init_panic_hook::closure$0 at D:\Projects\cloned_reference\zed\crates\zed\src\reliability.rs:58 5: alloc::boxed::impl$50::call at /rustc/051478957371ee0084a7c0913941d2a8c4757bb9/library\alloc\src\boxed.rs:2077 std::panicking::rust_panic_with_hook at /rustc/051478957371ee0084a7c0913941d2a8c4757bb9/library\std\src\panicking.rs:799 6: std::panicking::begin_panic_handler::closure$0 at /rustc/051478957371ee0084a7c0913941d2a8c4757bb9/library\std\src\panicking.rs:664 7: std::sys_common::backtrace::__rust_end_short_backtrace at /rustc/051478957371ee0084a7c0913941d2a8c4757bb9/library\std\src\sys_common\backtrace.rs:171 8: std::panicking::begin_panic_handler at /rustc/051478957371ee0084a7c0913941d2a8c4757bb9/library\std\src\panicking.rs:652 9: core::panicking::panic_fmt at /rustc/051478957371ee0084a7c0913941d2a8c4757bb9/library\core\src\panicking.rs:72 10: core::cell::panic_already_borrowed at /rustc/051478957371ee0084a7c0913941d2a8c4757bb9/library\core\src\cell.rs:785 11: core::cell::RefCell::borrow_mut at /rustc/051478957371ee0084a7c0913941d2a8c4757bb9\library\core\src\cell.rs:1076 12: gpui::app::AppCell::borrow_mut at D:\Projects\cloned_reference\zed\crates\gpui\src\app.rs:74 13: gpui::app::async_context::impl$0::update_window,gpui::window::impl$19::new::closure$6::closure_env$0> at D:\Projects\cloned_reference\zed\crates\gpui\src\app\async_context.rs:90 14: gpui::window::AnyWindowHandle::update,gpui::window::impl$19::new::closure$6::closure_env$0> at D:\Projects\cloned_reference\zed\crates\gpui\src\window.rs:4713 15: gpui::window::impl$19::new::closure$6 at D:\Projects\cloned_reference\zed\crates\gpui\src\window.rs:731 16: alloc::boxed::impl$49::call_mut,dyn$,assoc$ > > >,alloc::alloc::Global> at /rustc/051478957371ee0084a7c0913941d2a8c4757bb9\library\alloc\src\boxed.rs:2070 17: gpui::platform::windows::events::handle_move_msg at D:\Projects\cloned_reference\zed\crates\gpui\src\platform\windows\events.rs:129 18: gpui::platform::windows::events::handle_msg at D:\Projects\cloned_reference\zed\crates\gpui\src\platform\windows\events.rs:33 19: gpui::platform::windows::window::wnd_proc at D:\Projects\cloned_reference\zed\crates\gpui\src\platform\windows\window.rs:961 20: DispatchMessageW 21: CallWindowProcW 22: wglSwapBuffers 23: DispatchMessageW 24: DispatchMessageW 25: GetClassLongW 26: KiUserCallbackDispatcher 27: NtUserMessageCall 28: SendMessageW 29: GetDlgCtrlID 30: GetDlgCtrlID 31: ThemeInitApiHook 32: ThemeInitApiHook 33: GetDlgCtrlID 34: windows::Win32::UI::WindowsAndMessaging::DefWindowProcW at C:\Users\Giorgio\.cargo\registry\src\index.crates.io-6f17d22bba15001f\windows-0.58.0\src\Windows\Win32\UI\WindowsAndMessaging\mod.rs:630 35: gpui::platform::windows::events::handle_msg at D:\Projects\cloned_reference\zed\crates\gpui\src\platform\windows\events.rs:93 36: gpui::platform::windows::window::wnd_proc at D:\Projects\cloned_reference\zed\crates\gpui\src\platform\windows\window.rs:961 37: DispatchMessageW 38: CallWindowProcW 39: wglSwapBuffers 40: DispatchMessageW 41: DispatchMessageW 42: TranslateAcceleratorW 43: KiUserCallbackDispatcher 44: NtUserPeekMessage 45: PeekMessageW 46: PeekMessageW 47: Ordinal87 48: Ordinal87 49: Ordinal87 50: Ordinal87 51: CoGetProcessIdentifier 52: Ordinal87 53: Ordinal87 54: Ordinal87 55: CoGetProcessIdentifier 56: Ordinal87 57: HSTRING_UserUnmarshal64 58: NdrClientCall3 59: NdrpFindInterface 60: ObjectStublessClient32 61: RoGetActivationFactory 62: CoWaitForMultipleHandles 63: CoWaitForMultipleHandles 64: RoGetActivationFactory 65: RoGetActivationFactory 66: GetRegistryPathDetokenizer 67: GetRegistryPathDetokenizer 68: GetRegistryPathDetokenizer 69: GetRegistryPathDetokenizer 70: CreateDesktopAppXActivationInfo 71: lstrcpyn 72: GetPackagedDataForFile 73: CreateProcessInternalW 74: CreateProcessW 75: CreateProcessW 76: alacritty_terminal::tty::windows::conpty::new at C:\Users\Giorgio\.cargo\git\checkouts\alacritty-d00d61bb8a410914\cacdb5b\alacritty_terminal\src\tty\windows\conpty.rs:219 77: alacritty_terminal::tty::windows::new at C:\Users\Giorgio\.cargo\git\checkouts\alacritty-d00d61bb8a410914\cacdb5b\alacritty_terminal\src\tty\windows\mod.rs:37 78: terminal::TerminalBuilder::new at D:\Projects\cloned_reference\zed\crates\terminal\src\terminal.rs:399 79: project::Project::create_terminal at D:\Projects\cloned_reference\zed\crates\project\src\terminals.rs:205 80: terminal_view::impl$8::deserialize::closure$0::async_block$0::closure$1 at D:\Projects\cloned_reference\zed\crates\terminal_view\src\terminal_view.rs:1142 81: gpui::window::impl$23::update_model,anyhow::Error> >,terminal_view::impl$8::deserialize::closure$0::async_block$0::closure_env$1> at D:\Projects\cloned_reference\zed\crates\gpui\src\window.rs:3761 82: gpui::app::async_context::impl$3::update_model::closure$0,anyhow::Error> >,terminal_view::impl$8::deserialize::closure$0::async_block$0::closure_env$1> at D:\Projects\cloned_reference\zed\crates\gpui\src\app\async_context.rs:336 83: gpui::app::impl$5::update_window::closure$0,anyhow::Error> >,gpui::app::async_context::impl$3::update_model::closure_env$0,anyhow::Error> >,anyhow::Error> >,gpui::app::impl$5::update_window::closure_env$0,anyhow::Error> >,gpui::app::async_context::impl$3::update_model::closure_env$0,anyhow::Error> >,gpui::app::async_context::impl$3::update_model::closure_env$0,anyhow::Error> >,gpui::app::async_context::impl$3::update_model::closure_env$0,anyhow::Error> >,gpui::app::async_context::impl$3::update_model::closure_env$0,anyhow::Error> >,terminal_view::impl$8::deserialize::closure$0::async_block$0::closure_env$1> at D:\Projects\cloned_reference\zed\crates\gpui\src\app\async_context.rs:335 90: gpui::app::entity_map::Model::update,anyhow::Error> >,terminal_view::impl$8::deserialize::closure$0::async_block$0::c at D:\Projects\cloned_reference\zed\crates\gpui\src\app\entity_map.rs:422 91: terminal_view::impl$8::deserialize::closure$0::async_block$0 at D:\Projects\cloned_reference\zed\crates\terminal_view\src\terminal_view.rs:1141 92: core::future::future::impl$1::poll,anyhow::Error> > > > >,alloc::alloc::Global> > at /rustc/051478957371ee0084a7c0913941d2a8c4757bb9\library\core\src\future\future.rs:123 93: async_task::runnable::impl$6::spawn_local::impl$1::poll,anyhow::Error> > > > >,alloc::alloc::Global> at C:\Users\Giorgio\.cargo\registry\src\index.crates.io-6f17d22bba15001f\async-task-4.7.1\src\runnable.rs:455 94: async_task::raw::RawTask::run,anyhow::Error> > > > at C:\Users\Giorgio\.cargo\registry\src\index.crates.io-6f17d22bba15001f\async-task-4.7.1\src\raw.rs:557 95: async_task::runnable::Runnable::run > at C:\Users\Giorgio\.cargo\registry\src\index.crates.io-6f17d22bba15001f\async-task-4.7.1\src\runnable.rs:781 96: gpui::platform::windows::dispatcher::impl$2::dispatch_on_main_thread::closure$0 at D:\Projects\cloned_reference\zed\crates\gpui\src\platform\windows\dispatcher.rs:111 97: windows::System::DispatcherQueueHandlerBox::Invoke at C:\Users\Giorgio\.cargo\registry\src\index.crates.io-6f17d22bba15001f\windows-0.58.0\src\Windows\System\mod.rs:4697 98: CoreUICreateEx 99: CoreUICallReceive 100: CoreUICallReceive 101: CoreUICallReceive 102: CoreUICallReceive 103: CoreUICallReceive 104: CoreUICallReceive 105: CoreUICallReceive 106: CoreUICallReceive 107: DispatchMessageW 108: DispatchMessageW 109: GetClassLongW 110: KiUserCallbackDispatcher 111: NtUserPeekMessage 112: PeekMessageW 113: PeekMessageW 114: windows::Win32::UI::WindowsAndMessaging::PeekMessageW > > > at C:\Users\Giorgio\.cargo\registry\src\index.crates.io-6f17d22bba15001f\windows-0.58.0\src\Windows\Win32\UI\WindowsAndMessaging\mod.rs:2413 115: gpui::platform::windows::platform::impl$2::run at D:\Projects\cloned_reference\zed\crates\gpui\src\platform\windows\platform.rs:217 116: gpui::app::App::run at D:\Projects\cloned_reference\zed\crates\gpui\src\app.rs:153 117: zed::main at D:\Projects\cloned_reference\zed\crates\zed\src\main.rs:423 118: core::ops::function::FnOnce::call_once > at /rustc/051478957371ee0084a7c0913941d2a8c4757bb9\library\core\src\ops\function.rs:250 119: core::hint::black_box at /rustc/051478957371ee0084a7c0913941d2a8c4757bb9\library\core\src\hint.rs:338 std::sys_common::backtrace::__rust_begin_short_backtrace > at /rustc/051478957371ee0084a7c0913941d2a8c4757bb9\library\std\src\sys_common\backtrace.rs:155 120: std::rt::lang_start::closure$0 > at /rustc/051478957371ee0084a7c0913941d2a8c4757bb9\library\std\src\rt.rs:159 121: std::rt::lang_start_internal at /rustc/051478957371ee0084a7c0913941d2a8c4757bb9/library\std\src\rt.rs:141 122: std::rt::lang_start > at /rustc/051478957371ee0084a7c0913941d2a8c4757bb9\library\std\src\rt.rs:158 123: main 124: invoke_main at D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:78 __scrt_common_main_seh at D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288 125: BaseThreadInitThunk 126: RtlUserThreadStart error: process didn't exit successfully: `target\debug\zed.exe` (exit code: 0xffffffff) ```

No log files were written in ~\AppData\Local\Zed\logs when running the debug build

JunkuiZhang commented 2 months ago

This is strange, I can not reproduce on my end.

https://github.com/user-attachments/assets/e1553d26-7494-445a-b93f-a9627c8ab7bd

everdrone commented 2 months ago

Strange.. I just tried and if i set pwsh.exe while zed is running it works. It only crashes if i reopen it with those settings and if i had an open terminal pane when closing it the last time

JunkuiZhang commented 2 months ago

Would you mind sharing your settings.json file?

everdrone commented 2 months ago

Sure, here


{
    "theme": {
        "mode": "system",
        "dark": "Rosé Pine",
        "light": "Rosé Pine Dawn"
    },
    "ui_font_size": 16,
    "buffer_font_family": "Monaspace Neon",
    // "buffer_font_family": "SF Mono",
    // "buffer_font_weight": 500,
    "buffer_font_features": {
        "liga": false,
        "calt": true,
        "ss03": true,
        "ss04": true
    },
    "buffer_font_size": 12,
    "buffer_line_height": {
        "custom": 1.7
    },
    "vim_mode": true,
    "vim": {
        "use_system_clipboard": "always"
    },
    "vertical_scroll_margin": 3,
    "relative_line_numbers": true,
    "tab_size": 4,
    "remove_trailing_whitespace_on_save": true,
    "ensure_final_newline_on_save": true,
    "show_whitespaces": "selection",
    "show_wrap_guides": false,
    "indent_guides": { "enabled": false },
    "languages": {
        "Markdown": {
            "formatter": "prettier"
        }
    },
    "scrollbar": {
        "show": "auto"
    },
    "inlay_hints": {
        "enabled": false
    },
    "tabs": {
        "file_icons": true
    },
    "terminal": {
        "font_family": "Monaspace Neon",
        // "font_family": "SF Mono",
        "font_weight": 500,
        "font_size": 13,
        "dock": "bottom"
    },
    "assistant": {
        "default_model": {
            "provider": "copilot_chat",
            "model": "gpt-4"
        },
        "version": "2"
    },
    "features": {
        "inline_completion_provider": "none"
    },
    "telemetry": {
        "diagnostics": false,
        "metrics": false
    }
}
JunkuiZhang commented 2 months ago

Still can not reproduce even with your settings.

eng1n88r commented 1 month ago

I think I'm having similar issue. Sometimes it works sometimes it just doesn't start. I use PowerShell as shell too (pwsh.exe one).

My environment is:

First time it compiles and started successfully, all consecutive runs it is failing. I tried to run:

cargo clean
cargo build --release
cargo run --release

Getting this following error:

> cargo run --release
warning: zed@0.154.0: Info: using 'ca2cce79edb68623f18d7b24f32446fcd04fb181' hash for ZED_COMMIT_SHA env var
    Finished `release` profile [optimized + debuginfo] target(s) in 1.01s
     Running `target\release\zed.exe`
error: process didn't exit successfully: `target\release\zed.exe` (exit code: 0xffffffff)

Compiled it in the debug and here is the trace:

Details ```log cargo run Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.12s Running `target\debug\zed.exe` [2024-09-17T11:31:11-04:00 ERROR fs.rs] Error { kind: Generic("Input watch path is neither a file nor a directory."), paths: [] } [2024-09-17T11:31:11-04:00 ERROR fs.rs] Error { kind: Generic("Input watch path is neither a file nor a directory."), paths: [] } [2024-09-17T11:31:11-04:00 ERROR blade_graphics::hal::init] No composite alpha flag for transparency: OPAQUE [2024-09-17T11:31:11-04:00 ERROR blade_graphics::hal::init] No composite alpha flag for transparency: OPAQUE [2024-09-17T11:31:11-04:00 ERROR blade_graphics::hal::init] No composite alpha flag for transparency: OPAQUE [2024-09-17T11:31:12-04:00 ERROR fs.rs] Error { kind: Generic("Input watch path is neither a file nor a directory."), paths: [] } Thread "main" panicked with "already borrowed: BorrowMutError" at crates\gpui\src\app\async_context.rs:90:28 0: backtrace::backtrace::dbghelp64::trace at C:\Users\exbarboss\.cargo\registry\src\index.crates.io-6f17d22bba15001f\backtrace-0.3.73\src\backtrace\dbghelp64.rs:91 backtrace::backtrace::trace_unsynchronized at C:\Users\exbarboss\.cargo\registry\src\index.crates.io-6f17d22bba15001f\backtrace-0.3.73\src\backtrace\mod.rs:66 1: backtrace::backtrace::trace at C:\Users\exbarboss\.cargo\registry\src\index.crates.io-6f17d22bba15001f\backtrace-0.3.73\src\backtrace\mod.rs:53 2: backtrace::capture::Backtrace::create at C:\Users\exbarboss\.cargo\registry\src\index.crates.io-6f17d22bba15001f\backtrace-0.3.73\src\capture.rs:197 3: backtrace::capture::Backtrace::new at C:\Users\exbarboss\.cargo\registry\src\index.crates.io-6f17d22bba15001f\backtrace-0.3.73\src\capture.rs:162 4: zed::reliability::init_panic_hook::closure$0 at E:\work\hub\zed\crates\zed\src\reliability.rs:58 5: alloc::boxed::impl$50::call at /rustc/eeb90cda1969383f56a2637cbd3037bdf598841c/library\alloc\src\boxed.rs:2084 std::panicking::rust_panic_with_hook at /rustc/eeb90cda1969383f56a2637cbd3037bdf598841c/library\std\src\panicking.rs:808 6: std::panicking::begin_panic_handler::closure$0 at /rustc/eeb90cda1969383f56a2637cbd3037bdf598841c/library\std\src\panicking.rs:674 7: std::sys::backtrace::__rust_end_short_backtrace at /rustc/eeb90cda1969383f56a2637cbd3037bdf598841c/library\std\src\sys\backtrace.rs:168 8: std::panicking::begin_panic_handler at /rustc/eeb90cda1969383f56a2637cbd3037bdf598841c/library\std\src\panicking.rs:665 9: core::panicking::panic_fmt at /rustc/eeb90cda1969383f56a2637cbd3037bdf598841c/library\core\src\panicking.rs:74 10: core::cell::panic_already_borrowed at /rustc/eeb90cda1969383f56a2637cbd3037bdf598841c/library\core\src\cell.rs:785 11: core::cell::RefCell::borrow_mut at /rustc/eeb90cda1969383f56a2637cbd3037bdf598841c\library\core\src\cell.rs:1076 12: gpui::app::AppCell::borrow_mut at E:\work\hub\zed\crates\gpui\src\app.rs:74 13: gpui::app::async_context::impl$0::update_window,gpui::window::impl$19::new::closure$4::closure_env$0> at E:\work\hub\zed\crates\gpui\src\app\async_context.rs:90 14: gpui::window::AnyWindowHandle::update,gpui::window::impl$19::new::closure$4::closure_env$0> at E:\work\hub\zed\crates\gpui\src\window.rs:4774 15: gpui::window::impl$19::new::closure$4 at E:\work\hub\zed\crates\gpui\src\window.rs:686 16: alloc::boxed::impl$49::call_mut,dyn$,assoc$ > > >,alloc::alloc::Global> at /rustc/eeb90cda1969383f56a2637cbd3037bdf598841c\library\alloc\src\boxed.rs:2077 17: gpui::platform::windows::events::handle_paint_msg at E:\work\hub\zed\crates\gpui\src\platform\windows\events.rs:190 18: gpui::platform::windows::events::handle_msg at E:\work\hub\zed\crates\gpui\src\platform\windows\events.rs:43 19: gpui::platform::windows::window::wnd_proc at E:\work\hub\zed\crates\gpui\src\platform\windows\window.rs:965 20: DispatchMessageW 21: CallWindowProcW 22: wglSwapBuffers 23: DispatchMessageW 24: DispatchMessageW 25: GetClassLongW 26: KiUserCallbackDispatcher 27: NtUserDispatchMessage 28: DispatchMessageW 29: Ordinal87 30: Ordinal87 31: Ordinal87 32: CoGetProcessIdentifier 33: Ordinal87 34: Ordinal87 35: Ordinal87 36: CoGetProcessIdentifier 37: Ordinal87 38: HSTRING_UserUnmarshal64 39: NdrClientCall3 40: NdrpFindInterface 41: ObjectStublessClient32 42: RoGetActivationFactory 43: CoWaitForMultipleHandles 44: CoWaitForMultipleHandles 45: RoGetActivationFactory 46: RoGetActivationFactory 47: GetRegistryPathDetokenizer 48: GetRegistryPathDetokenizer 49: GetRegistryPathDetokenizer 50: GetRegistryPathDetokenizer 51: CreateDesktopAppXActivationInfo 52: CompletePackagedProcessCreationEx 53: LoadAppExecutionAliasInfoEx 54: CompletePackagedProcessCreationEx 55: LoadAppExecutionAliasInfoEx 56: CreateProcessInternalW 57: CreateProcessW 58: CreateProcessW 59: alacritty_terminal::tty::windows::conpty::new at C:\Users\exbarboss\.cargo\git\checkouts\alacritty-d00d61bb8a410914\91d034f\alacritty_terminal\src\tty\windows\conpty.rs:219 60: alacritty_terminal::tty::windows::new at C:\Users\exbarboss\.cargo\git\checkouts\alacritty-d00d61bb8a410914\91d034f\alacritty_terminal\src\tty\windows\mod.rs:37 61: terminal::TerminalBuilder::new at E:\work\hub\zed\crates\terminal\src\terminal.rs:394 62: project::Project::create_terminal at E:\work\hub\zed\crates\project\src\terminals.rs:213 63: terminal_view::impl$8::deserialize::closure$0::async_block$0::closure$1 at E:\work\hub\zed\crates\terminal_view\src\terminal_view.rs:1176 64: gpui::window::impl$23::update_model,anyhow::Error> >,terminal_view::impl$8::deserialize::closure$0::async_block$0::closure_env$1> at E:\work\hub\zed\crates\gpui\src\window.rs:3822 65: gpui::app::async_context::impl$3::update_model::closure$0,anyhow::Error> >,terminal_view::impl$8::deserialize::closure$0::async_block$0::closure_env$1> at E:\work\hub\zed\crates\gpui\src\app\async_context.rs:336 66: gpui::app::impl$5::update_window::closure$0,anyhow::Error> >,gpui::app::async_context::impl$3::update_model::closure_env$0,anyhow::Error> >,anyhow::Error> >,gpui::app::impl$5::update_window::closure_env$0,anyhow::Error> >,gpui::app::async_context::impl$3::update_model::closure_env$0,anyhow::Error> >,gpui::app::async_context::impl$3::update_model::closure_env$0,anyhow::Error> >,gpui::app::async_context::impl$3::update_model::closure_env$0,anyhow::Error> >,gpui::app::async_context::impl$3::update_model::closure_env$0,anyhow::Error> >,terminal_view::impl$8::deserialize::closure$0::async_block$0::closure_env$1> at E:\work\hub\zed\crates\gpui\src\app\async_context.rs:335 73: gpui::app::entity_map::Model::update,anyhow::Error> >,terminal_view::impl$8::deserialize::closure$0::async_block$0::c at E:\work\hub\zed\crates\gpui\src\app\entity_map.rs:422 74: terminal_view::impl$8::deserialize::closure$0::async_block$0 at E:\work\hub\zed\crates\terminal_view\src\terminal_view.rs:1175 75: core::future::future::impl$1::poll,anyhow::Error> > > > >,alloc::alloc::Global> > at /rustc/eeb90cda1969383f56a2637cbd3037bdf598841c\library\core\src\future\future.rs:123 76: async_task::runnable::impl$6::spawn_local::impl$1::poll,anyhow::Error> > > > >,alloc::alloc::Global> at C:\Users\exbarboss\.cargo\registry\src\index.crates.io-6f17d22bba15001f\async-task-4.7.1\src\runnable.rs:455 77: async_task::raw::RawTask::run,anyhow::Error> > > > at C:\Users\exbarboss\.cargo\registry\src\index.crates.io-6f17d22bba15001f\async-task-4.7.1\src\raw.rs:557 78: async_task::runnable::Runnable::run > at C:\Users\exbarboss\.cargo\registry\src\index.crates.io-6f17d22bba15001f\async-task-4.7.1\src\runnable.rs:781 79: gpui::platform::windows::dispatcher::impl$2::dispatch_on_main_thread::closure$0 at E:\work\hub\zed\crates\gpui\src\platform\windows\dispatcher.rs:111 80: windows::System::DispatcherQueueHandlerBox::Invoke at C:\Users\exbarboss\.cargo\registry\src\index.crates.io-6f17d22bba15001f\windows-0.58.0\src\Windows\System\mod.rs:4697 81: CoreUICreateEx 82: CoreUICallReceive 83: CoreUICallReceive 84: CoreUICallReceive 85: CoreUICallReceive 86: CoreUICallReceive 87: CoreUICallReceive 88: CoreUICallReceive 89: CoreUICallReceive 90: DispatchMessageW 91: DispatchMessageW 92: GetClassLongW 93: KiUserCallbackDispatcher 94: NtUserPeekMessage 95: PeekMessageW 96: PeekMessageW 97: windows::Win32::UI::WindowsAndMessaging::PeekMessageW > > > at C:\Users\exbarboss\.cargo\registry\src\index.crates.io-6f17d22bba15001f\windows-0.58.0\src\Windows\Win32\UI\WindowsAndMessaging\mod.rs:2413 98: gpui::platform::windows::platform::impl$2::run at E:\work\hub\zed\crates\gpui\src\platform\windows\platform.rs:212 99: gpui::app::App::run at E:\work\hub\zed\crates\gpui\src\app.rs:153 100: zed::main at E:\work\hub\zed\crates\zed\src\main.rs:434 101: core::ops::function::FnOnce::call_once > at /rustc/eeb90cda1969383f56a2637cbd3037bdf598841c\library\core\src\ops\function.rs:250 102: core::hint::black_box at /rustc/eeb90cda1969383f56a2637cbd3037bdf598841c\library\core\src\hint.rs:389 std::sys::backtrace::__rust_begin_short_backtrace > at /rustc/eeb90cda1969383f56a2637cbd3037bdf598841c\library\std\src\sys\backtrace.rs:152 103: std::rt::lang_start::closure$0 > at /rustc/eeb90cda1969383f56a2637cbd3037bdf598841c\library\std\src\rt.rs:162 104: std::rt::lang_start_internal::closure$2 at /rustc/eeb90cda1969383f56a2637cbd3037bdf598841c/library\std\src\rt.rs:141 std::panicking::try::do_call at /rustc/eeb90cda1969383f56a2637cbd3037bdf598841c/library\std\src\panicking.rs:557 std::panicking::try at /rustc/eeb90cda1969383f56a2637cbd3037bdf598841c/library\std\src\panicking.rs:521 std::panic::catch_unwind at /rustc/eeb90cda1969383f56a2637cbd3037bdf598841c/library\std\src\panic.rs:350 std::rt::lang_start_internal at /rustc/eeb90cda1969383f56a2637cbd3037bdf598841c/library\std\src\rt.rs:141 105: std::rt::lang_start > at /rustc/eeb90cda1969383f56a2637cbd3037bdf598841c\library\std\src\rt.rs:161 106: main 107: invoke_main at D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:78 __scrt_common_main_seh at D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288 108: BaseThreadInitThunk 109: RtlUserThreadStart error: process didn't exit successfully: `target\debug\zed.exe` (exit code: 0xffffffff) ```
JunkuiZhang commented 1 month ago

@eng1n88r Would you mind sharing your settings.json?

eng1n88r commented 1 month ago

@eng1n88r Would you mind sharing your settings.json?

Could you point the location please?

JunkuiZhang commented 1 month ago

Could you point the location please?

You can press ctrl+, to open it, and paste the content here.

eng1n88r commented 1 month ago

Could you point the location please?

You can press ctrl+, to open it, and paste the content here.

Zed is not starting unfortunately now. I was able to find it in c:\Users\%USER%\AppData\Roaming\Zed\

I think I found it:

Details ```json // Zed settings // // For information on how to configure Zed, see the Zed // documentation: https://zed.dev/docs/configuring-zed // // To see all of Zed's default settings without changing your // custom settings, run `zed: open default settings` from the // command palette { "autosave": "on_focus_change", "assistant": { "default_model": { "provider": "zed.dev", "model": "claude-3-5-sonnet-20240620" }, "version": "2" }, "ui_font_size": 16, "buffer_font_size": 16, "theme": { "mode": "system", "light": "One Light", "dark": "One Dark" }, "terminal": { "font_family": "CaskaydiaCove Nerd Font", "font_size": 16, "shell": { "program": "C:/Users/exbarboss/AppData/Local/Microsoft/WindowsApps/Microsoft.PowerShell_8wekyb3d8bbwe/pwsh.exe" } } } ```
JunkuiZhang commented 1 month ago

Zed is not starting unfortunately now. I was able to find it in c:\Users\%USER%\AppData\Roaming\Zed\

I think I found it:

Details

Oh great, sorry for the stupid advice...

JunkuiZhang commented 1 month ago

@eng1n88r Could you try #17946 ? I'm thinking if it is just another bug of DispatcherQueue, and I don't know why I just can not reproduce this bug on my end.

eng1n88r commented 1 month ago

@eng1n88r Could you try #17946 ? I'm thinking if it is just another bug of DispatcherQueue, and I don't know why I just can not reproduce this bug on my end.

I checked out your PR and it WORKS for me!

JunkuiZhang commented 1 month ago

I checked out your PR and it WORKS for me!

Great!

JunkuiZhang commented 1 month ago

@everdrone Could you try the newest main branch to see if it is fixed ?

everdrone commented 1 month ago

@everdrone Could you try the newest main branch to see if it is fixed ?

It worked! The issue seems resolved! Thank you @JunkuiZhang

JunkuiZhang commented 1 month ago

It worked! The issue seems resolved! Thank you @JunkuiZhang

Good news!

eng1n88r commented 1 month ago

Was going to ask when the PR will be merged and just noticed that it is already. I guess we need @everdrone to check and confirm if it fixed the issue.

everdrone commented 1 month ago

Yes, it's fixed for me. I'll close.