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

Stipple v0.12.0 not precompiling

Open marcello-pietrobon opened this issue 3 years ago • 7 comments

Hello, afair Stipple-Demo-GermanCredits was working a month ago when I quickly tested it.

Using the simple code

using Revise

using Genie.Router, Genie.Renderer.Html
using Stipple

Base.@kwdef mutable struct Name <: ReactiveModel
  name::R{string} = ""
end

model = Stipple.init(Name)

function ui()
  layout(
    page(root(model), class="container", [
        hi([
          "Hello "
          span("", @text(:name))
        ])
    ])
  , title="Basic Stipple") |> html
end

# routes
route("/", ui)

# start server
up()

I follow the instructions ] activate . ] instantiate

I have to explicitly ] add Stipple

Now, just on the line using Stipple I get the error:

(Stipple-Demo-GermanCredits-master) pkg> precompile
Precompiling project...
  ✗ Stipple
  ✗ StippleUI
  ✗ StippleCharts
  0 dependencies successfully precompiled in 11 seconds (58 already precompiled)

ERROR: The following 3 direct dependencies failed to precompile:

Stipple [4acbeb90-81a0-11ea-1966-bdaff8155998]

Failed to precompile Stipple [4acbeb90-81a0-11ea-1966-bdaff8155998] to C:\Users\Giovanni Pietrobon\.julia\compiled\v1.6\Stipple\jl_6173.tmp.
ERROR: LoadError: UndefVarError: attrparser not defined
Stacktrace:
 [1] getproperty(x::Module, f::Symbol)
   @ Base .\Base.jl:26
 [2] top-level scope
   @ C:\Users\Giovanni Pietrobon\.julia\packages\Stipple\kWz7t\src\Stipple.jl:38
 [3] include
   @ .\Base.jl:386 [inlined]
 [4] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt64}}, source::Nothing)
   @ Base .\loading.jl:1235
 [5] top-level scope
   @ none:1
 [6] eval
   @ .\boot.jl:360 [inlined]
 [7] eval(x::Expr)
   @ Base.MainInclude .\client.jl:446
 [8] top-level scope
   @ none:1
in expression starting at C:\Users\Giovanni Pietrobon\.julia\packages\Stipple\kWz7t\src\Stipple.jl:1

StippleCharts [30ddb3f0-912f-4f34-9804-e4bb31290777]

....

status is

(Stipple-Demo-GermanCredits-master) pkg> st
      Status `D:\Julia\Web\Stipple-Demo-GermanCredits-master\Project.toml`
  [336ed68f] CSV v0.9.4
  [a93c6f00] DataFrames v1.2.2
  [c43c736e] Genie v1.18.1
  [c6228e60] GenieAutoReload v0.2.0
  [e6f89c97] LoggingExtras v0.4.7
  [295af30f] Revise v3.1.19
  [4acbeb90] Stipple v0.12.0
  [30ddb3f0] StippleCharts v0.8.0
  [a3c5d34a] StippleUI v0.6.0

How should I go about in order to fix it?

The biggest issue is that I was thinking to (urgently) use it for a website, but now I wonder, is stipple.js (and related packages) ready for production? using it would save me a month of work minimum and with many other advantages.

Thank you, M

marcello-pietrobon avatar Sep 25 '21 11:09 marcello-pietrobon

First of all: Stipple is being actively maintained and should work. However, The Stipple version you have installed are outdated. Maybe the Project.tomlof that demo page is outdated and we haven't checked for compatibility.

In order to get Stipple running, please update your packages to the latest versions with

] up Stipple, StippleUI, Genie

hhaensel avatar Sep 25 '21 12:09 hhaensel

Thank you for answering me so soon.

] up Stipple

    Updating registry at `C:\Users\Giovanni Pietrobon\.julia\registries\General`
    Updating git-repo `https://github.com/JuliaRegistries/General.git`
  No Changes to `D:\Julia\Web\Stipple-Demo-GermanCredits-master\Project.toml`
  No Changes to `D:\Julia\Web\Stipple-Demo-GermanCredits-master\Manifest.toml`

and same with StippleUI and Genie,

] st

status remains unchanged.

marcello-pietrobon avatar Sep 25 '21 12:09 marcello-pietrobon

Then, please activate your standard config with

] activate

and retry updating. If this doesn't help, remove all packages (Genie, Stipple, StippleUI) and readd.

hhaensel avatar Sep 25 '21 12:09 hhaensel

Hey guys! I've recently worked on these to update everything and clean them up (including breaking changes in DataFrames). I haven't had the chance to push the updates yet, but if you give me 1 day or so, I'll update the demos.

essenciary avatar Sep 25 '21 12:09 essenciary

Obviously :) I'm quite new to Julia... so I did activate and was able to update the packages globally (afaiu) to the latest version then I did activate . and removed the packages added and they are still at version 0.12 Maybe there's a way to workaround what's defined in the manifest.toml file, but at this point I'll be glad to wait 1 day or so.

Maybe an additional question, is there a way to be quickly notified of updates?

Have a nice evening.

marcello-pietrobon avatar Sep 25 '21 13:09 marcello-pietrobon

@marcello-pietrobon can we close this?

To be notified of updates - for now starring/following the repos is the only way. But we'll start announcing these on social media and we'll set up a newsletter, so I'll recommend following/signing up soon.

essenciary avatar Dec 04 '21 10:12 essenciary

Please wait two weeks more, I should go back to this soon, and check it again. Thank you.

marcello-pietrobon avatar Dec 10 '21 19:12 marcello-pietrobon