Type conversion error when switching to a nested module (julia 1.9)
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 48/100
Research direction
Reproduce the nested-module switch on Julia 1.9 with RemoteREPL 0.2.17, then inspect src/client.jl around run_remote_repl_command at line 369. Confirm the Expr-to-Symbol conversion failure and identify the compatible handling for the module command; done means switching to a nested module no longer raises the MethodError.
Written by the indexing model from the issue text.
Description
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
- Dominant language
- Julia
- Stars
- 148
- Forks
- 17
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from JuliaWeb/RemoteREPL.jl
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
JuliaWeb/RemoteREPL.jl#82 ·
-
good first issue
Difficulty 3/5 1-2 days Newbie friendliness 45/100
JuliaWeb/RemoteREPL.jl#80 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
JuliaWeb/RemoteREPL.jl#69 · 1 reaction ·
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
JuliaWeb/RemoteREPL.jl#67 · 3 comments ·
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
JuliaWeb/RemoteREPL.jl#66 ·
All issues in JuliaWeb/RemoteREPL.jl
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Maintainers usually reply within 1 day
-
Difficulty 1/5 1-3 hours Newbie friendliness 86/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
FluxML/Metalhead.jl#407 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
SciML/ModelingToolkit.jl#5371 ·
Maintainers usually reply within 2 days