Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Load DB failed by perl #8

Open
ZiYang-oyxy opened this issue Jan 18, 2018 · 1 comment
Open

Load DB failed by perl #8

ZiYang-oyxy opened this issue Jan 18, 2018 · 1 comment

Comments

@ZiYang-oyxy
Copy link

ZiYang-oyxy commented Jan 18, 2018

vimrc:
let g:CCTreeUsePerl = 1

execution:
:CCTreeLoadDB cscope.out

error log:
Error detected while processing function 169[4]..143[6]..144[13]..48[12]..49[14]..119[1]..130:
line   10:
E15: Invalid expression: ^\t[\`\#\$\}\@\~\)]
Error detected while processing function 169[4]..143:
line    6:
E171: Missing :endif

Load xref db but not use perl will also fail:

execution:
:CCTreeLoadXRefDB ccglue.out

error log:
problem decoding 0#
Error detected while processing function 169[4]..143[6]..144[13]..48[12]..49[17]..50[3]..74:
line    2:
E716: Key not present in Dictionary: idx, cctreesym)
E116: Invalid arguments for function 92
Error detected while processing function 169[4]..143:
line    6:
E171: Missing :endif

My environment:

  • vim: VIM - Vi IMproved 8.0 (2016 Sep 12, compiled Mar 17 2017 12:13:35)
  • ccglue: #define PACKAGE_STRING "ccglue 0.6.0" from config.h
  • cctree: " Version: 1.61 from cctree.vim
  • perl: This is perl 5, version 24, subversion 1 (v5.24.1) built for x86_64-linux-gnu-thread-multi
  • cscope: cscope: version 15.8b
@qais-yousef
Copy link

I was hitting this error too. It turned out my vim doesn't have +perl. I reverted to the below in .vimrc

if has('perl')
       let g:CCTreeUsePerl = 1
else
       let g:CCTreeDbFileMaxSize = 200000000 " 200 Mbytes
endif

cctree doesn't check vim has perl in some function along with CCTreeUserPerl is being set which leads to the error you reported.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants