@run fib(5) makes Julia to crash in Julia 1.11 rc2

Making debug of this in VSCode Julia extension / Julia v1.11 RC2 makes Julia to crash. It works fine in Julia 1.10 or if breakpoints are used.

function fib(n)
    if n == 0 return 0 end
    if n == 1 return 1 end
    return fib(n-1) + fib(n-2)
end

@run fib(5)

Some error stack appears but it disappears too quick to be able for me to copy it.

Julia extension 1.105.2

EDIT

No, it crashes also in Julia v1.10, but I am pretty sure months ago it was working, so perhaps it is an upgrade to the Julia extension ???

Here the error screenshot from a video:

There is an issue about some thing you mention, It is about @run macro in Julia REPL crashes after @run debugging · Issue #3673 · julia-vscode/julia-vscode · GitHub and fixed with Fix terminate sequence.
So you can try some thing great like Debugger.jl until the repository update.

3 Likes