调用Atom.jl失败, Failed to precompile Atom

不知道为啥安装Atom的时候出现了这种错误,有人知道怎么就解决吗

julia> using Atom
[ Info: Precompiling Atom [c52e3926-4ff0-5f6e-af25-54175e0327b1]
ERROR: LoadError: LoadError: UndefVarError: IMMUTABLE not defined
Stacktrace:
[1] getproperty(::Module, ::Symbol) at .\sysimg.jl:13
[2] top-level scope at none:0
[3] include at .\boot.jl:317 [inlined]
[4] include_relative(::Module, ::String) at .\loading.jl:1044
[5] include at .\sysimg.jl:29 [inlined]
[6] include(::String) at C:\Users\nonaka-PC.julia\packages\CodeTools\64cI5\src\CodeTools.jl:1
[7] top-level scope at none:0
[8] include at .\boot.jl:317 [inlined]
[9] include_relative(::Module, ::String) at .\loading.jl:1044
[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:393
[14] top-level scope at .\none:3
in expression starting at C:\Users\nonaka-PC.julia\packages\CodeTools\64cI5\src\module.jl:55
in expression starting at C:\Users\nonaka-PC.julia\packages\CodeTools\64cI5\src\CodeTools.jl:7
ERROR: LoadError: LoadError: Failed to precompile CodeTools [53a63b46-67e4-5edd-8c66-0af0544a99b9] to C:\Users\nonaka-PC.julia\compiled\v1.0\CodeTools\8fUnH.ji.
Stacktrace:
[1] error(::String) at .\error.jl:33
[2] compilecache(::Base.PkgId, ::String) at .\loading.jl:1203
[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:317 [inlined]
[7] include_relative(::Module, ::String) at .\loading.jl:1044
[8] include at .\sysimg.jl:29 [inlined]
[9] include(::String) at C:\Users\nonaka-PC.julia\packages\Atom\WUITc\src\Atom.jl:3
[10] top-level scope at none:0
[11] include at .\boot.jl:317 [inlined]
[12] include_relative(::Module, ::String) at .\loading.jl:1044
[13] include(::Module, ::String) at .\sysimg.jl:29
[14] top-level scope at none:2
[15] eval at .\boot.jl:319 [inlined]
[16] eval(::Expr) at .\client.jl:393
[17] top-level scope at .\none:3
in expression starting at C:\Users\nonaka-PC.julia\packages\Atom\WUITc\src\eval.jl:1
in expression starting at C:\Users\nonaka-PC.julia\packages\Atom\WUITc\src\Atom.jl:31
ERROR: Failed to precompile Atom [c52e3926-4ff0-5f6e-af25-54175e0327b1] to C:\Users\nonaka-PC.julia\compiled\v1.0\Atom\w9XOh.ji.
Stacktrace:
[1] error(::String) at .\error.jl:33
[2] compilecache(::Base.PkgId, ::String) at .\loading.jl:1203
[3] _require(::Base.PkgId) at .\loading.jl:960
[4] require(::Base.PkgId) at .\loading.jl:858
[5] require(::Module, ::Symbol) at .\loading.jl:853


Julia 的版本信息
Julia Version 1.0.3
Commit 099e826241 (2018-12-18 01:34 UTC)
Platform Info:
OS: Windows (x86_64-w64-mingw32)
CPU: Intel(R) Core™ i7-7700K CPU @ 4.20GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-6.0.0 (ORCJIT, skylake)

前包管理器的状态
(v1.0) pkg> st
[c52e3926] Atom v0.7.11
[e5e0dc1b] Juno v0.5.3

感觉是 CodeTools 的问题
先装它试试

using Pkg
Pkg.add("CodeTools")

CodeTools安是能安,但是通不过测试,同样是,UndefVarError: IMMUTABLE not defined。
让后调用Atom.jl还是一样的错误。

(v1.0) pkg> test CodeTools
Testing CodeTools
Status C:\Users\NONAKA~1\AppData\Local\Temp\jl_5B22.tmp\Manifest.toml
[53a63b46] CodeTools v0.6.3
[34da2185] Compat v1.4.0
[7c4cb9fa] LNR v0.2.0
[50d2b5c4] Lazy v0.13.2
[1914dd2f] MacroTools v0.4.4
[0796e94c] Tokenize v0.5.3
[2a0f44e3] Base64 [@stdlib/Base64]
[ade2ca70] Dates [@stdlib/Dates]
[8bb1440f] DelimitedFiles [@stdlib/DelimitedFiles]
[8ba89e20] Distributed [@stdlib/Distributed]
[b77e0a4c] InteractiveUtils [@stdlib/InteractiveUtils]
[76f85450] LibGit2 [@stdlib/LibGit2]
[8f399da3] Libdl [@stdlib/Libdl]
[37e2e46d] LinearAlgebra [@stdlib/LinearAlgebra]
[56ddb016] Logging [@stdlib/Logging]
[d6f4376e] Markdown [@stdlib/Markdown]
[a63ad114] Mmap [@stdlib/Mmap]
[44cfe95a] Pkg [@stdlib/Pkg]
[de0858da] Printf [@stdlib/Printf]
[3fa0cd96] REPL [@stdlib/REPL]
[9a3f8284] Random [@stdlib/Random]
[ea8e919c] SHA [@stdlib/SHA]
[9e88b42a] Serialization [@stdlib/Serialization]
[1a1011a3] SharedArrays [@stdlib/SharedArrays]
[6462fe0b] Sockets [@stdlib/Sockets]
[2f01184e] SparseArrays [@stdlib/SparseArrays]
[10745b16] Statistics [@stdlib/Statistics]
[8dfed614] Test [@stdlib/Test]
[cf7118a7] UUIDs [@stdlib/UUIDs]
[4ec0a83e] Unicode [@stdlib/Unicode]
ERROR: LoadError: LoadError: UndefVarError: IMMUTABLE not defined
Stacktrace:
[1] getproperty(::Module, ::Symbol) at .\sysimg.jl:13
[2] top-level scope at none:0
[3] include at .\boot.jl:317 [inlined]
[4] include_relative(::Module, ::String) at .\loading.jl:1044
[5] include at .\sysimg.jl:29 [inlined]
[6] include(::String) at C:\Users\nonaka-PC.julia\packages\CodeTools\64cI5\src\CodeTools.jl:1
[7] top-level scope at none:0
[8] include at .\boot.jl:317 [inlined]
[9] include_relative(::Module, ::String) at .\loading.jl:1044
[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:393
[14] top-level scope at .\none:3
in expression starting at C:\Users\nonaka-PC.julia\packages\CodeTools\64cI5\src\module.jl:55
in expression starting at C:\Users\nonaka-PC.julia\packages\CodeTools\64cI5\src\CodeTools.jl:7
ERROR: LoadError: Failed to precompile CodeTools [53a63b46-67e4-5edd-8c66-0af0544a99b9] to C:\Users\nonaka-PC.julia\compiled\v1.0\CodeTools\8fUnH.ji.
Stacktrace:
[1] error(::String) at .\error.jl:33
[2] compilecache(::Base.PkgId, ::String) at .\loading.jl:1203
[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:317 [inlined]
[7] include_relative(::Module, ::String) at .\loading.jl:1044
[8] include(::Module, ::String) at .\sysimg.jl:29
[9] include(::String) at .\client.jl:392
[10] top-level scope at none:0
in expression starting at C:\Users\nonaka-PC.julia\packages\CodeTools\64cI5\test\runtests.jl:1
ERROR: Package CodeTools errored during testing

卸载重装一下,应该已经修复了。

https://github.com/JunoLab/CodeTools.jl/issues/31#event-2052017349

1 个赞