preservim / tagbar

Vim plugin that displays tags in a window, ordered by scope
https://preservim.github.io/tagbar
Other
6.13k stars 485 forks source link

correct ctags not found, if 'ivalkeen / nerdtree-execute' is installed #840

Closed holstuwe closed 1 year ago

holstuwe commented 1 year ago

Latest Vim (9.x from chocolatey) on Windows 10. Error message when calling tagbartoggle

image

Found through trial and error, that removing 'ivalkeen/nerdtree-execute' solves the issue. Sample list of plugins with the error.

" Tagbar Plugin 'preservim/tagbar' " Nerdtree Plugin 'preservim/nerdtree' " Nerdtree Execute Plugin 'ivalkeen/nerdtree-execute'

The order of the plugins does not seem to matter.

The plugin causing the error seems to be abandoned, so I just leave this here as an information. Removed the plugin from my configuration and tagbar works like a charme.

raven42 commented 1 year ago

Looking at the nerdtree-execute code, this looks like it might be improper use of the set noshellslash in that plugin. Instead of doing a setlocal it is doing a set which will effect all windows including tagbar. This might only be an issue on Windows systems for the path, but I'm not sure. I don't have a setup like this I can test.

Closing as this does appear to be an issue in the other plugin. If found to be an issue in tagbar, we can reopen this.