Yuki Kurihara

Results 66 issues of Yuki Kurihara

I was reading the Ripper's code and found a part of the code where the behavior has changed since v3.1.0. From the following point in time, the behavior has changed...

`File::FNM_PATHNAME`は1.8.0から導入されたので`**`は使用できるはずです。 `File::FNM_EXTGLOB`は2.0.0から導入なので残します。 `Pathname#fnmatch`および`Pathname#fnmatch?`のワイルドカードの記述は厳密にはバージョン分岐するべきですが、`File.fnmatch`および``File#fnmatch?`と二重管理になるので削除し、くわしくは参照を見ていただくのが良いと思います。 "[[m:Dir.glob]] とは違って `**/' は使用できません。"は17年前のcommitから入っている文言が今まで引き継がれていたようです。 https://github.com/rurema/doctree/commit/f6eb65532aa7ccd63b203ce4f3e2410fc2768104

There is a problem if the `#initialize` type is fixed. The user must match or override the return type of `#initialize` in the inherited class. The `#initialize` does not need...

I have found a case where test fails to call `super` in a block during RBS::Test execution. Repro: ```rb #! /usr/bin/env ruby class Super def call 'super' end end class...

bug

Most of the execution time in `rbs prototype runtime` is taken up by `RBS::Prototype::Runtime#block_from_ast_of`. This means that a significant amount of cost is being spent just to investigate whether a...

Decl added using `RBS::Environment# # buffer, directives, decls = RBS::Parser.parse_signature("class Bar\nend") env.add_signature(buffer: buffer, directives: directives, decls: decls) p env #=> # p env.resolve_type_names #=> # ```

Deciding that block is essential is difficult and often wrong. This method of following type signature, ```rb def foo yield if block_given? end ``` I expected to following. ``` def...

I found Unexpected error pattern. ```rbs # sample.rbs class Sample end ``` ```rb # sample.rb module Sample end ``` ```rb # Steepfile target :sample do check "sample.rb" signature "sample.rbs" configure_code_diagnostics(Steep::Diagnostic::Ruby.all_error)...

I found two error patterns. It seems to occur when the block argument is unnamed. ```ruby m do |*| 1 if 1 #=> UnexpectedError: undefined method `start_with?' for nil(NoMethodError) #=>...

I have read and attempted to steep check a large number of RBS files, over 10000. I found that there is a big difference in execution time compared to when...