gutentags_plus icon indicating copy to clipboard operation
gutentags_plus copied to clipboard

Error: "E518: Unknown option: cscopequickfix= ..."

Open nerd190 opened this issue 3 years ago • 4 comments

Hey, thank you for this! 🙏 I am receiving an error within the latest nvim on linux:

E518: Unknown option: cscopequickfix=s+,c+,d+,i+,t+,e+,g+,f+,a+

Thank you again! 🙏

nerd190 avatar Dec 02 '22 12:12 nerd190

+1, can't figure out how to fix it. latest nightly nvim on MacOS.

mgomez0 avatar Jan 25 '23 04:01 mgomez0

sorry, can't help, cscope has been removed from the latest nvim.

see: https://github.com/neovim/neovim/issues/14090#issuecomment-1278698996

skywind3000 avatar Jan 25 '23 05:01 skywind3000

What've I've done for now is comment things out in plugin/gutentags_plus.vim:

diff --git a/plugin/gutentags_plus.vim b/plugin/gutentags_plus.vim
index ef0983f..4263e97 100644
--- a/plugin/gutentags_plus.vim
+++ b/plugin/gutentags_plus.vim
@@ -11,11 +11,11 @@
 
 let s:windows = has('win32') || has('win64') || has('win16') || has('win95')
 
-if v:version >= 800
-	set cscopequickfix=s+,c+,d+,i+,t+,e+,g+,f+,a+
-else
-	set cscopequickfix=s+,c+,d+,i+,t+,e+,g+,f+
-endif
+"if v:version >= 800
+"	set cscopequickfix=s+,c+,d+,i+,t+,e+,g+,f+,a+
+"else
+"	set cscopequickfix=s+,c+,d+,i+,t+,e+,g+,f+
+"endif
 
 let g:gutentags_auto_add_gtags_cscope = 0

ActionScripted avatar Apr 13 '23 16:04 ActionScripted

update: I have made a compatible layer and simulate cscope interface for nvim-0.9.0 which makes this plugin available for nvim-0.9.0 now: https://github.com/skywind3000/gutentags_plus/commit/8f34500b27ba5fd2710d4c28cb069d9ad7fa490d

This requires a little modification in gutentags's gtags-cscope module, the corresponding PR has been created as well: https://github.com/ludovicchabant/vim-gutentags/pull/351

before it gets merged, my branch can be used in neovim-0.9.0:

https://github.com/skywind3000/vim-gutentags

skywind3000 avatar Aug 11 '23 09:08 skywind3000