Skip to content
This repository has been archived by the owner on Dec 6, 2019. It is now read-only.

ASTInterpreter2.jl fails to build under Julia 1.0 #27

Closed
adamryczkowski opened this issue Aug 21, 2018 · 7 comments
Closed

ASTInterpreter2.jl fails to build under Julia 1.0 #27

adamryczkowski opened this issue Aug 21, 2018 · 7 comments

Comments

@adamryczkowski
Copy link

Here is the backtrace. I use Ubuntu 16.04

julia> Pkg.add(Pkg.PackageSpec(url="https://github.com/Keno/ASTInterpreter2.jl.git"))
   Cloning git-repo `https://github.com/Keno/ASTInterpreter2.jl.git`
  Updating git-repo `https://github.com/Keno/ASTInterpreter2.jl.git`
 Resolving package versions...
  Updating `~/.julia/environments/v1.1/Project.toml`
  [e6d88f4b] ↑ ASTInterpreter2 v0.1.1 ⇒ v0.1.1+ #master (https://github.com/Keno/ASTInterpreter2.jl.git)
  Updating `~/.julia/environments/v1.1/Manifest.toml`
  [e6d88f4b] ↑ ASTInterpreter2 v0.1.1 ⇒ v0.1.1+ #master (https://github.com/Keno/ASTInterpreter2.jl.git)

