0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Solargraph の The workspace is too large to index という警告を取り除く

Last updated at Posted at 2024-12-20

問題

VS Code で Ruby Solargraph という拡張機能を使用している。とあるプロジェクトで以下の警告が発生し、Ruby Solargraph によるコードジャンプの機能が使用できない :cry:

The workspace is too large to index

The workspace is too large to index

解決方法

プロジェクトのディレクトリ直下に .solargraph.yml という YAML ファイルを作成する。そして max_files の設定を追記する。なお、このデフォルト値は 5,000

.solargraph.yml
max_files: 7000

ちなみに .solargraph.yml は Git で無視したい。.gitignore.solargraph.yml を追記してもいいが、もし .gitignore を編集したくない場合は .git/info/exclude.solargraph.yml を追記する。

.git/info/exclude
# git ls-files --others --exclude-from=.git/info/exclude
# Lines that start with '#' are comments.
# For a project mostly in C, the following would be a good set of
# exclude patterns (uncomment them if you want to use them):
# *.[oa]
# *~
.solargraph.yml

参考

0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?