preservim / nerdtree

A tree explorer plugin for vim.
Do What The F*ck You Want To Public License
19.66k stars 1.45k forks source link

E1208: -complete used without allowing arguments #1398

Closed az-z closed 10 months ago

az-z commented 10 months ago

Environment

set nocompatible set number set relativenumber set termguicolors call plug#begin() Plug 'vim/colorschemes' Plug 'preservim/NERDTree' | \ Plug 'Xuyuanp/nerdtree-git-plugin' | \ Plug 'tiagofumo/vim-nerdtree-syntax-highlight' | " \ Plug 'scrooloose/nerdtree-project-plugin' | " \ Plug 'PhilRunninger/nerdtree-buffer-ops' | not compatible with git " and devicons \ Plug 'PhilRunninger/nerdtree-visual-selection' Plug 'ryanoasis/vim-devicons' Plug 'vim-airline/vim-airline' call plug#end()

autocmd VimEnter NERDTree | wincmd p autocmd BufEnter if tabpagenr('$') == 1 && winnr('$') == 1 && exists('b:NERDTree') && b:NERDTree.isTabTree() | quit | endif

source ~/.vim/NERDTree.vim



#### Steps to Reproduce the Issue
1. Remove the comment from line     \ Plug 'scrooloose/nerdtree-project-plugin' | 

#### Current Behavior (Include screenshots where appropriate.)
vim ~/.vimrc 
Error detected while processing /home/az/.vim/plugged/NERDTree/plugin/NERD_tree.vim[234]..function nerdtree#postSourceActions[5]..script /home/az/.vim/plugged/nerdtree-project-plugin/nerdtree_plugin/project.vim:
line   45: E1208: -complete used without allowing argumentsPress ENTER or type command to continue
#### Expected Result
it should not throw the error.

Filing as directed by @rzvxa in #1051 

Thank you.
AZ
rzvxa commented 10 months ago

Hey @az-z, Thanks for filing this issue!

I've allocated some time toward tracing this bug, nerdtree-project-plugin is almost 10 years old at this point so there might be some incompatibility issue that we have introduced over the years and went unnoticed because of the low user base of the said plugin.

But fortunately, there is already a PR for this problem on the nerdtree-project-plugin which hasn't merged yet(it is from 2021), Can you use this version instead and report the result? View PR View Fork

rzvxa commented 10 months ago

I'll close this issue since the problem originates from one of Nerdtree's plugins and doesn't have to do with Nerdtree itself. But I strongly believe that the fork mentioned above would fix the problem. Feel free to reopen this issue or create a new one if there are any other problems even with this plugin excluded from your config.