Nerdtree: Crashing update: Error: Key not present in Dictionary: Slash(), etc.

Created on 14 Jul 2020  ·  2Comments  ·  Source: preservim/nerdtree

After last update of this plugin - it is not working.
Errors Vim reports:

Error detected while processing function nerdtree#ui_glue#invokeKeyMap[1]..77[26]..76[3]..<SNR>48_customOpenDir[1]..<SNR>
48_activateDirNode[7]..134[3]..168[8]..157[6]..156[25]..154[15]..266[5]..NERDTreeGitStatusRefreshListener[5]..NERDTreeGet
GitStatusPrefix:
line    6:
E716: Key not present in Dictionary: Slash()
Error detected while processing function nerdtree#ui_glue#invokeKeyMap[1]..77[26]..76[3]..<SNR>48_customOpenDir[1]..<SNR>
48_activateDirNode[7]..134[3]..168[8]..157[6]..156:
line   25:
E171: Missing :endif
Error detected while processing function nerdtree#ui_glue#invokeKeyMap[1]..77[26]..76[3]..<SNR>48_customOpenDir[1]..<SNR>
48_activateDirNode[7]..134[3]..168[8]..157:
line    6:
E170: Missing :endwhile
Error detected while processing function nerdtree#ui_glue#invokeKeyMap[1]..77[26]..76[3]..<SNR>48_customOpenDir[1]..<SNR>
48_activateDirNode[7]..134[3]..168:
line    8:
E171: Missing :endif
Error detected while processing function nerdtree#ui_glue#invokeKeyMap[1]..77[26]..76:
line    3:
E171: Missing :endif
Error detected while processing function nerdtree#ui_glue#invokeKeyMap[1]..77:
line   26:
E171: Missing :endif

Self-Diagnosis

  • [x] Vim/Neovim version :echo v:version: vim 802
  • [x] I have searched the web for an answer to my question.
  • [ ] I have searched the issues for an answer to my question.
  • [ ] I have reviewed the Wiki.
  • [ ] I have reviewed the NERDTree documentation. :h NERDTree

Environment (for bug reports)

  • [ ] Operating System:
  • [ ] NERDTree version, found on 1st line in NERDTree quickhelp ?: 6.9.3
  • [ ] vimrc settings

    • [ ] NERDTree variables

" nerdtree-git-plugin 
let g:NERDTreeIndicatorMapCustom = {
    \ "Modified"  : "✹",
    \ "Staged"    : "✚",
    \ "Untracked" : "✭",
    \ "Renamed"   : "➜",
    \ "Unmerged"  : "═",
    \ "Deleted"   : "✖",
    \ "Dirty"     : "✗",
    \ "Clean"     : "✔︎",
    \ 'Ignored'   : '☒',
    \ "Unknown"   : "?"
    \ }
  • Other NERDTree-dependent Plugins
    - [ ] jistr/vim-nerdtree-tabs
    - [ ] ryanoasis/vim-devicons
    - [ ] tiagofumo/vim-nerdtree-syntax-highlight
    - [x] Xuyuanp/nerdtree-git-plugin
    - [x] Others (specify): low-ghost/nerdtree-fugitive
  • [ ] I've verified the issue occurs with only NERDTree installed.

Steps to Reproduce the Issue

  1. Open vim
    [2. Open nerdtree, try to open dir - for more errors - as listed above]

Current Result (Include screenshots where appropriate.)

Expected Result

bug

Most helpful comment

Fixed, please see here

All 2 comments

Fixed, please see here

Thanks, @Xuyuanp!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

hrqmonteiro picture hrqmonteiro  ·  3Comments

sunnyguan picture sunnyguan  ·  4Comments

DapperFox picture DapperFox  ·  4Comments

kristijanhusak picture kristijanhusak  ·  3Comments

jordwalke picture jordwalke  ·  4Comments