Wednesday, February 26, 2014

Cscope Issue: duplicate cscope database not added

Today I got the error message below when I wanted to use cscope with vim.

Error detected while processing /home/yl/.vim/plugin/cscope_maps.vim:
line   42:
E568: duplicate cscope database not added
Press ENTER or type command to continue


Then finally find the working solution here
https://blogs.oracle.com/natarajan/entry/avoiding_duplicate_cscope_database_error

To fix this issue, you will need to simply edit the file "~/.vim/plugin/cscopemenu.vim" (or whatever your plugin is named) and edit the line :
set cscopeverbose
to
set nocscopeverbose 
You can also do the same by doing this by adding this line "set nocscopeverbose " to your ~/.vimrc file as well.

No comments: