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

Blink precompilation fails due to issues with HttpServer #121

Closed
saolof opened this issue Mar 23, 2018 · 2 comments
Closed

Blink precompilation fails due to issues with HttpServer #121

saolof opened this issue Mar 23, 2018 · 2 comments

Comments

@saolof
Copy link

saolof commented Mar 23, 2018

using Blink in the Julia repl gives me this:

>> using Blink
INFO: Precompiling module Blink.
WARNING: Method definition write(IO, HttpCommon.Response) in module HttpServer at /home/olof/.julia/v0.6/HttpServer/src/HttpServer.jl:178 overwritten in module HttpServer at /home/olof/.julia/v0.6/HttpServer/src/HttpServer.jl:178.
WARNING: error while reinitializing value HttpServer:
ErrorException("Cannot replace module HttpServer during incremental precompile.")
WARNING: Method definition write(IO, HttpCommon.Response) in module HttpServer at /home/olof/.julia/v0.6/HttpServer/src/HttpServer.jl:178 overwritten in module HttpServer at /home/olof/.julia/v0.6/HttpServer/src/HttpServer.jl:178.
WARNING: replacing module HttpServer.

This causes my Juno Julia repl to fail. When I try to start a Julia repl in Juno I get this:

Press Enter to start Julia.
Starting Julia...
INFO: Precompiling module Blink.
WARNING: Module HttpServer with uuid 95123124371079 is missing from the cache.
This may mean module HttpServer does not support precompilation but is imported by a module that does.
ERROR: LoadError: LoadError: Declaring __precompile__(false) is not allowed infiles that are being precompiled.
Stacktrace:
 [1] _require(::Symbol) at ./loading.jl:455
 [2] require(::Symbol) at ./loading.jl:405
 [3] _include_from_serialized(::String) at ./loading.jl:157
 [4] _require_from_serialized(::Int64, ::Symbol, ::String, ::Bool) at ./loading.jl:200
 [5] _require_search_from_serialized(::Int64, ::Symbol, ::String, ::Bool) at ./loading.jl:236
 [6] _require(::Symbol) at ./loading.jl:441
 [7] require(::Symbol) at ./loading.jl:405
 [8] include_from_node1(::String) at ./loading.jl:576
 [9] include(::String) at ./sysimg.jl:14
 [10] include_from_node1(::String) at ./loading.jl:576
 [11] include(::String) at ./sysimg.jl:14
 [12] anonymous at ./<missing>:2
while loading /home/olof/.julia/v0.6/Blink/src/content/content.jl, in expression starting on line 1
while loading /home/olof/.julia/v0.6/Blink/src/Blink.jl, in expression starting on line 9
juno-msg-loadERROR: LoadError: Failed to precompile Blink to /home/olof/.julia/lib/v0.6/Blink.ji.
Stacktrace:
 [1] compilecache(::String) at ./loading.jl:710
 [2] _require(::Symbol) at ./loading.jl:497
 [3] require(::Symbol) at ./loading.jl:405
 [4] _include_from_serialized(::String) at ./loading.jl:157
 [5] _require_from_serialized(::Int64, ::Symbol, ::String, ::Bool) at ./loading.jl:200
 [6] _require_search_from_serialized(::Int64, ::Symbol, ::String, ::Bool) at ./loading.jl:236
 [7] _require(::Symbol) at ./loading.jl:441
 [8] require(::Symbol) at ./loading.jl:405
 [9] include_from_node1(::String) at ./loading.jl:576
 [10] include(::String) at ./sysimg.jl:14
 [11] process_options(::Base.JLOptions) at ./client.jl:305
 [12] _start() at ./client.jl:371
while loading /home/olof/.atom/packages/julia-client/script/boot_repl.jl, in expression starting on line 35

Julia has exited. Press Enter to start a new session.

I should have everything updated to the latest version. My setup worked fine until last week or so when it suddenly broke.

@pfitzseb
Copy link
Member

Are you sure you're using the same julia version in the REPL and in Juno? It's very weird you get the INFO: Precompiling module Blink. message twice.

@twavv
Copy link
Member

twavv commented Jul 30, 2019

Closing this as stale. Please feel free to open a new issue if you're still experiencing issues.

@twavv twavv closed this as completed Jul 30, 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

3 participants