cscope:Cscope错误:cscope:无法从文件cscope.out读取列表大小

时间:2012-06-21 06:11:41

标签: cscope

问题: 当我尝试在vim(版本7.3)中打开文件时出现以下错误。

cs_read_prompt EOF:非法搜查 E609:Cscope错误:cscope:无法从文件cscope.out中读取列表大小

描述: 我使用命令“cscope -b -R”创建了cscope数据库“cscope.out”。文件〜/ .vim / plugin / cscope_maps.vim包含命令“cs add cscope.out”以添加cscope数据库。当我尝试打开其中一个源文件时,我收到上面提到的错误。

uname -a

Linux 2.6.16.60-0.58.1.3835.0.PTF.638363-smp#1 SMP Wed Dec 12 12:27:56 UTC 2009 x86_64 x86_64 x86_64 GNU / Linux

这可能是什么问题?

感谢您的帮助。

3 个答案:

答案 0 :(得分:1)

我遇到了同样的问题。

当我发现“cscope.out”文件的大小太大(~2.5GB)时,我得到了解决。
为较大的子文件夹创建单独的cscope DB。并使用“:cs add”分别添加所有数据库。

注意:反向索引(cscope -b -q)会创建更大的文件。

答案 1 :(得分:0)

您遇到此错误的情况之一是:如果您的目录中目录名中包含空格(即使在您的路径中)源文件夹)然后重命名没有空格的目录,然后重试。

答案 2 :(得分:0)

您的系统上可能有多个版本的cscope。您可以通过以下方式检查cscope二进制文件的各种位置:

this.googlePlus.login({}).then(result => {
  console.error("LoginWithGooglePlus success: ", JSON.stringify(result));
  console.log("Google userId: ", result.userId);
  console.log("Google displayName: ", result.displayName);
  console.log("Google email: ", result.email);
  console.log("Google givenName: ", result.givenName);
  console.log("Google familyName: ", result.familyName);
  this.navCtrl.setRoot(HomePage, {}, { animate: true, animation: 'ios-transition' });
}).catch(error => {
  console.error("LoginWithGooglePlus error: ", JSON.stringify(error));
});

然后在您的.vimrc中添加此路径之一

whereis cscope