facebook / watchman

Watches files and records, or triggers actions, when they change.
https://facebook.github.io/watchman/
MIT License
12.4k stars 987 forks source link

Error from yarn gets written into plist #1197

Closed estk closed 4 months ago

estk commented 4 months ago

I installed watchman for the first time on an m1 mac. I was trying to debug why the watchman service was not populating in launchctl list, when I went to look at the plist, I found the following. When the obvious error was removed and launchctl loaded, watchman service online.

    <dict>
        <key>PATH</key>
        <string>Usage Error: No project found in /Users/estk

$ yarn run [--inspect] [--inspect-brk] [-T,--top-level] [-B,--binaries-only] <scriptName> ...:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin: etc etc</string>
    </dict>