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

Leaf serve --watch does not work on OSX #14

Open
JensRoland opened this issue Feb 25, 2024 · 2 comments
Open

Leaf serve --watch does not work on OSX #14

JensRoland opened this issue Feb 25, 2024 · 2 comments

Comments

@JensRoland
Copy link

Trying to run leaf serve with the --watch option, but getting this error:

❯ leaf serve --watch
sh: /Users/jensr/Library/Application: No such file or directory
node:events:505
    throw err; // Unhandled 'error' event
    ^

Error [ERR_UNHANDLED_ERROR]: Unhandled error. (127)
    at Bus.emit (node:events:503:17)
    at ChildProcess.<anonymous> (/usr/local/lib/node_modules/@leafphp/watcher/lib/monitor/run.js:190:11)
    at ChildProcess.emit (node:events:514:28)
    at ChildProcess._handle.onexit (node:internal/child_process:294:12) {
  code: 'ERR_UNHANDLED_ERROR',
  context: 127
}

Node.js v20.10.0

Notice how it fails on /Users/jensr/Library/Application: No such file or directory? It seems the script is trying to run something under /Users/jensr/Library/Application Scripts or /Users/jensr/Library/Application Support, but it is not handling the path containing the space character correctly.

@mychidarko
Copy link
Member

image Do you get this prompt?

@mychidarko mychidarko reopened this Mar 5, 2024
@mychidarko
Copy link
Member

I've been able to replicate the issue, I'm taking a look at it

@mychidarko mychidarko moved this to To do in Leaf Board Jul 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: To do
Development

No branches or pull requests

2 participants