devpod icon indicating copy to clipboard operation
devpod copied to clipboard

DevPod GUI fails to launch on macOS

Open nwjsmith opened this issue 9 months ago • 6 comments

What happened?

When launching the app by double-clicking on it in Finder, it fails to launch. The devpod CLI still works correctly.

What did you expect to happen instead?

I expected a DevPod window to open.

How can we reproduce the bug? (as minimally and precisely as possible)

Install the most recent release or release candidate and launch it.

Local Environment:

  • DevPod Version: v0.6.13
  • Operating System: macOS Sequoia 15.3.1
  • ARCH of the OS: ARM64

nwjsmith avatar Mar 04 '25 16:03 nwjsmith

It gets weirder! Double-clicking the app does not work, but launching it from the shell with open -a DevPod.app does work.

nwjsmith avatar Mar 05 '25 16:03 nwjsmith

I'm in the same situation — macOS 15.4. Unfortunately, the workaround using open -a wasn't available for me because I was using Nushell. Once I switched to Zsh as the default shell, it worked.

interpeix avatar Apr 08 '25 07:04 interpeix

OK great hint, it's also working for me when I switch back to ZSH. I'll see if I can dig up a minimal reproduction.

nwjsmith avatar Apr 08 '25 12:04 nwjsmith

It looks like the desktop app tries to grab the value of the PATH variable by running $SHELL -ilc 'printenv PATH; exit'. When I run that with Nushell I get a very pretty error:

nu -ilc 'printenv PATH; exit'
Error: nu::parser::missing_flag_param

  × Missing flag argument.
   ╭─[source:1:4]
 1 │ nu -ilc
   ·    ──┬─
   ·      ╰── flag missing string argument
   ╰────

I think that explains why @interpeix was having issues, but I wasn't on Nushell I was using fish, where this seems to work

fish -ilc 'printenv PATH; exit'
/opt/homebrew/bin:...

Investigating further to see if I can find the cause for my non-Nushell issues.

nwjsmith avatar Apr 11 '25 18:04 nwjsmith

This for now works for me, and so I can keep nushell as login shell:

zsh -ci "open -n /Applications/DevPod.app"

Edit: I am using nushell 0.104

dagrlx avatar May 01 '25 00:05 dagrlx

This issue is stale because it has been open for 60 days with no activity.

github-actions[bot] avatar Jun 30 '25 02:06 github-actions[bot]