minimap.vim icon indicating copy to clipboard operation
minimap.vim copied to clipboard

Minimap giving errors as I open help text file

Open shrianshChari opened this issue 3 years ago • 2 comments

Check list

  • [x] I have read through the README (especially F.A.Q section)
  • [x] I have searched through the existing issues

Environment info

  • OS
    • [x] Linux
    • [ ] Mac OS X
    • [ ] Windows
    • [ ] Others:

Version info

$ vim --version
VIM - Vi IMproved 8.2 (2019 Dec 12, compiled Dec 17 2021 16:55:33)
Included patches: 1-2434, 3402-3403, 3409, 3428, 3487, 3564, 3581-3582, 3611, 3613, 3612, 3625, 3669, 3741
Modified by [email protected]
Compiled by [email protected]
Huge version without GUI.  Features included (+) or not (-):
+acl               -farsi             +mouse_sgr         +tag_binary
+arabic            +file_in_path      -mouse_sysmouse    -tag_old_static
+autocmd           +find_in_path      +mouse_urxvt       -tag_any_white
+autochdir         +float             +mouse_xterm       -tcl
-autoservername    +folding           +multi_byte        +termguicolors
-balloon_eval      -footer            +multi_lang        +terminal
+balloon_eval_term +fork()            -mzscheme          +terminfo
-browse            +gettext           +netbeans_intg     +termresponse
++builtin_terms    -hangul_input      +num64             +textobjects
+byte_offset       +iconv             +packages          +textprop
+channel           +insert_expand     +path_extra        +timers
+cindent           +ipv6              -perl              +title
-clientserver      +job               +persistent_undo   -toolbar
-clipboard         +jumplist          +popupwin          +user_commands
+cmdline_compl     +keymap            +postscript        +vartabs
+cmdline_hist      +lambda            +printer           +vertsplit
+cmdline_info      +langmap           +profile           +virtualedit
+comments          +libcall           -python            +visual
+conceal           +linebreak         +python3           +visualextra
+cryptv            +lispindent        +quickfix          +viminfo
+cscope            +listcmds          +reltime           +vreplace
+cursorbind        +localmap          +rightleft         +wildignore
+cursorshape       -lua               -ruby              +wildmenu
+dialog_con        +menu              +scrollbind        +windows
+diff              +mksession         +signs             +writebackup
+digraphs          +modify_fname      +smartindent       -X11
-dnd               +mouse             -sound             -xfontset
-ebcdic            -mouseshape        +spell             -xim
+emacs_tags        +mouse_dec         +startuptime       -xpm
+eval              +mouse_gpm         +statusline        -xsmp
+ex_extra          -mouse_jsbterm     -sun_workshop      -xterm_clipboard
+extra_search      +mouse_netterm     +syntax            -xterm_save
   system vimrc file: "$VIM/vimrc"
     user vimrc file: "$HOME/.vimrc"
 2nd user vimrc file: "~/.vim/vimrc"
      user exrc file: "$HOME/.exrc"
       defaults file: "$VIMRUNTIME/defaults.vim"
  fall-back for $VIM: "/usr/share/vim"
Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H -Wdate-time -g -O2 -ffile-prefix-map=/build/vim-7ASsBs/vim-8.2.2434=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 
Linking: gcc -Wl,-Bsymbolic-functions -flto=auto -Wl,-z,relro -Wl,-z,now -Wl,--as-needed -o vim -lm -ltinfo -lselinux -lacl -lattr -lgpm -L/usr/lib/python3.9/config-3.9-x86_64-linux-gnu -lpython3.9 -lcrypt -ldl -lm -lm

Question / Problem and steps to reproduce

  1. Open Vim
  2. Open minimap window (either with :Minimap command or with g:minimap_auto_start
  3. Open a file in Vim (either with :e or with NERDTree)
  4. Open the minimap help menu with :h minimap
  5. Vim will now begin to give errors as you enter the help menu and/or move around within it.

Errors when you open help Errors as you move around help

Other things I have noticed:

  • Minimap will occasionally stop updating as you move between files

Screenshot from 2022-06-03 16-41-18

  • Will frequently throw one of the following errors:
Error detected while processing BufEnter Autocommands for "*"..function <SNR>80_handle_autocmd[23]..<SNR>80_buffer_enter_handler[4]..<SNR>80_source_buffer_enter_handler[2]..<SNR>80_refresh_min
imap[15]..<SNR>80_generate_minimap:
E716: Key not present in Dictionary: "working_width"
E116: Invalid arguments for function string(2.0 * g:minimap_width / s:win_info['working_width'])```
E788: Not allowed to edit another buffer now
E434: Can't find tag pattern
Error detected while processing CursorMoved Autocommands for "*"..function <SNR>80_handle_autocmd[29]..<SNR>80_source_win_scroll[14]..<SNR>80_render_highlight_table:
line    1:
E735: Can only compare Dictionary with Dictionary

Since it throws a number of different errors every time I run the same set of commands:

vim <file>
:Minimap
:h minimap

I couldn't copy-paste a single thing that would be representative of my error.

  • If I open a help file for a plugin, after it throws its errors, if I try and open the regular help file (:h), it will give the same errors upon opening.

shrianshChari avatar Jun 03 '22 23:06 shrianshChari

Minimap is also janky when I open help pages(more visual glitches rather than Vim spitting out errors). @wfxr would I be able to block it from opening on help pages using g:minimap_block_filetypes if so, how? Perhaps have it block help files by default?

unrealapex avatar Jun 07 '22 03:06 unrealapex

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Sep 20 '22 17:09 stale[bot]