Skip to content

Weird variable scope behaviour #3426

@LKuhrmann

Description

@LKuhrmann

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions