You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error detected while processing function merlin#OccurrencesProjectWide:
line 3:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/home/user/.opam/5.2.0-fp/share/merlin/vim/autoload/merlin.py", line 548, in vim_occurrences
for pos in with_text_previews(lst):
File "/home/user/.opam/5.2.0-fp/share/merlin/vim/autoload/merlin.py", line 536, in with_text_previews
text = preview_lines_by_file[oc['file']][lnum]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^
KeyError: 12
preview_lines_by_file[oc['file']] has entries for 526 and 527 (the other two uses in the file), but not for 12 (the definition).
I tried using this new feature on Eio (e.g. on
statx_works
at https://github.com/ocaml-multicore/eio/blob/d2a3e21bc47dd7a6c482f4c61f9e00c1a39922a9/lib_eio_linux/sched.ml#L12; many other places fail too). I got:preview_lines_by_file[oc['file']]
has entries for 526 and 527 (the other two uses in the file), but not for 12 (the definition).The Python docs say:
I tried adding this to the start of the function, and that seemed to fix it:
The text was updated successfully, but these errors were encountered: