ruby / ruby/vscode-typeprof

質問: typeprof-vscode extensionの挙動について

Open
#217 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
21
Forks
8
PR merge metrics
No merged PRs in 30d

Description

typeprof-vscode(およびRBS)について調査していたのですがいくつか質問があります。

  1. windows版とmac版で挙動が違うように見える
    windows版だと適当にmkdir hoge && cd hogeをした後sample.rbを作り下記のように適当な関数を作っても推論してくれません(localでrbsコマンドとtypeprofコマンドが使えるのは確認済みです)
def add(a, b)
  a + b
end

ところがhogeディレクトリの中で下記の手順を行うとサンプル通り推論が行われます。

bundle init
# Gemfileの編集
gem "rbs", require: false
gem "typeprof", require: false
bundle install
rbs collection init
rbs collection install

この状態でsample.rbを開くと推論が行われました
スクリーンショット 2023-12-18 20 58 49

ところがmac上だとrbsコマンドとtypeprofコマンドが使える状態なら上記のように色々な操作をしなくてもsample.rbを置くだけで勝手に推論してくれます。

どちらも使っているrubyは3.2系です。typescriptも同じように要件を満たしています。

挙動としてどちらを想定しているのでしょうか?(めんどくさいことはやりたく無いのでできればグローバルにrbsやtypeprofが通っていればそれを使いたいんですが・・・)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the Windows and macOS setups described in the issue, comparing global rbs/typeprof availability with the Bundler-based setup. Determine which behavior the extension intends to support and document the result or the conditions needed for inference to work consistently.

Written by the indexing model from the issue text.

Assessment

Tech stack
ruby, typescript
Domain
developer-experience, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.