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

Exception on repeated tab-completion #106

Closed
nilsbecker opened this issue Jan 30, 2025 · 5 comments · Fixed by #107
Closed

Exception on repeated tab-completion #106

nilsbecker opened this issue Jan 30, 2025 · 5 comments · Fixed by #107
Assignees
Labels
bug Something isn't working

Comments

@nilsbecker
Copy link

nilsbecker commented Jan 30, 2025

After a recent julia upgrade (possibly the one to 1.11.3) I've been seeing errors in the REPL when I press tab in rapid succession. Here is a copied stacktrace

exception =
│    MethodError: objects of type Nothing are not callable
│    The object of type `Nothing` exists, but no method is defined for this combination of argument types
 when trying to treat it as a callable object.
│    Stacktrace:
│     [1] gen_motion(buf::IOBuffer, cmd::VimBindings.Commands.SimpleMotionCommand)
│       @ VimBindings.Motions ~/.julia/packages/VimBindings/7dPgl/src/motion.jl:473
│     [2] execute(buf::IOBuffer, command::VimBindings.Commands.SimpleMotionCommand)
│       @ VimBindings.Execution ~/.julia/packages/VimBindings/7dPgl/src/execute.jl:29
│     [3] strike_key(c::String, s::REPL.LineEdit.MIState)
│       @ VimBindings ~/.julia/packages/VimBindings/7dPgl/src/VimBindings.jl:132
│     [4] (::VimBindings.var"#9#11"{Dict{Char, Any}, VimBindings.var"#8#10"{REPL.LineEdit.var"#254#262",
String}, String})(s::REPL.LineEdit.MIState, p::REPL.LineEdit.PrefixSearchState)
│       @ VimBindings ~/.julia/packages/VimBindings/7dPgl/src/lineeditalt.jl:80
│     [5] prompt!(term::REPL.Terminals.TTYTerminal, prompt::REPL.LineEdit.ModalInterface, s::REPL.LineEdi
t.MIState)
│       @ VimBindings ~/.julia/packages/VimBindings/7dPgl/src/lineeditalt.jl:34
│     [6] run_interface(terminal::REPL.Terminals.TextTerminal, m::REPL.LineEdit.ModalInterface, s::REPL.L
ineEdit.MIState)
│       @ REPL.LineEdit ~/.julia/juliaup/julia-1.11.3+0.aarch64.apple.darwin14/share/julia/stdlib/v1.11/R
EPL/src/LineEdit.jl:2750
│     [7] run_frontend(repl::REPL.LineEditREPL, backend::REPL.REPLBackendRef)
│       @ REPL ~/.julia/juliaup/julia-1.11.3+0.aarch64.apple.darwin14/share/julia/stdlib/v1.11/REPL/src/R
EPL.jl:1474
│     [8] (::REPL.var"#75#81"{REPL.LineEditREPL, REPL.REPLBackendRef})()
│       @ REPL ~/.julia/juliaup/julia-1.11.3+0.aarch64.apple.darwin14/share/julia/stdlib/v1.11/REPL/src/REPL.jl:480
└ @ VimBindings ~/.julia/packages/VimBindings/7dPgl/src/lineeditalt.jl:82

These are not reproducible at will unfortunately but happen every once in a while during a REPL session

@caleb-allen caleb-allen added the bug Something isn't working label Jan 30, 2025
@caleb-allen
Copy link
Owner

Thank you for the report.

What environment are you running (OS and terminal)? And are you using a multiplexer like tmux or screen?

@caleb-allen
Copy link
Owner

Alright, I believe I've found the source of the bug and pushed it to a branch in the PR #107

Install it with Pkg with add https://github.com/caleb-allen/VimBindings.jl#remove-unimplemented-motions, if the issue seems to be resolved after you've used it for a while then I'll merge the fix

@nilsbecker
Copy link
Author

i installed the patch and will report back!

@caleb-allen caleb-allen self-assigned this Feb 3, 2025
@nilsbecker
Copy link
Author

no issues anymore after installing the patch, i think it's fine!

@caleb-allen
Copy link
Owner

Great, thanks for following up! I'll merge the patch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants