Skip to content
This repository has been archived by the owner on Nov 22, 2024. It is now read-only.

Watchman was not found #5412

Open
thecodecafe opened this issue Jan 11, 2024 · 19 comments
Open

Watchman was not found #5412

thecodecafe opened this issue Jan 11, 2024 · 19 comments

Comments

@thecodecafe
Copy link

🐛 Bug Report

Flipper Setup doctor says watchman is not installed.
I tried looking for how to add to my path to see if that's the issue but I can't find a guide anywhere that does that.

To Reproduce

  • Install Watchman with homebrew on Macbook M1 Max
  • Install Flipper from the site.
  • Launch Flipper

Environment

Machine - Macbook Pro M1 Max
Flipper Version - Version 0.239.0 (50.0.0)
Screenshot 2024-01-11 at 21 23 31

@ms314006
Copy link

ms314006 commented Jan 18, 2024

Do you already have a solution? I encounter same issue. My flipper version is 0.239.0.

@ihgvan
Copy link

ihgvan commented Jan 25, 2024

You probably need to add the following line to the profile you are using, ie .profile or .zprofile.
eval "$(/opt/homebrew/bin/brew shellenv)" per https://github.com/orgs/Homebrew/discussions/446

@Krasovskyi
Copy link

You probably need to add the following line to the profile you are using, ie .profile or .zprofile. eval "$(/opt/homebrew/bin/brew shellenv)" per https://github.com/orgs/Homebrew/discussions/446

It didn't help me.

@HarbinLc2014
Copy link

Same here. Trying to setup flipper but keep having this issue

@thecodecafe
Copy link
Author

For me, all I dud was install watchman again and the issue went away.

@Karl-Styner
Copy link

Karl-Styner commented Mar 19, 2024

Same here...
스크린샷 2024-03-19 오후 11 40 26

@akhockey21
Copy link

I'm also having this issue.

I've made sure my ~/.zshrc profile is configured correctly and I have even tried installing watchman head.

@r1skz3ro
Copy link

r1skz3ro commented Mar 24, 2024

I have the same problem. It looks like brew mismatched folders when installing watchman on mac's with silicon, or it was wrongly linked between /opt/homebrew/bin/ and /usr/local/bin/, even though exports from $PATH were correct and technically everything should work for flipper, as it was locally.

I've solved it with:

  • brew update
  • brew uninstall watchman
  • which watchman - This is interesting because in my case it gave me /usr/local/bin/watchman when it should have printed watchman not found. When i tried to use watchman for example watchman shutdown-server i got exec format error: watchman, so watchman must have been broken in some way. I haven't tested it, but if you run where watchman before brew uninstall watchman it should return:
/usr/local/bin/watchman
/opt/homebrew/bin/watchman

as it existed in those 2 places for some reason.

  • if which watchman from the previous step printed /usr/local/bin/watchman as in my case, run cd /usr/local/bin/ and rm watchman you may need to use sudo here, so: sudo rm watchman
  • now which watchman should return watchman not found
  • brew install watchman
  • which watchman -> /opt/homebrew/bin/watchman, now i thought it should work, but watchman was still missing in flipper.
  • i checked for existance of watchman in /usr/local/bin/ and it wasn't there, but it was here /usr/local/bin/watchman. I symlinked it with ln -s /opt/homebrew/bin/watchman /usr/local/bin/watchman.
  • now in flipper after re-running doctor it finally appeared green.

@leurs247
Copy link

leurs247 commented Apr 3, 2024

I have the same problem. It looks like brew mismatched folders when installing watchman on mac's witch silicon, or it was wrongly linked between /opt/homebrew/bin/ and /usr/local/bin/, even though exports from $PATH were correct and technically everything should work for flipper, as it was locally.

I've solved it with:

  • brew update
  • brew uninstall watchman
  • which watchman - This is interesting because in my case it gave me /usr/local/bin/watchman when it should have printed watchman not found. When i tried to use watchman for example watchman shutdown-server i got exec format error: watchman, so watchman must have been broken in some way. I haven't tested it, but if you run where watchman before brew uninstall watchman it should return:
/usr/local/bin/watchman
/opt/homebrew/bin/watchman

as it existed in those 2 places for some reason.

  • if which watchman from the previous step printed /usr/local/bin/watchman as in my case, run cd /usr/local/bin/ and rm watchman you may need to use sudo here, so: sudo rm watchman
  • now which watchman should return watchman not found
  • brew install watchman
  • which watchman -> /opt/homebrew/bin/watchman, now i thought it should work, but watchman was still missing in flipper.
  • i checked for existance of watchman in /usr/local/bin/ and it wasn't there, but it was here /usr/local/bin/watchman. I symlinked it with ln -s /opt/homebrew/bin/watchman /usr/local/bin/watchman.
  • now in flipper after re-running doctor it finally appeared green.

I had the same issue (watchman installed through homebrew). Symlinking was the only thing I had to do to get it working.

@bart-le
Copy link

bart-le commented Apr 5, 2024

In my case, Homebrew didn't mismatch the watchman path and it was cleanly installed. I double-checked in /usr/local/bin and /opt/homebrew/bin/ each time. Also, running which -a watchman before and after uninstalling yielded the same output.

/opt/homebrew/bin/watchman

For some reason, the problem seems to only persist on the in-browser Flipper Server.

I've uninstalled it and installed the standalone Electron app from v0.239.0 release. Unfortunately, it's no longer maintained, so any later releases only ship with browser versions.

To my surprise, it just worked out of the box and I didn't have to symlink anything. All of the packages passed setup doctor checks. I'm sticking with it until it's fixed.

image

@ialwayswatching
Copy link

Could someone help me whats wrong?
Screenshot 2024-04-18 at 17 28 28

@IgorGanapolsky
Copy link

I too am getting this error in Flipper on my Mac:

Screenshot 2024-04-30 at 12 54 54 PM

@zainkhas
Copy link

Same issue in Macbook M1. I had an older Desktop app installed and everything works setup correctly, I wanted to make sure I was on the latest version of Flipper, installed the latest version (Server) and got this error.

@sauravBalodi1
Copy link

@IgorGanapolsky is it fixed for you ?
also I can see no application selected is it also fixed ?
i m also getting the same error whenever I open the flipper no application is found and watchman issue

@SergiusR
Copy link

SergiusR commented May 8, 2024

The same issue. MAC M1

~ % where watchman
/opt/homebrew/bin/watchman

image

@esbenvb
Copy link

esbenvb commented May 10, 2024

In my case, it was enough to type

sudo ln -s /opt/homebrew/bin/watchman /usr/local/bin/watchman

to make flipper happy

@slice-happysingh
Copy link

@esbenvb Thanks, that solved the issue.

@zcw90
Copy link

zcw90 commented May 23, 2024

@esbenvb good + nice,It's works for me.

@moisesmiss
Copy link

En mi caso bastaba con escribir

sudo ln -s /opt/homebrew/bin/watchman /usr/local/bin/watchman

hacer feliz a flipper

this work for me! thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests