Hello,
I’ve installed the latest version 1.10.2 and using the predator-prey example. When I run my code (shown below) and the predator-prey code, both get the same error message:
LoadError: MethodError: no method matching var"@agent
@agent struct Bank(GridAgent{2})
uninsured::Int #uninsured deposit to total deposits of 100
investments::Int #long-term investments to total deposits of 100
totDep::Int #total deposits
health::Bool #open=true or failed=false
vul::Bool #vulnerable=true or not vulnerable=false
AFS_securities::Int #available-for-sale securities
end
@agent struct Depositor(GridAgent{2})
social_network::Int
end
Here are the versions of the installed packages:
Status ~/Project.toml
⌅ [46ada45e] Agents v4.3.1
[7820620d] AgentsPlots v0.4.2
⌃ [13f3f980] CairoMakie v0.7.5
⌃ [e9467ef8] GLMakie v0.5.5
⌃ [ec714cd0] InteractiveDynamics v0.19.5
⌃ [f0f68f2c] PlotlyJS v0.18.12
⌃ [91a5bcdd] Plots v1.32.0
Thank you.