You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[vscode] Try to start TypeProf for IDE
[vscode] stderr: bundler: failed to load command: typeprof (/Users/0num4/.anyenv/envs/rbenv/versions/3.2.2/bin/typeprof)
[vscode] stderr: /Users/0num4/.anyenv/envs/rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.20/lib/bundler/resolver.rb:312:in `raise_not_found!': Could not find gem 'rbs' in locally installed gems. (Bundler::GemNotFound)
[vscode] stderr: from /Users/0num4/.anyenv/envs/rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.20/lib/bundler/resolver.rb:372:in `block in prepare_dependencies'
略
[vscode] stderr: from /Users/0num4/.anyenv/envs/rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.20/lib/bundler/friendly_errors.rb:117:in `with_friendly_errors'
[vscode] stderr: from /Users/0num4/.anyenv/envs/rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.20/exe/bundle:29:in `<top (required)>'
[vscode] stderr: from /Users/0num4/.anyenv/envs/rbenv/versions/3.2.2/bin/bundle:25:in `load'
[vscode] stderr: from /Users/0num4/.anyenv/envs/rbenv/versions/3.2.2/bin/bundle:25:in `<main>'
[vscode] failed to invoke typeprof: error code 1
[vscode] Ruby TypeProf is not configured
Activity
0num4 commentedon Dec 20, 2023
こちらがvscodeのoutputのエラーログです
mame commentedon May 3, 2024
再現を試みたのですが、こちらではふつうに動いてしまいました。
bundle installなら動作するのでしょうか?遅くなったうえで大変恐縮なのですが、再現方法を詳しく説明いただけるとありがたいです。
こちらが試したのは、
rbenv install 3.2.2したうえでGemfile
.ruby-version
sample.rb
を用意し、
bundle install --path vendor/bundleし、そのディレクトリを vscode で開いたところ、def foo の上に推論結果が表示されることを確認しました。