VSCode 出现错误 System.IO.IOException: The configured user limit (128) on the number of inotify instances has been reached.


方案一:

  1. sudo vim /etc/sysctl.conf
  2. 增加下面内容(环境变量)
  • fs.inotify.max_user_watches = 1638400
  • fs.inotify.max_user_instances = 1638400
  1. save the file
  2. sudo sysctl -p

方案二:

  1.  增加临时环境变量  export DOTNET_USE_POLLING_FILE_WATCHER=true

方案三

         echo fs.inotify.max_user_instances=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM