Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Session watcher not working for large workspace #217

Closed
renkun-ken opened this issue Feb 3, 2020 · 1 comment
Closed

Session watcher not working for large workspace #217

renkun-ken opened this issue Feb 3, 2020 · 1 comment

Comments

@renkun-ken
Copy link
Member

If the workspace contains too many files, VSCode will notify user that file system watcher does not work to monitor file changes like the following:

image

In this case, vscode-R cannot create FileSystemWatcher to watch response.log, globalenv.json and plot.png, so session watcher completely stop working.

The instructions to resolve this is described at https://code.visualstudio.com/docs/setup/linux#_visual-studio-code-is-unable-to-watch-for-file-changes-in-this-large-workspace-error-enospc.

One effective walk-around is to add the following in the settings.json for workspace:

"files.watcherExclude": {
    "**/unnecessary_folder/**": true,
    "**/.git/objects/**": true,
    "**/.git/subtree-cache/**": true,
    "**/node_modules/*/**": true
  }

where .git, node_modules, and other unnecessary_folder could be ignored to make FileSystemWatcher work again.

@renkun-ken
Copy link
Member Author

This should be fixed by #348 as we don't watch any workspace file now.

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

No branches or pull requests

1 participant