Visual Studio Code is unable to watch for file changes in this large workspace
针对Linux系统,windows和mac不会出现这种情况。
该错误在 linux系统上比较常见,主要是因为linux系统最大可监听文件数有限制。linux系统默认系统可监听文件数为8192个,AliOS-Things
的源码比较大,文件数远远大于8192个,此时vscode无法监听所有的文件改动,导致AliOS Studio 插件会工作不正常,报如下错误:
解决办法: 此时需要设置linux系统最大可监听文件数。
使用如下命令查看当前可监听文件数:
cat /proc/sys/fs/inotify/max_user_watches
编辑文件:/etc/sysctl.conf
,然后增加如下行:
fs.inotify.max_user_watches=524288
使用如下指令生效:
sudo sysctl -p
Arch Linux 用户请参考此链接.
更多细节请参考:"Visual Studio Code is unable to watch for file changes in this large workspace" (error ENOSPC)。
Workspace is too large to watch for file changes
和上面的问题一样:Visual Studio Code is unable to watch for file changes in this large workspace
在文档使用中是否遇到以下问题
更多建议
匿名提交