JuliaDebug / JuliaDebug/LoweredCodeUtils.jl

`typeof(ref)` shown on stdout

Open
#69 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Julia
Stars
19
Forks
14
Avg merge
17m
Merged PRs (30d)
3

Description

I just got the following inscrutable message on stdout while using Revise, and tracked it to LoweredCodeUtils:

ref = :(_1)
typeof(ref) = Core.SlotNumber

Presumably this was emitted by the line here:
https://github.com/JuliaDebug/LoweredCodeUtils.jl/blob/ff8998f6151bce37bbf6a82ce72622e692fd8df3/src/signatures.jl#L412

Strangely this doesn't seem to have triggered the assert on the next line (or if it did, the error was swallowed somewhere, because I didn't see an AssertionError).

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at src/signatures.jl line 412, identified in the report, and reproduce the output while using Revise. Determine why the ref and typeof(ref) diagnostics reach stdout and whether the following assertion is involved. Done means the inscrutable output no longer appears unexpectedly and the relevant assertion behavior is covered or explained.

Written by the indexing model from the issue text.

Assessment

Tech stack
julia
Domain
tooling
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.