JuliaLang/Tokenize.jl

Precompilation fails

Closed this issue · 3 comments

   _       _ _(_)_     |  A fresh approach to technical computing
  (_)     | (_) (_)    |  Documentation: https://docs.julialang.org
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 0.7.0 (2018-08-08 06:46 UTC)
 _/ |\__'_|_|_|\__'_|  |  Official http://julialang.org/ release
|__/                   |  x86_64-pc-linux-gnu

julia> using Tokenize
ERROR: ArgumentError: Package Tokenize not found in current path:
- Run `Pkg.add("Tokenize")` to install the Tokenize package.

Stacktrace:
 [1] require(::Module, ::Symbol) at ./loading.jl:817



(v0.7) pkg> add Tokenize
  Updating registry at `~/.julia/registries/General`
  Updating git-repo `https://github.com/JuliaRegistries/General.git`
 Resolving package versions...
  Updating `~/.julia/environments/v0.7/Project.toml`
  [0796e94c] + Tokenize v0.4.2
  Updating `~/.julia/environments/v0.7/Manifest.toml`
 [no changes]




julia> using Tokenize
[ Info: Precompiling Tokenize [0796e94c-ce3b-5d07-9a54-7f471281c624]
WARNING: could not import Base.UTF8proc into Lexers
ERROR: LoadError: LoadError: LoadError: Base.CodePointError{UInt32}(0xffffffff)
Stacktrace:
 [1] code_point_err(::UInt32) at ./char.jl:73
 [2] convert(::Type{Char}, ::UInt32) at ./char.jl:147
 [3] top-level scope at none:0
 [4] include at ./boot.jl:317 [inlined]
 [5] include_relative(::Module, ::String) at ./loading.jl:1038
 [6] include at ./sysimg.jl:29 [inlined]
 [7] include(::String) at /home/fredrikb/.julia/packages/Tokenize/zWzvN/src/lexer.jl:1
 [8] top-level scope at none:0
 [9] include at ./boot.jl:317 [inlined]
 [10] include_relative(::Module, ::String) at ./loading.jl:1038
 [11] include at ./sysimg.jl:29 [inlined]
 [12] include(::String) at /home/fredrikb/.julia/packages/Tokenize/zWzvN/src/Tokenize.jl:3
 [13] top-level scope at none:0
 [14] include at ./boot.jl:317 [inlined]
 [15] include_relative(::Module, ::String) at ./loading.jl:1038
 [16] include(::Module, ::String) at ./sysimg.jl:29
 [17] top-level scope at none:2
 [18] eval at ./boot.jl:319 [inlined]
 [19] eval(::Expr) at ./client.jl:399
 [20] top-level scope at ./none:3
in expression starting at /home/fredrikb/.julia/packages/Tokenize/zWzvN/src/utilities.jl:31
in expression starting at /home/fredrikb/.julia/packages/Tokenize/zWzvN/src/lexer.jl:3
in expression starting at /home/fredrikb/.julia/packages/Tokenize/zWzvN/src/Tokenize.jl:6
ERROR: Failed to precompile Tokenize [0796e94c-ce3b-5d07-9a54-7f471281c624] to /home/fredrikb/.julia/compiled/v0.7/Tokenize/7Oi97.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:1185
 [4] _require(::Base.PkgId) at ./logging.jl:311
 [5] require(::Base.PkgId) at ./loading.jl:852
 [6] macro expansion at ./logging.jl:311 [inlined]
 [7] require(::Module, ::Symbol) at ./loading.jl:834

0.5.2 is the latest release. Not sure why that is not getting installed? Something upper bounding it?

How do I figure that out using the new package manager?

(v0.7) pkg> st
  [0796e94c] Tokenize v0.4.2

seems to give no clue?

Deprecations/REQUIRE -> Tokenize 0.4.2 0.4.2+