Skip to content

Commit

Permalink
fix: watch less files. (#5651)
Browse files Browse the repository at this point in the history
Some users are running into "too many watched files" errors.
Mainframe has already had its watch limits raised to 1m.
Think i've identified a few troublesome folders. This PR tells vscode to
stop watching so many files.
You can get an idea of how many files you're watching (on linux) using:
```
grep inotify /proc/*/fdinfo/* 2>/dev/null| wc -l 
```

This took me from 90k to about 10k after restarting vscode server (not
sure if i needed to kill the server, but think i did).
To kill server run in your sysbox (save and quit vscode first):
```
pkill -f '.vscode-server'
```
  • Loading branch information
charlielye committed Apr 10, 2024
1 parent aca804f commit 57a1d69
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -160,5 +160,14 @@
"noir/noir-repo/Cargo.toml",
"noir/noir-repo/acvm-repo/acvm_js/Cargo.toml",
"avm-transpiler/Cargo.toml"
]
],
"files.watcherExclude": {
"**/.git/objects/**": true,
"**/.git/subtree-cache/**": true,
"**/node_modules/**": true,
"**/.hg/store/**": true,
"**/target/**": true,
"**/l1-contracts/lib/**": true,
"**/barretenberg/cpp/build*/**": true
}
}

0 comments on commit 57a1d69

Please sign in to comment.