Pluto.jl icon indicating copy to clipboard operation
Pluto.jl copied to clipboard

Weird variable scope behaviour

Open LKuhrmann opened this issue 1 month ago • 0 comments

With this simple snippet:

begin
	a =0
	for b in [1,2,3]
		c = a
		a += b
	end
end

I get this weird super weird error behaviour when running the cell the first time after a change: https://github.com/user-attachments/assets/db92a760-1f8f-4381-b4f1-9789fde8916b

(I dont think there should be cryptic errors when you run the cell for the first time after a change but then it runs fine on the second run)

Versions: Julia 1.12.2 Pluto 0.20.21

LKuhrmann avatar Dec 01 '25 18:12 LKuhrmann