Closed Bug 1234394 Opened 9 years ago Closed 8 years ago

./mach mercurial-setup did not "brew install watchman" for me

Categories

(Developer Services :: Mercurial: configwizard, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: jruderman, Assigned: gps)

References

Details

Attachments

(2 files)

Re-running "./mach mercurial-setup" (@ mozilla-central a8acaa9868df) put a watchman thing in my hg config, but did not run "brew install watchman", so I got a warning the next time I ran hg diff: > warning: watchman unavailable: ('"watchman" executable not in PATH (%s)', OSError(2, 'No such file or directory')) Manually running "brew install watchman" fixed this problem. There's code in bug 1231989 to do both, but maybe the brew part doesn't run every time?
Flags: needinfo?(gps)
Did you run `mach bootstrap`? (The fact we have multiple commands for configuring your system is kind of unfortunate - they really do need to be consolidated.)
Flags: needinfo?(gps)
Not recently. Am I supposed to run that one frequently too?
(In reply to Jesse Ruderman from comment #2) > Not recently. Am I supposed to run that one frequently too? It shouldn't hurt.
I am facing the same issue. I did run |mach bootstrap| today, no changes! Any fix for this?
Flags: needinfo?(gps)
`mach bootstrap` installs watchman via Homebrew and MacPorts as of bug 1231989 (landed in December). That should "just work." I guess the bug here is `mach mercurial-setup` needs to have something better to say when `watchman` isn't available.
Flags: needinfo?(gps)
Component: mach → Mercurial: configwizard
Product: Core → Developer Services
I'm on Ubuntu. I run bootstrap and mercurial-setup but I still had no luck: armenzg@armenzg-thinkpad:~/repos/firefox$ hg id warning: Watchman unavailable: ('"watchman" executable not in PATH (%s)', OSError(2, 'No such file or directory')) I see watchman checkouts on my disk: armenzg@armenzg-thinkpad:~$ find . -type d -name watchman ./.mozbuild/hgwatchman/.hg/store/data/watchman ./dist/hgwatchman/.hg/store/data/watchman Should I follow the installation steps in here? https://facebook.github.io/watchman/docs/install.html#installing-from-source
Yes, you'll need to install watchman from source on Linux (at least on distros that don't have a watchman package yet). Also, if you are running a modern Mercurial, hgwatchman has been integrated into the distribution as the "fsmonitor" extension. You can delete hgwatchman from your machine if using fsmonitor.
Assignee: nobody → gps
Status: NEW → ASSIGNED
I saw the fsmonitor extension getting installed after I upgraded to a newer Mercurial. What should I do about this hgwatchman under .mozbuild? Is that a leftover failed installation attempt from mercurial-setup?
You can safely delete hgwatchman from .mozbuild after using fsmonitor. If you are annoyed by it being orphaned, file a follow-up bug to have the Mercurial configwizard extension nuke it.
Comment on attachment 8769298 [details] configwizard: print warning when watchman isn't installed (bug 1234394); https://reviewboard.mozilla.org/r/63268/#review60740
Attachment #8769298 - Flags: review?(smacleod) → review+
Pushed by gszorc@mozilla.com: https://hg.mozilla.org/hgcustom/version-control-tools/rev/438d0657d78f configwizard: print warning when watchman isn't installed ; r=smacleod
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: