GenieFramework / Stipple-NetflixTitles-Demo

Demo
0 stars 0 forks source link

Error (because of missing compat section?) #1

Open PallHaraldsson opened 3 years ago

PallHaraldsson commented 3 years ago

I don't think I'm doing anything wrong (i.e. similar to other demos) only this (and two other demo repos) don't have a compat section.

I suppose I could/should go to latest version or master, and when working could make a compat section. I've never made a package let alone a compile section, is it just not automated?

For my own project (and other demo repo) I need older versions of Stipple. I'm not up to speed on how/if can be kept separate, by using environment?

julia> include("netflix_dashboard.jl")
[GET] / => #1 | :get

julia> up(rand((8000:9000)), open_browser=true)

 Web Server running at http://127.0.0.1:8850 
Genie.AppServer.ServersCollection(Task (runnable) @0x00007f6eabb2d270, [ Info: __
nothing[ Info: __
)┌ Error: ErrorException("type Settings has no field base_path")
└ @ Genie.AppServer ~/.julia/packages/Genie/3rr2f/src/AppServer.jl:170

┌ Error: type Settings has no field base_path
│ Stacktrace:
│   [1] getproperty(x::Genie.Configuration.Settings, f::Symbol)
│     @ Base ./Base.jl:33
│   [2] deps()
│     @ StipplePlotly ~/.julia/packages/StipplePlotly/JWGQH/src/StipplePlotly.jl:41
│   [3] (::Stipple.var"#20#25")(f::typeof(StipplePlotly.deps))
│     @ Stipple ./none:0
│   [4] iterate
│     @ ./generator.jl:47 [inlined]
│   [5] collect_to!(dest::Vector{String}, itr::Base.Generator{Vector{Function}, Stipple.var"#20#25"}, offs::Int64, st::Int64)
│     @ Base ./array.jl:724
│   [6] collect_to_with_first!(dest::Vector{String}, v1::String, itr::Base.Generator{Vector{Function}, Stipple.var"#20#25"}, st::Int64)
│     @ Base ./array.jl:702
│   [7] collect(itr::Base.Generator{Vector{Function}, Stipple.var"#20#25"})
│     @ Base ./array.jl:683
│   [8] deps(channel::String)
│     @ Stipple ~/.julia/packages/Stipple/ICntI/src/Stipple.jl:282
│   [9] layout(output::String; partial::Bool, title::String, class::String, style::String, head_content::String, channel::String)
│     @ Stipple.Layout ~/.julia/packages/Stipple/ICntI/src/Layout.jl:14
│  [10] dashboard(elemid::String, content::Vector{String}; partial::Bool, title::String, head_content::String, class::String, style::String, channel::String, kwargs::Base.Iterators.Pairs{Union{}, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
│     @ StippleUI.Dashboard ~/.julia/packages/StippleUI/dlXMJ/src/Dashboard.jl:31
│  [11] ui(model::Main.NetflixDashboard.Model)
│     @ Main.NetflixDashboard ~/StippleDemos/Stipple-NetflixTitles-Demo/netflix_dashboard.jl:209
│  [12] (::var"#1#2")()
│     @ Main ~/StippleDemos/Stipple-NetflixTitles-Demo/netflix_dashboard.jl:260
│  [13] #invokelatest#2
│     @ ./essentials.jl:707 [inlined]
│  [14] invokelatest
│     @ ./essentials.jl:706 [inlined]
│  [15] match_routes(req::HTTP.Messages.Request, res::HTTP.Messages.Response, params::Genie.Router.Params{Any})
│     @ Genie.Router ~/.julia/packages/Genie/3rr2f/src/Router.jl:498
│  [16] route_request(req::HTTP.Messages.Request, res::HTTP.Messages.Response, ip::Sockets.IPv4)
│     @ Genie.Router ~/.julia/packages/Genie/3rr2f/src/Router.jl:150
│  [17] handle_request(req::HTTP.Messages.Request, res::HTTP.Messages.Response, ip::Sockets.IPv4)
│     @ Genie.AppServer ~/.julia/packages/Genie/3rr2f/src/AppServer.jl:168
│  [18] handle_request
│     @ ~/.julia/packages/Genie/3rr2f/src/AppServer.jl:161 [inlined]
│  [19] #22
│     @ /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/Distributed/src/macros.jl:127 [inlined]
│  [20] run_work_thunk(thunk::Genie.AppServer.var"#22#23"{HTTP.Messages.Request, HTTP.Messages.Response}, print_error::Bool)
│     @ Distributed /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/Distributed/src/process_messages.jl:63
│  [21] remotecall_fetch(::Function, ::Distributed.LocalProcess; kwargs::Base.Iterators.Pairs{Union{}, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
│     @ Distributed /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/Distributed/src/remotecall.jl:379
│  [22] remotecall_fetch(::Function, ::Distributed.LocalProcess)
│     @ Distributed /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/Distributed/src/remotecall.jl:379
│  [23] remotecall_fetch(::Function, ::Int64; kwargs::Base.Iterators.Pairs{Union{}, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
│     @ Distributed /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/Distributed/src/remotecall.jl:421
│  [24] remotecall_fetch(::Function, ::Int64)
│     @ Distributed /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/Distributed/src/remotecall.jl:421
│  [25] setup_http_handler(req::HTTP.Messages.Request, res::HTTP.Messages.Response)
│     @ Genie.AppServer ~/.julia/packages/Genie/3rr2f/src/AppServer.jl:183
│  [26] setup_http_handler
│     @ ~/.julia/packages/Genie/3rr2f/src/AppServer.jl:182 [inlined]
│  [27] handle
│     @ ~/.julia/packages/HTTP/IAI92/src/Handlers.jl:253 [inlined]
│  [28] handle(::HTTP.Handlers.RequestHandlerFunction{typeof(Genie.AppServer.setup_http_handler)}, ::HTTP.Streams.Stream{HTTP.Messages.Request, HTTP.ConnectionPool.Transaction{Sockets.TCPSocket}})
│     @ HTTP.Handlers ~/.julia/packages/HTTP/IAI92/src/Handlers.jl:276
│  [29] (::Genie.AppServer.var"#6#13"{Int64, Int64})(http::HTTP.Streams.Stream{HTTP.Messages.Request, HTTP.ConnectionPool.Transaction{Sockets.TCPSocket}})
│     @ Genie.AppServer ~/.julia/packages/Genie/3rr2f/src/AppServer.jl:78
│  [30] macro expansion
│     @ ~/.julia/packages/HTTP/IAI92/src/Servers.jl:367 [inlined]
│  [31] (::HTTP.Servers.var"#13#14"{Genie.AppServer.var"#6#13"{Int64, Int64}, HTTP.ConnectionPool.Transaction{Sockets.TCPSocket}, HTTP.Streams.Stream{HTTP.Messages.Request, HTTP.ConnectionPool.Transaction{Sockets.TCPSocket}}})()
│     @ HTTP.Servers ./task.jl:406
essenciary commented 3 years ago

This is work in progress, it's not yet meant to be used.