Skip to content

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

Description

@krynju

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions