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

Bulma is not loading correctly #318

Closed
kskyten opened this issue Jun 15, 2019 · 4 comments
Closed

Bulma is not loading correctly #318

kskyten opened this issue Jun 15, 2019 · 4 comments

Comments

@kskyten
Copy link

kskyten commented Jun 15, 2019

I get the following warning and error with Julia 1.1.1.
Running

using Blink, Interact

w = Window()
b = button()

raises a warning

Warning: Accessing scope.id is deprecated; use scopeid(scope) instead.
│   caller = ip:0x0
└ @ Core :-1
(div { className="field interact-widget" }
    (button { attributes=Dict{Any,Any}("data-bind"=>"click: function (){this.clicks(this.clicks()+1)}, css: {'is-loading' : loading}") className="is-medium button is-primary" style=Dict{String,Any}() }
    "Press me!"))

Trying to display the button gives this error

body!(w, b)
ERROR: Dependency is neither a url, nor a file, nor registered with AssetRegistry: ~/.julia/packages/Interact/0klKX/src/../assets/bulma.min.css
Stacktrace:
 [1] error(::String) at ./error.jl:33
 [2] path2url(::SubString{String}) at ~/.julia/packages/WebIO/nNJPv/src/asset.jl:109
 [3] dep2url(::String) at ~/.julia/packages/WebIO/nNJPv/src/asset.jl:119
 [4] lower(::Asset) at ~/.julia/packages/WebIO/nNJPv/src/asset.jl:32
 [5] lowerassets at ~/.julia/packages/WebIO/nNJPv/src/asset.jl:59 [inlined]
 [6] iterate at ./generator.jl:47 [inlined]
 [7] collect_to!(::Array{Dict{String,V} where V,1}, ::Base.Generator{Array{Asset,1},typeof(WebIO.lowerassets)}, ::Int64, ::Int64) at ./array.jl:651
 [8] collect_to!(::Array{Dict{String,String},1}, ::Base.Generator{Array{Asset,1},typeof(WebIO.lowerassets)}, ::Int64, ::Int64) at ./array.jl:659
 [9] collect_to_with_first!(::Array{Dict{String,String},1}, ::Dict{String,String}, ::Base.Generator{Array{Asset,1},typeof(WebIO.lowerassets)}, ::Int64) at ./array.jl:630
 [10] _collect(::Array{Asset,1}, ::Base.Generator{Array{Asset,1},typeof(WebIO.lowerassets)}, ::Base.EltypeUnknown, ::Base.HasShape{1}) at ./array.jl:624
 [11] collect_similar(::Array{Asset,1}, ::Base.Generator{Array{Asset,1},typeof(WebIO.lowerassets)}) at ./array.jl:548
 [12] map(::Function, ::Array{Asset,1}) at ./abstractarray.jl:2018
 [13] lowerassets(::Async) at ~/.julia/packages/WebIO/nNJPv/src/asset.jl:60
 [14] lowerassets at ~/.julia/packages/WebIO/nNJPv/src/asset.jl:64 [inlined]
 [15] lower(::Scope) at ~/.julia/packages/WebIO/nNJPv/src/scope.jl:250
 [16] lower(::Node{Scope}) at ~/.julia/packages/WebIO/nNJPv/src/node.jl:118
 [17] show_json at ~/.julia/packages/JSON/ebvl3/src/Writer.jl:314 [inlined]
 [18] show_element(::JSON.Writer.CompactContext{Base.GenericIOBuffer{Array{UInt8,1}}}, ::JSON.Serializations.StandardSerialization, ::Node{Scope}) at ~/.julia/packages/JSON/ebvl3/src/Writer.jl:218
 [19] show_json(::JSON.Writer.CompactContext{Base.GenericIOBuffer{Array{UInt8,1}}}, ::JSON.Serializations.StandardSerialization, ::Array{Any,1}) at ~/.julia/packages/JSON/ebvl3/src/Writer.jl:293
 [20] show_pair(::JSON.Writer.CompactContext{Base.GenericIOBuffer{Array{UInt8,1}}}, ::JSON.Serializations.StandardSerialization, ::String, ::Array{Any,1}) at ~/.julia/packages/JSON/ebvl3/src/Writer.jl:241
 [21] show_pair(::JSON.Writer.CompactContext{Base.GenericIOBuffer{Array{UInt8,1}}}, ::JSON.Serializations.StandardSerialization, ::Pair{String,Any}) at ~/.julia/packages/JSON/ebvl3/src/Writer.jl:243
 [22] show_json(::JSON.Writer.CompactContext{Base.GenericIOBuffer{Array{UInt8,1}}}, ::JSON.Serializations.StandardSerialization, ::Dict{String,Any}) at ~/.julia/packages/JSON/ebvl3/src/Writer.jl:271
 [23] show_json(::JSON.Writer.CompactContext{Base.GenericIOBuffer{Array{UInt8,1}}}, ::JSON.Serializations.StandardSerialization, ::Node{WebIO.DOM}) at ~/.julia/packages/JSON/ebvl3/src/Writer.jl:314
 [24] #show_json#3 at ~/.julia/packages/JSON/ebvl3/src/Writer.jl:325 [inlined]
 [25] show_json at ~/.julia/packages/JSON/ebvl3/src/Writer.jl:324 [inlined]
 [26] print(::Base.GenericIOBuffer{Array{UInt8,1}}, ::Node{WebIO.DOM}) at ~/.julia/packages/JSON/ebvl3/src/Writer.jl:349
 [27] #sprint#340(::Nothing, ::Int64, ::Function, ::Function, ::Node{WebIO.DOM}) at ./strings/io.jl:101
 [28] sprint at ./strings/io.jl:97 [inlined]
 [29] json at ~/.julia/packages/JSON/ebvl3/src/Writer.jl:354 [inlined]
 [30] escape_json at ~/.julia/packages/WebIO/nNJPv/src/util.jl:59 [inlined]
 [31] show(::Base.GenericIOBuffer{Array{UInt8,1}}, ::MIME{Symbol("text/html")}, ::Node{WebIO.DOM}) at ~/.julia/packages/WebIO/nNJPv/src/node.jl:136
 [32] __binrepr at ./multimedia.jl:127 [inlined]
 [33] _textrepr at ./multimedia.jl:119 [inlined]
 [34] #stringmime#6(::Nothing, ::Function, ::MIME{Symbol("text/html")}, ::Node{WebIO.DOM}) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.1/Base64/src/Base64.jl:38
 [35] stringmime at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.1/Base64/src/Base64.jl:38 [inlined]
 [36] body!(::Page, ::Node{WebIO.DOM}) at ~/.julia/packages/WebIO/nNJPv/src/providers/blink.jl:27
 [37] body!(::Window, ::Node{WebIO.DOM}) at ~/.julia/packages/WebIO/nNJPv/src/providers/blink.jl:32
 [38] body!(::Window, ::Widget{:button,Int64}) at ~/.julia/packages/WebIO/nNJPv/src/providers/blink.jl:30
 [39] top-level scope at none:0

Here's the output of the package status command:

 Status `/tmp/interact/Project.toml`
[ad839575] Blink v0.10.1
[c601a237] Interact v0.10.2
@piever
Copy link
Collaborator

piever commented Jun 15, 2019

Can you try ] add Knockout#master and see if it fixes it? There was recently some clean up there, if it solves this problem I should tag a release.

@kskyten
Copy link
Author

kskyten commented Jun 16, 2019

I get the same error with master branches of Interact, Blink and Knockout.

@piever
Copy link
Collaborator

piever commented Jun 16, 2019

I can only reproduce the warning but not the error. The only thing I can think of is that something went wrong with the building and you don't have some dependency. If you try ] build Interact, does it fix things? If it doesn't, it is possible some of the build.log files may have some errors with the download.

@kskyten
Copy link
Author

kskyten commented Jun 16, 2019

Rebuilding Interact fixed it. Thanks!

@kskyten kskyten closed this as completed Jun 16, 2019
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

2 participants