简体   繁体   English

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

[英]Cscope error: cscope: cannot read list size from file cscope.out

There's an exact questioned that is already here !, but with no detailed solution, so asking again. 这里有一个确切的质疑已经是这里 !,但没有详细的解决方案,如此反复询问。 I followed this ! 我遵循了这个 tutorial: 教程:

find . -name "*.c" -o -name "*.cpp" -o -name "*.h" -o -name "*.hpp" > cscope.files
cscope -q -R -b -i cscope.files
cscope -d

when I execute the last command, I get an error: cscope: can not read list size from file cscope.out. 当我执行最后一条命令时,出现错误:cscope:无法从文件cscope.out中读取列表大小。

files sizes: 文件大小:

$ ls -l | grep cscope
-rw-r--r--   1 tnsharma  wheel     8230153 May 29 11:13 cscope.files
-rw-r--r--   1 tnsharma  wheel   280810496 May 29 11:39 cscope.in.out
-rw-r--r--   1 tnsharma  wheel  3471526675 May 29 11:39 cscope.out
-rw-r--r--   1 tnsharma  wheel  1929521640 May 29 11:39 cscope.po.out

Any idea how to make this work? 任何想法如何使这项工作? -Thanks -谢谢

Update: I am able to use cscope in the sub folders. 更新:我可以在子文件夹中使用cscope。 But don't know how to link the cscope.out files across the sub folders to make it global. 但是不知道如何跨子文件夹链接cscope.out文件以使其全局。

Your cscope.out is too large for it to work. 您的cscope.out太大,无法正常工作。

Try reducing the number of files that you parse when doing cscope -R or -b by creating a cscope.files files. 通过创建cscope.files文件,尝试减少在执行cscope -R-b时解析的文件数。

I have given a solution in case where your directory name , or the path of the directory has space(s) . 如果您的目录名目录路径中空格 ,我将提供解决方案。 Rename directory without space(s) and retry. 重命名目录,不带空格,然后重试。 Check this https://stackoverflow.com/a/30423629/3936129 检查此https://stackoverflow.com/a/30423629/3936129

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM