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

Precompiling PlotUtils fails - LoadError, premature end of input #64

Closed
ChantalJuntao opened this issue Jun 25, 2019 · 6 comments
Closed

Comments

@ChantalJuntao
Copy link

I tried to precompile Plots, and got this error in PlotUtils (fully updated and built). I'm running Julia 1.1.1 on Ubuntu 16.04

using PlotUtils
[ Info: Precompiling PlotUtils [995b91a9-d308-5afd-9ec6-746e21dbc043]
ERROR: LoadError: LoadError: LoadError: syntax: incomplete: premature end of input
Stacktrace:
 [1] include at ./boot.jl:326 [inlined]
 [2] include_relative(::Module, ::String) at ./loading.jl:1038
 [3] include at ./sysimg.jl:29 [inlined]
 [4] include(::String) at /home/chantal/.julia/packages/PlotUtils/35TGG/src/PlotUtils.jl:4
 [5] top-level scope at none:0
 [6] include at ./boot.jl:326 [inlined]
 [7] include_relative(::Module, ::String) at ./loading.jl:1038
 [8] include at ./sysimg.jl:29 [inlined]
 [9] include(::String) at /home/chantal/.julia/packages/PlotUtils/35TGG/src/PlotUtils.jl:4
 [10] top-level scope at none:0
 [11] include at ./boot.jl:326 [inlined]
 [12] include_relative(::Module, ::String) at ./loading.jl:1038
 [13] include(::Module, ::String) at ./sysimg.jl:29
 [14] top-level scope at none:2
 [15] eval at ./boot.jl:328 [inlined]
 [16] eval(::Expr) at ./client.jl:404
 [17] top-level scope at ./none:3
in expression starting at /home/chantal/.julia/packages/PlotUtils/35TGG/src/gradients/colorcet.jl:3630
in expression starting at /home/chantal/.julia/packages/PlotUtils/35TGG/src/color_gradients.jl:246
in expression starting at /home/chantal/.julia/packages/PlotUtils/35TGG/src/PlotUtils.jl:30
ERROR: Failed to precompile PlotUtils [995b91a9-d308-5afd-9ec6-746e21dbc043] to /home/chantal/.julia/compiled/v1.1/PlotUtils/YveHG.ji.
Stacktrace:
 [1] compilecache(::Base.PkgId, ::String) at ./loading.jl:1197
 [2] _require(::Base.PkgId) at ./loading.jl:960
 [3] require(::Base.PkgId) at ./loading.jl:858
 [4] require(::Module, ::Symbol) at ./loading.jl:853

@daschw
Copy link
Member

daschw commented Jun 25, 2019

Thanks for moving the issue over here!
It's weird, because I cannot reproduce the issue neither on the latest PlotUtils release nor on master.
Also, the lines that your error message refers to have not changed since commit 6fc51d9 2 years ago and I have never seen this issue before. Are you sure that everything is installed correctly and that you did not edit any file in PlotUtils?

@ChantalJuntao
Copy link
Author

pkg status shows I'm using
[995b91a9] PlotUtils v0.5.8
[91a5bcdd] Plots v0.25.1

I don't think I've ever edited them before. Either way, shouldn't updating the package remove any edits I didn't commit?

@asinghvi17
Copy link
Member

asinghvi17 commented Jul 2, 2019

I also just saw this error on a CI run. Not sure what's causing it, will try to dig deeper...

For what it's worth, it works on my machine.

https://gitlab.com/JuliaGPU/AbstractPlotting-jl/-/jobs/243519580

@asinghvi17
Copy link
Member

asinghvi17 commented Jul 3, 2019

@daschw, a rerun of the same Gitlab CI job shows no error, so I assume it was a temporary glitch from somewhere.

A solution could be to rm -rf ~/.julia/packages/PlotUtils (or wherever the PlotUtils package lives) and then ]instantiate. @ChantalJuntao, please tell us if this works for you!

@asinghvi17
Copy link
Member

This is an upstream error in Julia, confirmed by @KristofferC. First reported at JuliaLang/Pkg.jl#795 and PR to fix it at JuliaLang/julia#30989.

@daschw
Copy link
Member

daschw commented Jul 8, 2019

Thanks a lot for the detective work @asinghvi17 !

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