Skip to content
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

Child process not starting and returning an error #401

Closed
SRWieZ opened this issue Nov 5, 2024 · 6 comments
Closed

Child process not starting and returning an error #401

SRWieZ opened this issue Nov 5, 2024 · 6 comments
Labels
bug Something isn't working

Comments

@SRWieZ
Copy link
Contributor

SRWieZ commented Nov 5, 2024

What were you trying to do?

Start a child process

What happened?

It seems that the request to electron to start the process returns null.

https://flareapp.io/share/qm1bXQ2P

How to reproduce the bug

ChildProcess::artisan(
    cmd: 'app:directories-watcher',
    alias: 'git',
    persistent: true
);

Package Versions

0.6.1

PHP Version

8.3.13

Laravel Version

10.48.22

Node Version

21.7.3

Which operating systems have you seen this occur on?

macOS

OS version

15.1

Notes

@simonhamp, you have access to my repository. It may be easier for reproducing the bug.

@SRWieZ SRWieZ added the bug Something isn't working label Nov 5, 2024
@simonhamp
Copy link
Member

I managed to get everything running... maybe I need to see the state of things on your machine to see what's up?

Screenshot 2024-11-07 at 23 23 44

@SRWieZ
Copy link
Contributor Author

SRWieZ commented Nov 8, 2024

Oh, that's a bummer.

Thank you for trying. I will come back when I know more.

From my understanding, the request to start the job returns null.

Is there any place I can look, like a Node.js error log?
Also, I'm on an Intel Mac; is that something that could be related to the bug?

P.S. I had already tried removing the node_modules directory and vendor (just listened to your podcast ^^).

@simonhamp
Copy link
Member

Make sure you're running the latest version of nativephp/electron (0.8.3 as of right now) - a composer update won't be enough to do this if your composer.json version constraint doesn't look something like ^0.8 - you'll have to composer require nativephp/electron

@simonhamp
Copy link
Member

I've put a bit of work already into surfacing runtime errors in the terminal, which should help when you're using native:serve - but you won't get this unless you're on the latest version

@SRWieZ
Copy link
Contributor Author

SRWieZ commented Nov 8, 2024

That was it.

I am ashamed; I did verify that I was on the latest version of every package before posting the issue with
composer show "nativephp/*" --format=json

Fixed by upgrading to 8.*
composer require nativephp/electron -W

@SRWieZ SRWieZ closed this as completed Nov 8, 2024
@simonhamp
Copy link
Member

No shame in it! This will be easier once we're past v1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants