3

This is my first time asking a question so please bear with me if i’m not asking according to the standards but ill try my best.

watchman warning: opendir(/Users/abdi/Library/VoiceTrigger/SAT) -> Operation not permitted. Marking this portion of the tree deleted To clear this warning, run: watchman watch-del /Users/abdi ; watchman watch-project /Users/abdi

This is the error i'm getting every time i try start any project, even the ones that i created previously.

I tried the following:

  1. watchman watch-del /Users/abdi ; watchman watch-project /Users/abdi
  2. Giving watchman full-disk access and restarting
  3. Moving my project to root folder (/Users/abdi)

This is what i get when i run watchman watch-list { "version": "4.9.0", "roots": [ "/Users/abdi" ] }

Please help.

abdi
  • 519
  • 1
  • 5
  • 16

3 Answers3

12

Bit late to the party, but to me the following worked

  1. Shut down the metro server / simulator (if it's running)

  2. Turn off and clear watchman cache

    $ watchman shutdown-server
    $ watchman watch-del-all
    
  3. Start your project (i.e. react-native start, expo start, etc.)

There's no need to give watchman full disk access (nor should you)

Samuel Hulla
  • 6,617
  • 7
  • 36
  • 70
2

You need to grant full disk access to watchman to allow it to watch the locations you've asked it to watch.

Go to 'System preferences' -> 'Security & Privacy' -> scroll down and click 'Full Disk Access', and then check 'Watchman'.

After changing this, restart your laptop.

See these other links for more information:

Wez Furlong
  • 4,727
  • 1
  • 29
  • 34
-1

I found solution. After giving full disk access use watchman watch /Users/$USER/.... to watch your project instead of watchman watch-project /Users/$USER/....

abdi
  • 519
  • 1
  • 5
  • 16