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

Type conversion error when switching to a nested module (julia 1.9) #59

Open
krynju opened this issue Jul 3, 2023 · 0 comments
Open

Comments

@krynju
Copy link

krynju commented Jul 3, 2023

julia versions 1.9.0, 1.9.1
remoterepl 0.2.17

everything generally works fine, the error just pops up when you switch to a nested module
did not occur on julia 1.6, didn't check other versions

julia@localhost> %module A.B
ERROR: MethodError: Cannot `convert` an object of type Expr to an object of type Symbol

Closest candidates are:
  convert(::Type{T}, ::T) where T
   @ Base Base.jl:64
  Symbol(::Any...)
   @ Base strings/basic.jl:229

Stacktrace:
  [1] setproperty!(x::RemoteREPL.Connection, f::Symbol, v::Expr)
    @ Base ./Base.jl:38
  [2] run_remote_repl_command(conn::RemoteREPL.Connection, out_stream::Base.TTY, cmdstr::String)
    @ RemoteREPL ~/.julia/packages/RemoteREPL/BFqrB/src/client.jl:369
  [3] (::RemoteREPL.var"#52#54"{Base.TTY, RemoteREPL.Connection})(c::String)
    @ RemoteREPL ~/.julia/packages/RemoteREPL/BFqrB/src/client.jl:447
  [4] #invokelatest#2
    @ ./essentials.jl:816 [inlined]
  [5] invokelatest
    @ ./essentials.jl:813 [inlined]
  [6] (::REPL.var"#do_respond#80"{Bool, Bool, RemoteREPL.var"#52#54"{Base.TTY, RemoteREPL.Connection}, REPL.LineEditREPL, REPL.LineEdit.Prompt})(s::REPL.LineEdit.MIState, buf::Any, ok::Bool)
    @ REPL ~/julia-1.9.0/share/julia/stdlib/v1.9/REPL/src/REPL.jl:893
  [7] #invokelatest#2
    @ ./essentials.jl:816 [inlined]
  [8] invokelatest
    @ ./essentials.jl:813 [inlined]
  [9] run_interface(terminal::REPL.Terminals.TextTerminal, m::REPL.LineEdit.ModalInterface, s::REPL.LineEdit.MIState)
    @ REPL.LineEdit ~/julia-1.9.0/share/julia/stdlib/v1.9/REPL/src/LineEdit.jl:2647
 [10] run_frontend(repl::REPL.LineEditREPL, backend::REPL.REPLBackendRef)
    @ REPL ~/julia-1.9.0/share/julia/stdlib/v1.9/REPL/src/REPL.jl:1300
 [11] (::REPL.var"#62#68"{REPL.LineEditREPL, REPL.REPLBackendRef})()
    @ REPL ./task.jl:514
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

1 participant