merlin
merlin copied to clipboard
Vim: curson position outside buffer
I've been trying to use Merlin on Fedora 35 with Vim 8.2, but operations that try to move the cursor (e.g. :MerlinLocate) fail with the following error:
Error detected while processing function merlin#Locate:
line 4:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/usr/share/vim/vimfiles/autoload/merlin.py", line 457, in vim_locate_under_cursor
vim_locate_at_cursor(None)
File "/usr/share/vim/vimfiles/autoload/merlin.py", line 454, in vim_locate_at_cursor
command_locate(path, vim.current.window.cursor)
File "/usr/share/vim/vimfiles/autoload/merlin.py", line 295, in command_locate
goto_file_and_point(pos_or_err)
File "/usr/share/vim/vimfiles/autoload/merlin.py", line 283, in goto_file_and_point
vim.current.window.cursor = (l, c)
vim.error: cursor position outside buffer
This happens both when installing Merlin from opam with ocaml.4.14.0 (and adding the suggested snippets to the ~/.vimrc) and when installing from Fedora's dnf package.
What's a good approach to investigate? Thanks!