Open tmk3s opened 6 months ago
問題があると 入力補完起動しない
↓
関係ないrbsファイル削除
なんとかっしたい
docker-compose exec app rake rbs_rails:generate_rbs_for_models
で作成したrbsだとエラーにならない・・ => model_dependencies.rbsがないから名前解決できていない?
https://github.com/pocke/rbs_rails/blob/master/lib/rbs_rails/rake_task.rb#L29
modelは上記のコマンで背性するのがいい?
現状devise_token_outhは gem 'devise_token_auth', :git => 'https://github.com/single-stop-tony/devise_token_auth' # トークン認証(https://github.com/lynndylanhurley/devise_token_auth/issues/1608#issuecomment-1783928862)
gitから取得しているからrbs collectionで取得できない?
https://github.com/pocke/rbs_rails https://github.com/ksss/orthoses https://rubygems.org/gems/orthoses-rails https://github.com/soutaro/steep
gem
↓
↓ create lib/tasks/rbs.rake
↓
↓ created: rbs_collection.yaml
↓
↓ .gem_rbs_collection =>作成される
↓ gitognoreに/.gem_rbs_collectionを追加
↓
↓ Steepfileが作成される
https://github.com/soutaro/steep-vscode
使ってみたい vscodeで使うのでローカルでsteepコマンド使えるようにする
workspace で gem install steepする bundler: failed to load command: ruby-lsp vscode起動時にが出るので https://github.com/Shopify/ruby-lsp
gem install ruby-lsp
する
↓
https://qiita.com/vzvu3k6k/items/12aff810ea93c7c6f307
↓
肩チェックが目的えでゃないのでTypeProfのみ入れる
↓ [Info - 3:46:20] TypeProf for IDE is started successfully [Info - 3:46:20] bundler: failed to load command: typeprof (/Users/xxx/.rbenv/versions/3.2.1/bin/typeprof) [Info - 3:46:20] Connection to server got closed. Server will restart. [Info - 3:46:20] /Users/xxx/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/typeprof-0.21.3/lib/typeprof/import.rb:9:in `initialize': NoMethodError