joshwcomeau / guppy

šŸ A friendly application manager and task runner for React.js
ISC License
3.27k stars 154 forks source link

Guppy terminated by signal SIGTRAP #315

Closed hughrawlinson closed 5 years ago

hughrawlinson commented 5 years ago

Describe the bug Guppy won't run, and I can't find info about how to debug it. When I run by double clicking the app icon, the icon bounces on my dock once, and exits. When I try to run Guppy from the command line, I get:

hugh@mercury ~> /Applications/Guppy.app/Contents/MacOS/Guppy ; exit;
fish: '/Applications/Guppy.app/Contentā€¦' terminated by signal SIGTRAP (Trace or breakpoint trap)

[Process completed]

To Reproduce Steps to reproduce the behavior:

  1. Download Guppy 0.3.0 on MacOS Mojave
  2. Run Guppy
  3. Observe failed startup

Expected behavior Guppy to launch

Environment (please complete the following information):

Additional context My node installation comes via nvm, which is added to my path in my zsh config - how does Guppy get a $PATH? I suspect it might not be picking up my node installation.

AWolf81 commented 5 years ago

@hughrawlinson thanks for reporting the issue.

The trap is probably a different issue and not related to Node not on path. As Electron should start even with-out node on path as Electron is using a bundled node version. @melanieseltzer will try to create a new installer for Mac - maybe there is something broken with the file we're having in our release.

But having the setup with zsh and NVM can be a problem as mentioned here in the comment from Mathieu to platform.service. We had troubles with NVM on Mac and did only a hacky fix for NVM with bashrc.

@mathieudutour could you please have a look as you're also having the NVM & zsh setup on Mac? Please also double check that Node is not found. I like the idea of the shell call that you mentioned. But we have to test it afterwards with bashrc as well. I can't fix it as I'm working on Windows where that issue is not present.

melanieseltzer commented 5 years ago

Hi @hughrawlinson sorry you're having issues. As @AWolf81 mentioned I just updated the installer for Mac. The startup issue has been experienced by a few different people. Could you please re-download the dmg and see if it's fixed for you?

hughrawlinson commented 5 years ago

@melanieseltzer it runs! Thanks!

Now it's saying it can't find node - I don't really want to install another copy of Node for Guppy, is there a way to point Guppy at the right executable? How does it construct the $PATH? I guess from .bashrc?

hughrawlinson commented 5 years ago

Ok, it works if I load nvm in my bashrc :) Thanks!