Skip to content

VSCode terminal, 1.12.0-rc3, MethodError: no method matching iterate(::Nothing) #673

@wheeheee

Description

@wheeheee

Not sure if it's Cthulhu, or the vscode-julia extension, but in the VSCode integrated terminal on Windows, I cannot descend into many functions.
I have my depot on a different drive, if it matters, and Cthulhu is up-to-date.
This doesn't throw an error on the Windows terminal.
Looks a little like #148, but not really, I guess.

(@v1.12) pkg> st
Status `Q:\.julia\environments\v1.12\Project.toml`
  [6e4b80f9] BenchmarkTools v1.6.0
  [f68482b8] Cthulhu v2.17.9
Details
julia> using Cthulhu

julia> descend(+, (Int, Int32))
+(a::Integer, b::Integer) @ Base int.jl:1011
ERROR: MethodError: no method matching iterate(::Nothing)
The function `iterate` exists, but no method is defined for this combination of argument types.

Closest candidates are:
  iterate(::Compiler.IncrementalCompact)
   @ Base ../usr/share/julia/Compiler/src/ssair\ir.jl:1861
  iterate(::Compiler.IncrementalCompact, ::Any)
   @ Base ../usr/share/julia/Compiler/src/ssair\ir.jl:1861
  iterate(::ExponentialBackOff)
   @ Base error.jl:273
  ...

Stacktrace:
  [1] isempty(itr::Nothing)
    @ Base .\essentials.jl:1071
  [2] top-level scope
    @ Q:\.julia\packages\Cthulhu\ha3Sy\src\codeview.jl:334
  [3] top-level scope
    @ Q:\.julia\packages\Cthulhu\ha3Sy\src\codeview.jl:295
  [4] top-level scope
    @ Q:\.julia\packages\Cthulhu\ha3Sy\src\codeview.jl:323
  [5] top-level scope
    @ Q:\.julia\packages\Cthulhu\ha3Sy\src\codeview.jl:295
  [6] top-level scope
    @ Q:\.julia\packages\Cthulhu\ha3Sy\src\codeview.jl:323
  [7] top-level scope
    @ Q:\.julia\packages\Cthulhu\ha3Sy\src\codeview.jl:295
  [8] top-level scope
    @ Q:\.julia\packages\Cthulhu\ha3Sy\src\codeview.jl:323
  [9] top-level scope
    @ Q:\.julia\packages\Cthulhu\ha3Sy\src\codeview.jl:295
 [10] top-level scope
    @ Q:\.julia\packages\Cthulhu\ha3Sy\src\codeview.jl:295
 [11] top-level scope
    @ Q:\.julia\packages\Cthulhu\ha3Sy\src\codeview.jl:157
 [12] top-level scope
    @ Q:\.julia\packages\Cthulhu\ha3Sy\src\codeview.jl:101
 [13] top-level scope
    @ Q:\.julia\packages\Cthulhu\ha3Sy\src\codeview.jl:99
 [14] top-level scope
    @ Q:\.julia\packages\Cthulhu\ha3Sy\src\codeview.jl:99
 [15] top-level scope
    @ Q:\.julia\packages\Cthulhu\ha3Sy\src\CthulhuBase.jl:410
 [16] top-level scope
    @ Q:\.julia\packages\Cthulhu\ha3Sy\src\ui.jl:103
 [17] top-level scope
    @ Q:\.julia\packages\Cthulhu\ha3Sy\src\CthulhuBase.jl:409
 [18] top-level scope
    @ Q:\.julia\packages\Cthulhu\ha3Sy\src\CthulhuBase.jl:290
 [19] top-level scope
    @ Q:\.julia\packages\Cthulhu\ha3Sy\src\CthulhuBase.jl:676
 [20] top-level scope
    @ Q:\.julia\packages\Cthulhu\ha3Sy\src\CthulhuBase.jl:676
 [21] top-level scope
    @ Q:\.julia\packages\Cthulhu\ha3Sy\src\CthulhuBase.jl:687
 [22] top-level scope
    @ Q:\.julia\packages\Cthulhu\ha3Sy\src\CthulhuBase.jl:684
 [23] top-level scope
    @ Q:\.julia\packages\Cthulhu\ha3Sy\src\CthulhuBase.jl:134
 [24] top-level scope
    @ Q:\.julia\packages\Cthulhu\ha3Sy\src\CthulhuBase.jl:131
 [25] top-level scope
    @ Q:\.julia\packages\Cthulhu\ha3Sy\src\CthulhuBase.jl:123
 [26] top-level scope
    @ Q:\.julia\packages\Cthulhu\ha3Sy\src\CthulhuBase.jl:115
 [27] top-level scope
    @ Q:\.julia\packages\Cthulhu\ha3Sy\src\CthulhuBase.jl:152
 [28] top-level scope
    @ Q:\.julia\packages\Cthulhu\ha3Sy\src\CthulhuBase.jl:152
 [29] descend(::Any, ::Vararg{Any}; kwargs...)
    @ Cthulhu Q:\.julia\packages\Cthulhu\ha3Sy\src\Cthulhu.jl:113
 [30] top-level scope
    @ Q:\.julia\packages\Cthulhu\ha3Sy\src\Cthulhu.jl:112
 [31] top-level scope
    @ REPL[11]:1

julia> versioninfo()
Julia Version 1.12.0-rc3
Commit 7522b24014 (2025-09-26 07:42 UTC)
Build Info:
  Official https://julialang.org release
Platform Info:
  OS: Windows (x86_64-w64-mingw32)
  CPU: 8 × 11th Gen Intel(R) Core(TM) i5-1135G7 @ 2.40GHz
  WORD_SIZE: 64
  LLVM: libLLVM-18.1.7 (ORCJIT, tigerlake)
  GC: Built with stock GC
Threads: 8 default, 1 interactive, 8 GC (on 8 virtual cores)
Environment:
  JULIA_CONDAPKG_BACKEND = Null
  JULIA_DEPOT_PATH = Q:\.julia;
  JULIA_NUM_THREADS = auto
  JULIA_EDITOR = code
  JULIA_VSCODE_REPL = 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions