vscode-dvc icon indicating copy to clipboard operation
vscode-dvc copied to clipboard

[improvement] Extension not refreshing when on ENOSPC

Open rubenverhack opened this issue 1 year ago • 0 comments

Hi,

Not really a bug, but the UI could give a notice in the following scenario.

If VSCode can't watch for file changes due to ENOSPC, then DVC extension does not refresh (no new experiments are shown). This makes sense since DVC is file based. Nevertheless, this took me a few hours to figure out.

"Visual Studio Code is unable to watch for file changes in this large workspace" (error ENOSPC)

2024-03-26 17:50:50.313 [error] [File Watcher (node.js)] Failed to watch /home/ruben/.cache/pants/named_caches/pex_root/venvs/70e047094d809561c0d6682c82c8251ee2b064bf/f5597d32b94871f5dd7ea920b980b60f36ee29f5/lib/python3.11/site-packages/dvclive/__init__.py for changes using fs.watch() (Error: ENOSPC: System limit for number of file watchers reached, watch '/home/ruben/.cache/pants/named_caches/pex_root/venvs/70e047094d809561c0d6682c82c8251ee2b064bf/f5597d32b94871f5dd7ea920b980b60f36ee29f5/lib/python3.11/site-packages/dvclive/__init__.py')
2024-03-26 17:50:56.864 [error] [File Watcher (node.js)] Failed to watch /home/ruben/.cache/pants/named_caches/pex_root/venvs/70e047094d809561c0d6682c82c8251ee2b064bf/f5597d32b94871f5dd7ea920b980b60f36ee29f5/lib/python3.11/site-packages/dvclive/live.py for changes using fs.watch() (Error: ENOSPC: System limit for number of file watchers reached, watch '/home/ruben/.cache/pants/named_caches/pex_root/venvs/70e047094d809561c0d6682c82c8251ee2b064bf/f5597d32b94871f5dd7ea920b980b60f36ee29f5/lib/python3.11/site-packages/dvclive/live.py')

Proposal: VSCode extension UI should give a warning in this scenario.

rubenverhack avatar Mar 27 '24 09:03 rubenverhack