wfxr / minimap.vim

📡 Blazing fast minimap / scrollbar for vim, powered by code-minimap written in Rust.
MIT License
1.2k stars 24 forks source link

Error when closing tab #140

Closed romeovs closed 2 years ago

romeovs commented 2 years ago

Check list

Environment info

Version info

NVIM v0.7.0-dev+984-g2870311a3
Build type: Release
LuaJIT 2.1.0-beta3
Compiled by romeo@C02CP5DKMD6R

Features: +acl +iconv +tui
See ":help feature-compile"

   system vimrc file: "$VIM/sysinit.vim"
  fall-back for $VIM: "/usr/local/Cellar/neovim/HEAD-2870311/share/nvim"

Run :checkhealth for more info

Question / Problem and steps to reproduce

  1. Open a file
  2. Open another file in a new tab
  3. Close either file
  4. Observe the following error:
    Error detected while processing function <SNR>234_handle_autocmd[26]..<SNR>234_minimap_move:
    line    5:
    E716: Key not present in Dictionary: "mm_height"
    E116: Invalid arguments for function float2nr
ZNielsen commented 2 years ago

Unable to repro on 0.6.1

:version
NVIM v0.6.1
Build type: Release
LuaJIT 2.1.0-beta3
Compiled by brew@BigSur

Features: +acl +iconv +tui
See ":help feature-compile"

   system vimrc file: "$VIM/sysinit.vim"
  fall-back for $VIM: "/usr/local/Cellar/neovim/0.6.1/share/nvim"

If you could share a screen record of the issue, that might help us reproduce it.

romeovs commented 2 years ago

Here's a screen recording: problem

In the recording you can see the error when I close a buffer. You can also see that the focus lands on the minimap buffer whenever I change tabs.

gitzhangzhao commented 2 years ago

The same problem, I found that deleting let g:minimap_auto_start_win_enter = 1 can solve

ZNielsen commented 2 years ago

Still cannot repro, tried with both g:minimap_auto_start and g:minimap_auto_start_win_enter each enabled and with them disabled.

Maybe try an uninstall/reinstall in case a package manager got stuck on an old version somehow?

Video is with both enabled.

https://user-images.githubusercontent.com/13890741/157897813-c408966e-a607-4771-a284-55eb17cf5c13.mp4

stale[bot] commented 2 years ago

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.

LucasAschenbach commented 2 years ago

I'm running into the same issue on a Macbook with the M1 chip. In my case, this issue occurs when closing the Vim-Plug update window.

Error detected while processing function <SNR>90_handle_autocmd[26]..<SNR>90_minimap_move:
line    8:
E716: Key not present in Dictionary: "mm_height"
E116: Invalid arguments for function float2nr
Press ENTER or type command to continue

Version Info

NVIM v0.7.2
Build type: Release
LuaJIT 2.1.0-beta3
Compiled by brew@HMBRW-A-001-M1-004.local

Features: +acl +iconv +tui
See ":help feature-compile"

   system vimrc file: "$VIM/sysinit.vim"
  fall-back for $VIM: "/opt/homebrew/Cellar/neovim/0.7.2_1/share/nvim"

Run :checkhealth for more info

Steps to Reproduce

  1. Open nvim
  2. Run :PlugInstall with Vim-Plug
  3. Close Vim-Plug window with :q

Configs:

let g:minimap_auto_start = 1
let g:minimap_auto_start_win_enter = 1
let g:minimap_git_colors = 1
let g:minimap_highlight_search = 1