KristofferC / OhMyREPL.jl

Syntax highlighting and other enhancements for the Julia REPL
https://kristofferc.github.io/OhMyREPL.jl/latest/
Other
768 stars 60 forks source link

OMR fails after JuliaSyntax upgrading to v0.3.3 #308

Closed denius closed 1 year ago

denius commented 1 year ago

After packages update, OhMyREPL fails to load because JuliaSyntax has changed.

julia> using OhMyREPL
[ Info: Precompiling OhMyREPL [5fb14364-9ced-5910-84b2-373655c76a03]
WARNING: could not import Tokenize.Token into OhMyREPL
ERROR: LoadError: UndefVarError: Token not defined
Stacktrace:
 [1] top-level scope
   @ ~/.julia/packages/OhMyREPL/H7jnU/src/repl_pass.jl:43
 [2] include(mod::Module, _path::String)
   @ Base ./Base.jl:419
 [3] include(x::String)
   @ OhMyREPL ~/.julia/packages/OhMyREPL/H7jnU/src/OhMyREPL.jl:6
 [4] top-level scope
   @ ~/.julia/packages/OhMyREPL/H7jnU/src/OhMyREPL.jl:21
 [5] include
   @ ./Base.jl:419 [inlined]
 [6] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt64}}, source::Nothing)
   @ Base ./loading.jl:1554
 [7] top-level scope
   @ stdin:1
in expression starting at /home/denis/.julia/packages/OhMyREPL/H7jnU/src/repl_pass.jl:43
in expression starting at /home/denis/.julia/packages/OhMyREPL/H7jnU/src/OhMyREPL.jl:2
in expression starting at stdin:1
ERROR: Failed to precompile OhMyREPL [5fb14364-9ced-5910-84b2-373655c76a03] to /home/denis/.julia/compiled/v1.8/OhMyREPL/jl_ZfTRii.
denius commented 1 year ago

I noticed that the solution is already ready: https://github.com/KristofferC/OhMyREPL.jl/pull/306