julia> import ASTInterpreter2
[ Info: Precompiling ASTInterpreter2 [e6d88f4b-b52a-544c-a8d3-7a4f12cb39c3]
ERROR: LoadError: UndefVarError: LineEdit not defined
Stacktrace:
 [1] include at ./boot.jl:317 [inlined]
 [2] include_relative(::Module, ::String) at ./loading.jl:1038
 [3] include(::Module, ::String) at ./sysimg.jl:29
 [4] top-level scope at none:2
 [5] eval at ./boot.jl:319 [inlined]
 [6] eval(::Expr) at ./client.jl:389
 [7] top-level scope at ./none:3
in expression starting at /home/adam/.julia/packages/ASTInterpreter2/OrDHj/src/ASTInterpreter2.jl:7
ERROR: Failed to precompile ASTInterpreter2 [e6d88f4b-b52a-544c-a8d3-7a4f12cb39c3] to /home/adam/.julia/compiled/v1.1/ASTInterpreter2/XrlMa.ji.
Stacktrace:
 [1] error(::String) at ./error.jl:33
 [2] macro expansion at ./logging.jl:313 [inlined]
 [3] compilecache(::Base.PkgId, ::String) at ./loading.jl:1184
 [4] macro expansion at ./logging.jl:311 [inlined]
 [5] _require(::Base.PkgId) at ./loading.jl:941
 [6] require(::Base.PkgId) at ./loading.jl:852
 [7] macro expansion at ./logging.jl:311 [inlined]
 [8] require(::Module, ::Symbol) at ./loading.jl:834
 [9] eval at ./boot.jl:319 [inlined]
 [10] #41 at /home/adam/.julia/packages/Atom/xGwNN/src/repl.jl:126 [inlined]
 [11] with_logstate(::getfield(Main, Symbol("##41#43")), ::Base.CoreLogging.LogState) at ./logging.jl:397
 [12] with_logger(::Function, ::Atom.Progress.JunoProgressLogger) at ./logging.jl:493
 [13] top-level scope at /home/adam/.julia/packages/Atom/xGwNN/src/repl.jl:125


julia> VERSION
v"1.1.0-DEV.74"
@peeyush18
Copy link

this issue is reproducible in macOS too. with julia version 1.0.0. I see a PR. hope it resolves the issue.

@mattcbro
Copy link

It's also failing to build on Linux Mint 19 under JuliaPro-1.0.1. However the error message is a little different.

julia> using ASTInterpreter2
[ Info: Precompiling ASTInterpreter2 [e6d88f4b-b52a-544c-a8d3-7a4f12cb39c3]
ERROR: LoadError: UndefVarError: Nullable not defined
Stacktrace:
 [1] top-level scope at none:0
 [2] include at ./boot.jl:317 [inlined]
 [3] include_relative(::Module, ::String) at ./loading.jl:1041
 [4] include(::Module, ::String) at ./sysimg.jl:29
 [5] top-level scope at none:2
 [6] eval at ./boot.jl:319 [inlined]
 [7] eval(::Expr) at ./client.jl:389
 [8] top-level scope at ./none:3
in expression starting at /home/matt/programs/JuliaPro-1.0.1.1/JuliaPro/pkgs-1.0.1.1/packages/DebuggerFramework/9yZZM/src/DebuggerFramework.jl:13
ERROR: LoadError: Failed to precompile DebuggerFramework [67417a49-6d77-5db2-98c7-c13144130cd2] to /home/matt/programs/JuliaPro-1.0.1.1/JuliaPro/pkgs-1.0.1.1/compiled/v1.0/DebuggerFramework/0bKxs.ji.
Stacktrace:
 [1] error(::String) at ./error.jl:33
 [2] macro expansion at ./logging.jl:313 [inlined]
 [3] compilecache(::Base.PkgId, ::String) at ./loading.jl:1187
 [4] _require(::Base.PkgId) at ./logging.jl:311
 [5] require(::Base.PkgId) at ./loading.jl:855
 [6] macro expansion at ./logging.jl:311 [inlined]
 [7] require(::Module, ::Symbol) at ./loading.jl:837
 [8] include at ./boot.jl:317 [inlined]
 [9] include_relative(::Module, ::String) at ./loading.jl:1041
 [10] include(::Module, ::String) at ./sysimg.jl:29
 [11] top-level scope at none:2
 [12] eval at ./boot.jl:319 [inlined]
 [13] eval(::Expr) at ./client.jl:389
 [14] top-level scope at ./none:3
in expression starting at /home/matt/programs/JuliaPro-1.0.1.1/JuliaPro/pkgs-1.0.1.1/packages/ASTInterpreter2/b1fAq/src/ASTInterpreter2.jl:4
ERROR: Failed to precompile ASTInterpreter2 [e6d88f4b-b52a-544c-a8d3-7a4f12cb39c3] to /home/matt/programs/JuliaPro-1.0.1.1/JuliaPro/pkgs-1.0.1.1/compiled/v1.0/ASTInterpreter2/XrlMa.ji.
Stacktrace:
 [1] macro expansion at ./logging.jl:313 [inlined]
 [2] compilecache(::Base.PkgId, ::String) at ./loading.jl:1187
 [3] macro expansion at ./logging.jl:311 [inlined]
 [4] _require(::Base.PkgId) at ./loading.jl:944
 [5] require(::Base.PkgId) at ./loading.jl:855
 [6] macro expansion at ./logging.jl:311 [inlined]
 [7] require(::Module, ::Symbol) at ./loading.jl:837

@zxj5470
Copy link

zxj5470 commented Dec 17, 2018

(v1.0) pkg> add DebuggerFramework#master
julia> using DebuggerFramework#master
# precompile
# then 
(v1.0) pkg> add ASTInterpreter2#master
julia> using ASTInterpreter2#master

@KristofferC
Copy link
Member

Fixed by #37

@mattcbro
Copy link

mattcbro commented Jan 31, 2019

Nothing has changed for me under Julia version 1.1.0. In Linux Mint 19.1 I still see the following error:

julia> using ASTInterpreter2
[ Info: Precompiling ASTInterpreter2 [e6d88f4b-b52a-544c-a8d3-7a4f12cb39c3]
ERROR: LoadError: UndefVarError: Nullable not defined
Stacktrace:
 [1] top-level scope at none:0
 [2] include at ./boot.jl:326 [inlined]
 [3] include_relative(::Module, ::String) at ./loading.jl:1038
 [4] include(::Module, ::String) at ./sysimg.jl:29
 [5] top-level scope at none:2
 [6] eval at ./boot.jl:328 [inlined]
 [7] eval(::Expr) at ./client.jl:404
 [8] top-level scope at ./none:3
in expression starting at /home/matt/.julia/packages/DebuggerFramework/9yZZM/src/DebuggerFramework.jl:13
ERROR: LoadError: Failed to precompile DebuggerFramework [67417a49-6d77-5db2-98c7-c13144130cd2] to /home/matt/.julia/compiled/v1.1/DebuggerFramework/0bKxs.ji.
Stacktrace:
 [1] error(::String) at ./error.jl:33
 [2] compilecache(::Base.PkgId, ::String) at ./loading.jl:1197
 [3] _require(::Base.PkgId) at ./loading.jl:960
 [4] require(::Base.PkgId) at ./loading.jl:858
 [5] require(::Module, ::Symbol) at ./loading.jl:853
 [6] include at ./boot.jl:326 [inlined]
 [7] include_relative(::Module, ::String) at ./loading.jl:1038
 [8] include(::Module, ::String) at ./sysimg.jl:29
 [9] top-level scope at none:2
 [10] eval at ./boot.jl:328 [inlined]
 [11] eval(::Expr) at ./client.jl:404
 [12] top-level scope at ./none:3
in expression starting at /home/matt/.julia/packages/ASTInterpreter2/b1fAq/src/ASTInterpreter2.jl:4
ERROR: Failed to precompile ASTInterpreter2 [e6d88f4b-b52a-544c-a8d3-7a4f12cb39c3] to /home/matt/.julia/compiled/v1.1/ASTInterpreter2/XrlMa.ji.
Stacktrace:
 [1] error(::String) at ./error.jl:33
 [2] compilecache(::Base.PkgId, ::String) at ./loading.jl:1197
 [3] _require(::Base.PkgId) at ./loading.jl:960
 [4] require(::Base.PkgId) at ./loading.jl:858
 [5] require(::Module, ::Symbol) at ./loading.jl:853

FYI if I try to add DebuggerFramework, then
julia> using DebuggerFramework
[ Info: Precompiling DebuggerFramework [67417a49-6d77-5db2-98c7-c13144130cd2]
ERROR: LoadError: UndefVarError: Nullable not defined
Stacktrace:

Adding the Nullables package doesn't fix this.

@KristofferC
Copy link
Member

 add DebuggerFramework#master
 add ASTInterpreter2#master

@mattcbro
Copy link

 add DebuggerFramework#master
 add ASTInterpreter2#master

OK thanks @KristofferC . It compiles now without error, though I have not tested functionality.

I'm afraid I didn't fully understand the nuance of the #master syntax. When I see #, I think comment field. Presumably if this is the master branch of the code base it will eventually get grandfathered into a release?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants