facebook / facebook/watchman

ignore/exclude directory in watchlist not work

Open
#705 26 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
13.7k
Forks
1.1k
PR merge metrics
No merged PRs in 30d

Description

I have configured the watchman 4.9.4 on Ubuntu and its working fine.

For Directory exclude/Ignore I have done the setting like below but it didn't exclude the directory

cat state
{
"watched": [
{
"triggers": [
{
"command": [
"/home/niraj/watchjson.sh"
],
"append_files": true,
"name": "jsontest",
**"ignore_dirs": [
"/home/niraj/jsontest/ignore"**
],
"stdin": [
"name",
"exists",
"new",
"size",
"mode"
]
}
],
"path": "/home/niraj/jsontest"
},
],
"version": "4.9.4"
}

As its not work then I added the .watchmanconfig

{
"ignore_dirs": ["/home/niraj/jsontest/ignore"]
}

but its not work. Please guide how can I exclude directory/files.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.