JunoLab / Juno.jl

MIT License
145 stars 23 forks source link

Atom precompilation fails after Juno v0.8.0 update [BUG] #480

Closed benninkrs closed 4 years ago

benninkrs commented 4 years ago

Symptom

   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.2.0 (2019-08-20)
 _/ |\__'_|_|_|\__'_|  |  Official https://julialang.org/ release
|__/                   |

julia> using Atom
[ Info: Precompiling Atom [c52e3926-4ff0-5f6e-af25-54175e0327b1]
ERROR: LoadError: UndefVarError: allocatedinline not defined
Stacktrace:
 [1] _precompile_() at C:\Users\rvq\.julia\packages\Atom\YPkPM\src\precompile.jl:133
 [2] top-level scope at C:\Users\rvq\.julia\packages\Atom\YPkPM\src\Atom.jl:66
 [3] include at .\boot.jl:328 [inlined]
 [4] include_relative(::Module, ::String) at .\loading.jl:1094
 [5] include(::Module, ::String) at .\Base.jl:31
 [6] top-level scope at none:2
 [7] eval at .\boot.jl:330 [inlined]
 [8] eval(::Expr) at .\client.jl:432
 [9] top-level scope at .\none:3
in expression starting at C:\Users\rvq\.julia\packages\Atom\YPkPM\src\Atom.jl:66
ERROR: Failed to precompile Atom [c52e3926-4ff0-5f6e-af25-54175e0327b1] to C:\Users\rvq\.julia\compiled\v1.2\Atom\w9XOh.ji.
Stacktrace:
 [1] error(::String) at .\error.jl:33
 [2] compilecache(::Base.PkgId, ::String) at .\loading.jl:1253
 [3] _require(::Base.PkgId) at .\loading.jl:1013
 [4] require(::Base.PkgId) at .\loading.jl:911
 [5] require(::Module, ::Symbol) at .\loading.jl:906

### Details

(v1.2) pkg> status
    Status `C:\Users\rvq\.julia\environments\v1.2\Project.toml`
  [c52e3926] Atom v0.12.1
  [6e4b80f9] BenchmarkTools v0.4.3
  [682c06a0] JSON v0.21.0
  [e5e0dc1b] Juno v0.8.0
  [1914dd2f] MacroTools v0.5.4
  [6fe1bfb0] OffsetArrays v1.0.2
  [295af30f] Revise v2.5.0
  [2913bbd2] StatsBase v0.32.1

ink 0.12.0 julia-client 0.12.0 Windows 10

How I got here

  1. I mindlessly updated julia-client and ink with a julia client running.
  2. I closed Atom, did
    apm uninstall ink
    apm uinstall julia-client
    apm install ink
    apm install julia-client

    and updated Atom from within a Julia terminal.

  3. I started Atom and a julia session, I got the Atom precompilation error shown above.
  4. I exited Atom and opened a Julia terminal, typed using Atom, and got what you see above.
  5. Just in case something hadn't updated properly I went into pkg, did rm Atom and gc'd to clear everything out, then add Atom to get a fresh copy.
  6. Started a new julia terminal, typed using Atom and got the same error shown above.
aviatesk commented 4 years ago

Atom@0.12.2 will fix this. Try

] up Atom
benninkrs commented 4 years ago

thanks that fixed it. The Juno team's responsiveness to bugs and issues is impressive.