Repository navigation
query: @db が nil のまま eval していたのを直す - #340
Merged
Merged
Conversation
QueryCommand#exec が Subcommand#exec(DB を開く)を呼んでいなかったため、 '@db.classes.size' でも undefined method for nil になり使えなかった。 super を呼び、usage.md にスクリプトの書き方(@db で参照)と例を書く。 Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
経緯はコミットログと PR に残す。 Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Member
Author
|
#339 の指摘「経緯はコード中に残さない」をこの PR にも適用し、f500f10 でテストファイル冒頭の経緯説明を削除しました。 🤖 Generated with Claude Code |
This was referenced Sep 25, 2026
Merged
This was referenced Sep 26, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refs #335(不具合 5)
概要
bitclust queryはQueryCommand#execがSubcommand#exec(DB を開く)を呼んでいなかったため@dbが nil のままevalされ、'@db.classes.size'でもundefined method for nilで使えませんでした。変更点
superを呼んで@dbを用意するdoc/usage.mdに query の説明(スクリプトからは@dbで参照)と例を追加検証
test/test_query_command.rb(2 件: MethodDatabase /--capiで FunctionDatabase)・全テスト greenquery '@db.classes.size'→ 1332、'@db.fetch_class("Array").superclass.name'→ "Object"🤖 Generated with Claude Code