julia-vscode/julia-vscode#3550 was closed as outdated starting with release 1.220.0, but I can still reproduce the bug on pre-release 1.230.0, with the same MRE:
function rand_or_nothing()
if (foo = rand()) < .5
return foo
end
return foo + 1
end
while (bar = rand_or_nothing()) < .7
display(bar)
end
display(bar) # -> Yields Missing reference: bar StaticLint.jl(missing_reference)
julia-vscode/julia-vscode#3550 was closed as outdated starting with release
1.220.0, but I can still reproduce the bug on pre-release1.230.0, with the same MRE: