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

@recur not working since julia update (1.11.3) #732

Open
mousspi opened this issue Feb 8, 2025 · 4 comments
Open

@recur not working since julia update (1.11.3) #732

mousspi opened this issue Feb 8, 2025 · 4 comments
Assignees

Comments

@mousspi
Copy link

mousspi commented Feb 8, 2025

Hi ! Thanks in advance for helping.

Describe the bug
Since I updated Julia, my app is not launching due to @recur.

Error stacktrace
LoadError: UndefVarError: @recur not defined in Main.App
Suggestion: check for spelling errors or missing imports.

To reproduce
Using the example from Genie documentation (https://learn.genieframework.com/framework/stipple.jl/recipes/loop-component-generation):

module App
using GenieFramework
@genietools

@app begin
@out messages = ["msg1", "msg2", "msg3"]
end

function ui()
row([card(style="margin: 10px;", @recur("msg in messages"), [
p("{{msg}}")
]),])
end
@page("/", ui)
end

And launching with following command :

using GenieFramework; Genie.loadapp(); up();

When launching with latest julia version (1.11.3), error appears.
When launching with 1.10.8 version (using julia +1.10.8), it works.

Additional context
> juliaup status
1.10.8 1.10.8+0.x64.w64.mingw32
* release 1.11.3+0.x64.w64.mingw32

julia> versioninfo()
Julia Version 1.11.3
Commit d63adeda50 (2025-01-21 19:42 UTC)
Build Info:
Official https://julialang.org/ release
Platform Info:
OS: Windows (x86_64-w64-mingw32)
CPU: 8 × Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz
WORD_SIZE: 64
LLVM: libLLVM-16.0.6 (ORCJIT, skylake)
Threads: 1 default, 0 interactive, 1 GC (on 8 virtual cores)

pkg> st
Status "~.julia\environments\v1.11\Project.toml"
[336ed68f] CSV v0.10.15
[a80b9123] CommonMark v0.8.15
[a93c6f00] DataFrames v1.7.0
[1fa38f19] Format v1.3.7
[a59fdf5c] GenieFramework v3.0.1
[b6b21f68] Ipopt v1.7.1
[4076af6c] JuMP v1.23.6
[f0f68f2c] PlotlyJS v0.18.15
[ddb6d928] YAML v0.4.12


Please answer these optional questions to help us understand, prioritise, and assign the issue

1/ Are you using Genie at work or for hobby/personal projects?
Both. This bug is related to a project at work.

2/ Can you give us, in a few words, some details about the app you're building with Genie?
For prototypes manufacturing, analyzing data from measurements to optimize next program on a machine.

@hhaensel
Copy link
Member

Please replace @recur with @for

@hhaensel
Copy link
Member

That change has been done quite a long time ago and since the latest Stipple version it is no longer exported.

If you have many ocurrences of @recur you can also

import Stipple.Elements.@recur

@essenciary
Copy link
Member

essenciary commented Feb 10, 2025

The underlying issue is the missing compat bounds in the app, to keep the app at using GenieFramework v2. So either fix the issue as @hhaensel said, but this comes with the risk of other issues. Either, to keep the app at the same dependencies configuration as you had, run pkg> add GenieFramework@2

@hhaensel
Copy link
Member

hhaensel commented Feb 10, 2025

These changes are part of the future migration to Vue3.
While we are optimistic that we cover a wide range of scenarios already we cannot guarantee a full compatibility. So our current recommendation for any production setup is to stay at GenieFramework 2 by the above approach recommended by @essenciary or by setting the compat in Project.toml

[compat]
GenieFramework = "2"

and updating after that.

Whoever is courageous enough to try out the latest version is encouraged do so and to report any issues heres so that we can fix them.

There are many cool new features with Stipple 0.31 that are worth being tried out. You find them in the README and in the release notes.

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

3 participants