Repository navigation
Conversation
apiology
force-pushed
the
2026-10-19
branch
3 times, most recently
from
October 21, 2026 17:24
b4ebee4 to
0ac9949
Compare
This was referenced Oct 21, 2026
apiology
force-pushed
the
2026-10-19
branch
2 times, most recently
from
October 22, 2026 20:50
1765a94 to
9a3cbba
Compare
apiology
marked this pull request as ready for review
October 24, 2026 18:19
#225 and #229 are closed and reopened upstream. Merging castwide#1451 makes all 26 #225 markers unneeded, and castwide#1439 all 6 #229 markers, with no new problems, so they now cite those PRs. The logging.rb @@logger marker hides "Unresolved call to @@logger": Chain::ClassVariable looks up context instead of full_context in a module body. #201 fixes that lookup, so the marker cites it by mechanism; 201 only conflicts with this branch on the marker line itself.
A label never cites an apiology PR: a marker whose PR is closed or apiology-only cites the open castwide PR that fixes the line, else the typecheck error verbatim. #108, #114 and #201 have no castwide PR, so these 11 markers now carry the error each hides, taken from sg-marker-error.sh, and lose their continuation lines. rules.rb counts the new labels.
The castwide/master merge adds a line to RbsTranslator, putting it at 141 lines against this branch's 140 limit. Master's limit is 195, so raise ours only to fit.
Cover the block parameters and result of map.with_index, the pair yielded by each_with_index.map, and a tuple receiver of a single-generic class, which positional binding must leave as a union. Carried over from #354, which this PR supersedes.
Inside module Pin, a bare Symbol in a YARD tag resolves to Pin::Symbol, so the value param's [String, Symbol] made #value infer Pin::Symbol and needed a marker. Root the Symbol tags in this file; the marker is no longer needed.
9bc117e labelled castwide#1223's leftovers with each site's verbatim error. Vince approved three mechanism labels for them: yielded tuples not destructured into block params (14), literal tuple index returning every element type plus nil (9), and array literals inferring bare Array (5). Relabel those 28 markers, drop their extra error lines, and count the labels in rules.rb. The two type_checker.rb add_to_param_details markers keep their text: their first error is Hash#[] nil after ||= (castwide#1417), not a tuple.
The @sg-ignore URL already names the PR that removes the need for the marker; the two narrative lines under it in the Gemfile, Gemspec and Rakefile conventions repeated what that PR says.
Initialize#support_workspace_folders? and #dynamic_registration_for? carried a placeholder label, and ToMethod.arg_name cited the closed castwide#1231. No open castwide PR fixes them, so each now carries its verbatim typecheck error.
Regenerate .rubocop_todo.yml.
…ead of raising Regenerate .rubocop_todo.yml.
Regenerate .rubocop_todo.yml.
Resolve pin/method.rb and chain/call.rb by intent. In library.rb keep castwide#1475's rescue/ensure in cache_next_gemspec, take next_map as castwide#1245 has it (early return, mutex around the map), keep one Array<Source, SourceMap> type tag, and restore the castwide#1258 sg-ignore on read. Remove the Unneeded sg-ignores. Keep one copy of the castwide#1465 locked-yardoc context in spec/library_spec.rb, which reached this branch before castwide/master at a different spot. Regenerate .rubocop_todo.yml. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LTpguFV8m5C72EvjeEFx96
sg-ignores cite the open castwide PR that fixes their line, else the verbatim typecheck error, never an apiology PR. - definition.rb code_location: castwide#1478 rewrites it. - conversions.rb rebound_alias?: castwide#1491 removes it. - to_method.rb arg_name a[0] calls: castwide#1474 picks the Integer Array#[] overload, which clears all five. - namespace_node.rb parameters_from_inline_rbs: castwide#1344 replaces the MatchData code with trailing_rbs_type_args. - conversions.rb convert_decl_to_pin call: no castwide PR carries #427, so it takes the verbatim error. - rbs_collection.rb best_key: its label did not match its error, and castwide#1474 does not clear it, so it takes the verbatim error. Update the label counts in rules.rb.
…ailed check without blocking merge Regenerate .rubocop_todo.yml.
… again Regenerate .rubocop_todo.yml.
Regenerate .rubocop_todo.yml.
…path-sourced gems Regenerate .rubocop_todo.yml.
…module_function methods Regenerate .rubocop_todo.yml.
Regenerate .rubocop_todo.yml.
Regenerate .rubocop_todo.yml.
Regenerate .rubocop_todo.yml.
#193 will not go upstream, and no open castwide PR touches these two lines, so each sg-ignore carries its verbatim typecheck error. Count both labels in rules.rb.
…typechecking in CI Regenerate .rubocop_todo.yml.
BaseVariable kept a protected intersection_return_type getter and setter and an initialize keyword beside intersection_return_types. Callers now pass and read the list directly, so the list is the only way to set or read the intersection constraints.
Labels cite the open castwide PR that clears the line, else the verbatim typecheck error. Of the 24 sg-ignores citing apiology PRs: - store.rb:35 cites castwide#1474; its overload loop change clears the error in a local run. - external.rb x2 cite castwide#1477, which deletes both. - delegated_method.rb:78 cites castwide#1338, which drops the same resolve_method sg-ignore on master. - active_support.rb classmethod_pins x2 cite castwide#1476, which rewrites the method. - The other 18 take their verbatim errors; no open castwide PR changes those lines or carries the apiology change. The keyword.rb and symbol.rb continuation lines pointed at an apiology branch and go with the old label. Update rules.rb counts.
Each label now cites the open castwide PR that clears its line, else its verbatim typecheck error. Sites where the checker is right and the code needs a fix cite castwide#1494, which takes such fixes: rbs_map/conversions.rb, host/dispatch.rb, comment_ripper.rb, node_chainer.rb, pin/method.rb, pin/namespace.rb, chain/parameter.rb and type_checker/problem.rb. pin/parameter.rb cites castwide#1258, whose head clears it. Prose labels and PR citations whose PR does not clear the line take the verbatim error. Update the label counts in rules.rb.
… class Regenerate .rubocop_todo.yml.
17b8ed7 pointed sg-ignores at PRs by mechanism without checking that the PR clears the line. Re-checked each surviving label: the PR must change the line, or clear the error when its change is applied. - LSP best_location sites: castwide#1478 rewrites them; castwide#1399 does not touch these files. - NodeProcessor::Base closure lookups: castwide#1399 changes them to location!. - Pin::Block receiver_pin: castwide#1393 passes closure!. - castwide#1394 sites in location.rb, class_methods.rb, source.rb and change.rb: with its from_node! change applied, the errors remain, so they take the verbatim error. castwide#1452 guards range in inner_folding_ranges, but result.last.start still fails. - Remaining castwide#1392, castwide#1393 and castwide#1395 sites: no open PR changes the line, and castwide#1395 covers only zero-start slices. Count the new labels in rules.rb.
Regenerate .rubocop_todo.yml.
A rescued exception is typed <class> & _Raised once intersection types land, which makes its backtrace non-nil, so the six e.backtrace.join sg-ignores take the intersection label instead of the verbatim error. Move their count in rules.rb.
Regenerate .rubocop_todo.yml. Remove the sg-ignores citing castwide#1399: lib/solargraph/pin/base_variable.rb:372 # @sg-ignore castwide#1399
…cache and template data Regenerate .rubocop_todo.yml.
…a location Regenerate .rubocop_todo.yml. Remove the sg-ignores citing castwide#1394: lib/solargraph/location.rb:69 # @sg-ignore castwide#1394 lib/solargraph/source.rb:155 # @sg-ignore castwide#1394 lib/solargraph/source.rb:157 # @sg-ignore castwide#1394 lib/solargraph/source.rb:307 # @sg-ignore castwide#1394 lib/solargraph/source.rb:407 # @sg-ignore castwide#1394
…typechecking in CI Regenerate .rubocop_todo.yml.
…rrays Regenerate .rubocop_todo.yml.
Regenerate .rubocop_todo.yml.
Port the tip's pattern-match narrowing (capture intersections kept by BaseVariable#downcast, intersect-then-exclude in adjust_type, value constant patterns) onto 445's intersection_return_types list; no singular intersection_return_type keyword remains, including in CaseMatchNode#add_capture. Remove four sg-ignores in yard_map/mapper.rb that nested is_a? narrowing makes unneeded.
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.
Claude: This PR was written by Claude Code on behalf of @apiology.
Problem:
Open PRs are tested only one at a time:
A conflict between two of them would surface only after both merge.
Solution:
Merges every PR below into one branch so CI runs on the combination.
castwide/solargraph PRs included
superinferring the union of every ancestor's return type castwide/solargraph#1364 — Fixsuperinferring the union of every ancestor's return typeapiology/solargraph PRs included
Notes
Merge <repo>#Nmerge commit.