4
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

「Visual Studio Codeはこの大きなワークスペースでファイルの変更を監視できません」のエラーが出ない様にする

Posted at

目的

  • 題名のエラーを出力されない様に設定する。

実施環境

  • ハードウェア環境
項目 情報
OS macOS Catalina(10.15.5)
ハードウェア MacBook Pro (13-inch, 2020, Four Thunderbolt 3 ports)
プロセッサ 2 GHz クアッドコアIntel Core i5
メモリ 32 GB 3733 MHz LPDDR4
グラフィックス Intel Iris Plus Graphics 1536 MB
  • ソフトウェア環境
項目 情報 備考
Visual Studio Codeバージョン 1.47.3 こちらの方法で導入→Mac Visual Studio Code 導入方法 VSCode ダウンロードから日本語化対応まで~画像付き導入解説~

問題までの経緯

  1. 下記コマンドを実行してカレントディレクトリをVisual Studio Codeで開こうとした。

    $ code .
    

問題

  1. 下記のエラーがウインドウ右下に出力された。

    Visual Studio Codeはこの大きなワークスペースでファイルの変更を監視できません
    
  2. 日本語化プラグインを入れていない時は下記が出力された。

    Visual Studio Code is unable to watch for file changes in this large workspace
    

問題解決までの経緯

  1. 下記コマンドを実行して設定ファイルを開く

    $ sudo vi /etc/sysctl.conf 
    
  2. 下記情報を追記する

    /etc/sysctl.conf
    fs.inotify.max_user_watches=524288
    
  3. 保存して閉じたあと下記コマンドを実行して設定を反映する

    $ sudo sysctl -p
    

参考文献

4
5
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?