Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to rewrite REPL key #35

Open
IlyaOrson opened this issue Aug 15, 2022 · 1 comment
Open

Unable to rewrite REPL key #35

IlyaOrson opened this issue Aug 15, 2022 · 1 comment

Comments

@IlyaOrson
Copy link
Contributor

An error appears when trying to overwrite the shell model key with julia 1.8.

julia> using ReplMaker

julia> function parse_to_expr(s)
                  quote Meta.parse($s) end
              end
parse_to_expr (generic function with 1 method)

julia> initrepl(parse_to_expr,
                       prompt_text="Expr> ",
                       prompt_color = :blue,
                       start_key=';',
                       mode_name="Expr_mode")
┌ Warning: REPL key ';' overwritten.
└ @ ReplMaker C:\Users\ilyao\.julia\packages\ReplMaker\ViCwA\src\ReplMaker.jl:96
ERROR: MethodError: no method matching deepcopy_internal(::Base.Threads.SpinLock)
Closest candidates are:
  deepcopy_internal(::Base.AbstractLock, ::IdDict) at deepcopy.jl:130
  deepcopy_internal(::Any, ::IdDict) at deepcopy.jl:53
  deepcopy_internal(::BigInt, ::IdDict) at gmp.jl:794
  ...
Stacktrace:
  [1] deepcopy_internal(x::Base.GenericCondition{Base.Threads.SpinLock}, stackdict::IdDict{Any, Any})
    @ Base .\deepcopy.jl:143
  [2] deepcopy_internal(x::Any, stackdict::IdDict{Any, Any}) (repeats 4 times)
    @ Base .\deepcopy.jl:65
  [3] deepcopy_internal(x::Any, stackdict::IdDict{Any, Any})
    @ Base .\deepcopy.jl:76
  [4] deepcopy_internal(x::Dict{Char, Any}, stackdict::IdDict{Any, Any})
    @ Base .\deepcopy.jl:125
  [5] deepcopy_internal(x::Any, stackdict::IdDict{Any, Any})
    @ Base .\deepcopy.jl:65
  [6] deepcopy_internal(x::Dict{Symbol, REPL.LineEdit.Prompt}, stackdict::IdDict{Any, Any})
    @ Base .\deepcopy.jl:125
  [7] deepcopy_internal(x::Any, stackdict::IdDict{Any, Any}) (repeats 2 times)
    @ Base .\deepcopy.jl:65
  [8] deepcopy_internal(x::Any, stackdict::IdDict{Any, Any})
    @ Base .\deepcopy.jl:76
  [9] deepcopy_internal(x::Dict{Char, Any}, stackdict::IdDict{Any, Any})
    @ Base .\deepcopy.jl:125
 [10] deepcopy_internal(x::Any, stackdict::IdDict{Any, Any})
    @ Base .\deepcopy.jl:65
 [11] deepcopy_internal(x::Any, stackdict::IdDict{Any, Any})
    @ Base .\deepcopy.jl:76
 [12] deepcopy(x::Function)
    @ Base .\deepcopy.jl:26
 [13] initrepl(parser::typeof(parse_to_expr); prompt_text::String, prompt_color::Symbol, start_key::Char, repl::REPL.LineEditREPL, mode_name::String, show_function::Nothing, show_function_io::Base.TTY, valid_input_checker::Function, keymap::Dict{Char, Any}, completion_provider::REPL.REPLCompletionProvider, sticky_mode::Bool, startup_text::Bool)
    @ ReplMaker C:\Users\ilyao\.julia\packages\ReplMaker\ViCwA\src\ReplMaker.jl:97
 [14] top-level scope
    @ REPL[3]:1
@anandijain
Copy link

Yeah, same

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

No branches or pull requests

2 participants