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

R REPL exits suddenly #546

Closed
lbilli opened this issue Sep 7, 2024 · 2 comments
Closed

R REPL exits suddenly #546

lbilli opened this issue Sep 7, 2024 · 2 comments

Comments

@lbilli
Copy link
Contributor

lbilli commented Sep 7, 2024

Typing anything while in R REPL mode throws an immediate error:

using RCall

# Type "$" to enter R REPL mode and then "ab"
R> a┌ Error: Error in the keymap
│   exception =
│    MethodError: no method matching complete_line(::RCall.RPrompt.RCompletionProvider, ::REPL.LineEdit.PromptState; hint::Bool)
│    This method may not support any kwargs.
│    
│    Closest candidates are:complete_line(::RCall.RPrompt.RCompletionProvider, ::Any) got unsupported keyword argument "hint"
│       @ RCall ~/.julia/packages/RCall/FEbLj/src/RPrompt.jl:139complete_line(::REPL.LineEdit.CompletionProvider, ::Any, ::Module; hint)
│       @ REPL ~/apps/julia-1.11.0-rc3/share/julia/stdlib/v1.11/REPL/src/LineEdit.jl:188complete_line(::REPL.ShellCompletionProvider, ::REPL.LineEdit.PromptState; hint)
│       @ REPL ~/apps/julia-1.11.0-rc3/share/julia/stdlib/v1.11/REPL/src/REPL.jl:627...
│    
│    Stacktrace:
│     [1] complete_line(c::REPL.LineEdit.CompletionProvider, s::Any, ::Module; hint::Bool)
│       @ REPL.LineEdit ~/apps/julia-1.11.0-rc3/share/julia/stdlib/v1.11/REPL/src/LineEdit.jl:188
│     [2] check_for_hint(s::REPL.LineEdit.MIState)
│       @ REPL.LineEdit ~/apps/julia-1.11.0-rc3/share/julia/stdlib/v1.11/REPL/src/LineEdit.jl:385
│     [3] (::REPL.LineEdit.var"#143#199")(s::REPL.LineEdit.MIState, data::Any, c::Union{Char, SubString{String}, String})
│       @ REPL.LineEdit ~/apps/julia-1.11.0-rc3/share/julia/stdlib/v1.11/REPL/src/LineEdit.jl:2521
│     [4] #invokelatest#2
│       @ ./essentials.jl:1054 [inlined]
│     [5] invokelatest
│       @ ./essentials.jl:1051 [inlined]
│     [6] (::REPL.LineEdit.var"#30#31"{REPL.LineEdit.var"#143#199", String})(s::Any, p::Any)
│       @ REPL.LineEdit ~/apps/julia-1.11.0-rc3/share/julia/stdlib/v1.11/REPL/src/LineEdit.jl:1705
│     [7] macro expansion
│       @ ~/apps/julia-1.11.0-rc3/share/julia/stdlib/v1.11/REPL/src/LineEdit.jl:2855 [inlined]
│     [8] macro expansion
│       @ ./lock.jl:273 [inlined]
│     [9] (::REPL.LineEdit.var"#282#284"{REPL.Terminals.TTYTerminal, REPL.LineEdit.ModalInterface, REPL.LineEdit.MIState, ReentrantLock, REPL.LineEdit.Prompt})()
│       @ REPL.LineEdit ~/apps/julia-1.11.0-rc3/share/julia/stdlib/v1.11/REPL/src/LineEdit.jl:2845
└ @ REPL.LineEdit ~/apps/julia-1.11.0-rc3/share/julia/stdlib/v1.11/REPL/src/LineEdit.jl:2857

This is with Julia 1.11.0-rc3 and RCall 0.14.4.

@palday
Copy link
Collaborator

palday commented Sep 9, 2024

I think this might be the issue we noticed on nightly and fixed in #541. I just tagged 0.14.5 -- in about 10 minutes, you'll be able to install and test out the new version.

@lbilli
Copy link
Contributor Author

lbilli commented Sep 9, 2024

Yes, fixed in 0.14.5.

@lbilli lbilli closed this as completed Sep 9, 2024
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