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

Calling Command-T from a new tab throws an 'Invalid Range' error. #266

Closed
leonschreuder opened this issue Jan 17, 2017 · 3 comments
Closed

Comments

@leonschreuder
Copy link

In Neovim I get an error in command-t after opening a new tab and trying to call command-t. After that, command-t is dead.
It could be a NeoVim problem of course, but can you tell what is the actual problem command-t has?

/home/lemo7242/.linuxbrew/lib/ruby/gems/2.3.0/gems/neovim-0.2.4/lib/neovim/session.rb:135:in `block in request'                                                                                                                         
/home/lemo7242/.linuxbrew/lib/ruby/gems/2.3.0/gems/neovim-0.2.4/lib/neovim/session.rb:201:in `main_thread_only'
/home/lemo7242/.linuxbrew/lib/ruby/gems/2.3.0/gems/neovim-0.2.4/lib/neovim/session.rb:126:in `request'
/home/lemo7242/.linuxbrew/lib/ruby/gems/2.3.0/gems/neovim-0.2.4/lib/neovim/api.rb:80:in `call'
/home/lemo7242/.linuxbrew/lib/ruby/gems/2.3.0/gems/neovim-0.2.4/lib/neovim/client.rb:25:in `method_missing'
/home/lemo7242/.linuxbrew/lib/ruby/gems/2.3.0/gems/neovim-0.2.4/lib/neovim/ruby_provider/vim.rb:13:in `public_send'
/home/lemo7242/.linuxbrew/lib/ruby/gems/2.3.0/gems/neovim-0.2.4/lib/neovim/ruby_provider/vim.rb:13:in `method_missing'
/home/lemo7242/.vim/bundle/command-t/ruby/command-t/match_window.rb:283:in `focus_window'
/home/lemo7242/.vim/bundle/command-t/ruby/command-t/match_window.rb:47:in `block in initialize'
/home/lemo7242/.vim/bundle/command-t/ruby/command-t/match_window.rb:46:in `each'
/home/lemo7242/.vim/bundle/command-t/ruby/command-t/match_window.rb:46:in `map'
/home/lemo7242/.vim/bundle/command-t/ruby/command-t/match_window.rb:46:in `initialize'
/home/lemo7242/.vim/bundle/command-t/ruby/command-t/controller.rb:354:in `new'
/home/lemo7242/.vim/bundle/command-t/ruby/command-t/controller.rb:354:in `show'
/home/lemo7242/.vim/bundle/command-t/ruby/command-t/controller.rb:146:in `show_file_finder'
(eval):3:in `show_file_finder'
/home/lemo7242/.linuxbrew/lib/ruby/gems/2.3.0/gems/neovim-0.2.4/lib/neovim/ruby_provider.rb:29:in `<main>'
/home/lemo7242/.linuxbrew/lib/ruby/gems/2.3.0/gems/neovim-0.2.4/lib/neovim/ruby_provider.rb:29:in `eval'
/home/lemo7242/.linuxbrew/lib/ruby/gems/2.3.0/gems/neovim-0.2.4/lib/neovim/ruby_provider.rb:29:in `block (2 levels) in __define_ruby_execute'
/home/lemo7242/.linuxbrew/lib/ruby/gems/2.3.0/gems/neovim-0.2.4/lib/neovim/ruby_provider.rb:77:in `block (3 levels) in __wrap_client'
/home/lemo7242/.linuxbrew/lib/ruby/gems/2.3.0/gems/neovim-0.2.4/lib/neovim/ruby_provider.rb:114:in `__with_redirect_streams'
/home/lemo7242/.linuxbrew/lib/ruby/gems/2.3.0/gems/neovim-0.2.4/lib/neovim/ruby_provider.rb:76:in `block (2 levels) in __wrap_client'
/home/lemo7242/.linuxbrew/lib/ruby/gems/2.3.0/gems/neovim-0.2.4/lib/neovim/ruby_provider.rb:96:in `__with_vim_constant'
/home/lemo7242/.linuxbrew/lib/ruby/gems/2.3.0/gems/neovim-0.2.4/lib/neovim/ruby_provider.rb:75:in `block in __wrap_client'
/home/lemo7242/.linuxbrew/lib/ruby/gems/2.3.0/gems/neovim-0.2.4/lib/neovim/ruby_provider.rb:89:in `__with_globals'
/home/lemo7242/.linuxbrew/lib/ruby/gems/2.3.0/gems/neovim-0.2.4/lib/neovim/ruby_provider.rb:74:in `__wrap_client'
/home/lemo7242/.linuxbrew/lib/ruby/gems/2.3.0/gems/neovim-0.2.4/lib/neovim/ruby_provider.rb:28:in `block in __define_ruby_execute'
/home/lemo7242/.linuxbrew/lib/ruby/gems/2.3.0/gems/neovim-0.2.4/lib/neovim/plugin/handler.rb:58:in `call'
/home/lemo7242/.linuxbrew/lib/ruby/gems/2.3.0/gems/neovim-0.2.4/lib/neovim/host.rb:104:in `block in wrap_plugin_handler'
/home/lemo7242/.linuxbrew/lib/ruby/gems/2.3.0/gems/neovim-0.2.4/lib/neovim/host.rb:63:in `handle'
Error detected while processing function commandt#FileFinder[2]..provider#ruby#Call:
line   17:
W, [2017-01-17T11:25:40.442220 #30361]  WARN -- Neovim::Host: got unexpected error #<ArgumentError: Vim(wincmd):E16: Invalid range>
Vim(wincmd):E16: Invalid range
Error detected while processing function commandt#FileFinder:
line    2:
E171: Missing :endif
@jakalope
Copy link

I am also using neovim. I get the same error on files I try to open that were open when I had to do a forced reboot without closing neovim first.

/var/lib/gems/1.9.1/gems/neovim-0.4.0/lib/neovim/session.rb:102:in `block in request'
/var/lib/gems/1.9.1/gems/neovim-0.4.0/lib/neovim/session.rb:154:in `main_thread_only'
/var/lib/gems/1.9.1/gems/neovim-0.4.0/lib/neovim/session.rb:93:in `request'
/var/lib/gems/1.9.1/gems/neovim-0.4.0/lib/neovim/session/api.rb:61:in `call'
/var/lib/gems/1.9.1/gems/neovim-0.4.0/lib/neovim/remote_object.rb:27:in `method_missing'
/var/lib/gems/1.9.1/gems/neovim-0.4.0/lib/neovim/window.rb:27:in `height='
/home/jake/.vim/bundle/command-t/ruby/command-t/lib/command-t/match_window.rb:349:in `block in restore_window_views'
/home/jake/.vim/bundle/command-t/ruby/command-t/lib/command-t/match_window.rb:346:in `each'
/home/jake/.vim/bundle/command-t/ruby/command-t/lib/command-t/match_window.rb:346:in `restore_window_views'
/home/jake/.vim/bundle/command-t/ruby/command-t/lib/command-t/match_window.rb:198:in `unload'
/home/jake/.vim/bundle/command-t/ruby/command-t/lib/command-t/match_window.rb:194:in `leave'
/home/jake/.vim/bundle/command-t/ruby/command-t/lib/command-t/controller.rb:155:in `hide'
/home/jake/.vim/bundle/command-t/ruby/command-t/lib/command-t/controller.rb:236:in `accept_selection'
(eval):3:in `accept_selection'
eval:1:in `<main>'
/var/lib/gems/1.9.1/gems/neovim-0.4.0/lib/neovim/ruby_provider.rb:55:in `eval'
/var/lib/gems/1.9.1/gems/neovim-0.4.0/lib/neovim/ruby_provider.rb:55:in `block (2 levels) in __define_ruby_execute'
/var/lib/gems/1.9.1/gems/neovim-0.4.0/lib/neovim/ruby_provider.rb:110:in `block in __wrap_client'
/var/lib/gems/1.9.1/gems/neovim-0.4.0/lib/neovim/ruby_provider.rb:118:in `__with_exception_handling'
/var/lib/gems/1.9.1/gems/neovim-0.4.0/lib/neovim/ruby_provider.rb:109:in `__wrap_client'
/var/lib/gems/1.9.1/gems/neovim-0.4.0/lib/neovim/ruby_provider.rb:54:in `block in __define_ruby_execute'
/var/lib/gems/1.9.1/gems/neovim-0.4.0/lib/neovim/plugin/handler.rb:51:in `call'
/var/lib/gems/1.9.1/gems/neovim-0.4.0/lib/neovim/plugin/handler.rb:51:in `call'
/var/lib/gems/1.9.1/gems/neovim-0.4.0/lib/neovim/host.rb:96:in `block in wrap_plugin_handler'
/var/lib/gems/1.9.1/gems/neovim-0.4.0/lib/neovim/host.rb:53:in `call'
/var/lib/gems/1.9.1/gems/neovim-0.4.0/lib/neovim/host.rb:53:in `handle'
Error detected while processing function commandt#private#AcceptSelection[1]..provider#ruby#Call:
line   17:
ArgumentError: Vim:E315: ml_get: invalid lnum: 16

@wincent
Copy link
Owner

wincent commented Jul 21, 2017

I'm using Command-T in Neovim every day and have never seen either of these. Going to need some kind of reliable repro info.

wincent added a commit that referenced this issue Aug 13, 2019
Hopefully mitigates this kind of error on accepting a selection:

    Error detected while processing function commandt#private#AcceptSelection:
    line    1:
    RuntimeError: Vim:E315: ml_get: invalid lnum: 19

With this relevant stack trace excerpt:

    /Library/Ruby/Gems/2.3.0/gems/neovim-0.8.0/lib/neovim/window.rb:27:in `height='
    /Users/glh/.config/nvim/pack/bundle/opt/command-t/ruby/command-t/lib/command-t/match_window.rb:356:in `block in restore_window_views'
    /Users/glh/.config/nvim/pack/bundle/opt/command-t/ruby/command-t/lib/command-t/match_window.rb:353:in `each'
    /Users/glh/.config/nvim/pack/bundle/opt/command-t/ruby/command-t/lib/command-t/match_window.rb:353:in `restore_window_views'
    /Users/glh/.config/nvim/pack/bundle/opt/command-t/ruby/command-t/lib/command-t/match_window.rb:205:in `unload'
    /Users/glh/.config/nvim/pack/bundle/opt/command-t/ruby/command-t/lib/command-t/match_window.rb:201:in `leave'
    /Users/glh/.config/nvim/pack/bundle/opt/command-t/ruby/command-t/lib/command-t/controller.rb:155:in `hide'
    /Users/glh/.config/nvim/pack/bundle/opt/command-t/ruby/command-t/lib/command-t/controller.rb:237:in `accept_selection'
    (eval):3:in `accept_selection'
    eval:1:in `<main>'

Sadly only "hopefully", because I don't have a reliable repro.

Possibly related:

    #266 (comment)
@wincent
Copy link
Owner

wincent commented Aug 26, 2022

Given the big rewrite for v6.0.x, I'm closing all older issues as there is unlikely to be anything significant happening on the 5-x-devel branch from here on1. Feedback issue for 6.0.x is here:

Footnotes

  1. Patches and PRs would be welcome, but my personal efforts are going to be directed towards main.

@wincent wincent closed this as not planned Won't fix, can't repro, duplicate, stale Aug 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants