Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

World age error while building site #278

Open
jacobusmmsmit opened this issue Apr 28, 2024 · 0 comments
Open

World age error while building site #278

jacobusmmsmit opened this issue Apr 28, 2024 · 0 comments

Comments

@jacobusmmsmit
Copy link

I have this code example for ModernJuliaWorkflows.

using StaticArrays
x = [1, 2, 3]
x .= x .+ 1

sx = SA[1, 2, 3] # SA constructs an SArray
sx = sx .+ 1 # Note the = is not broadcasted

Xranklin encounters an issue when building the site due to line 4 sx = SA[1, 2, 3]. It appears to activate its global Julia environment unprompted and cause a world age error.

[ Info:   ⏯️  evaluating cell staticarrays-example_4...
[ Info: 🔄 reactivating your previous environment...
  Activating project at `~/.julia/environments/v1.10`
ERROR: LoadError: MethodError: no method matching size(::StaticArraysCore.SVector{3, Int64})
The applicable method may be too new: running in world age 31647, while current world is 31649.

I have read a few issues opened regarding world ages, but nothing specifically mentioning where it occurs. Is this example an expected issue? How can I work around it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant