You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Hosted code (ScriptEngine.Execute) gets pre-3.4 backtrace labels: 'many', 'block in #', no '<main>' #158
Code run through the hosting API (ScriptEngine.Execute, ScriptSource.Compile(...).Run, which is also how IronRuby.Tests runs its snippets) gets backtrace labels in the old format. The same code run with ir already matches CRuby 4.0.
Run as a hosted snippet (seen in IronRuby.Tests while working on #132), user-defined methods are unqualified, the top-level block is block in #, and the top-level frame has no label at all. Core methods are still qualified:
Where it comes from: AstGenerator.TopLevelFrameLabel returns <main> only for TopScopeFactoryKind.Main (and <top (required)> for files). The hosted kinds fall through to RubyStackTraceBuilder.TopLevelMethodName (#). The unqualified method labels likely come from the same top-level-kind distinction.
To do: give hosted top-level code CRuby's labels: qualified method labels and <main> / block in <main>, unless there is a reason a host should see something else. Then update the IronRuby.Tests expectations that rely on the old format (Backtrace*, any test that matches in 'name' or a bare file.rb top-level frame). Backtrace9's regex, for example, reads many and Backtrace9.rb.
Activity
Merge pull request #164 from Largo/claude/subagents-open-issues-53733d