bundler and rubygems

オープン
#2,599 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
25/100
issue の種類
機能追加
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
ruby
領域
tooling

調査の方向性

まず sig/shims/bundler.rbs と sig/shims/rubygems.rbs を読み、次に core 配下の定義と比較します。Bundler のシグネチャをこのリポジトリに置くべきか、またどの公開 API を対象とするかを明確にします。追加の RBS 定義の配置場所と範囲について合意できれば完了です。

索引モデルが issue の本文から書いたものです。

説明

Hi!

Two questions:

First, I'd like folks to be able to typecheck their Gemfiles via Solargraph, which is able to use RBS for external types. The DSL for a Gemfile is described in Bundler::Dsl; having types described for that class is certainly a prerequisite.

Are you open to having types for bundler live in this project, presumably in core next to rubygems?

If not, Solargraph rbs collection, but it doesn't seem possible to add bundler via gem_rbs_collection, as rbs collection install only takes effect on gems.

Second, there are a number of public APIs in both bundler and rubygems that Solargraph uses in its own code that are not in the RBS repo. It appears you had the same issue, as I see shims for bundler and rubygems in your sig/shims directory.

Do you object to me adding these additional signatures to the definitions in https://github.com/ruby/rbs/tree/master/core? I was not sure if there was intent behind the decision to leave those as internal shims or if it was for expedience.

Much appreciation for your work on RBS! Solargraph is much more capable as a result, both as an LSP and a typechecker.

主要言語
Ruby
スター
2.2k
フォーク
263
平均マージ
1日 20時間
マージ済み PR(30日)
64

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

ruby/rbs のほかの issue

ruby/rbs の issue をすべて見る

似ている issue

Ruby の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。