E609 Cscope Error Cscope Cannot Read File Version From File
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads
Cs_read_prompt Eof No Such File Or Directory
with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the cannot read file version from file cscope out Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Cscope error: cscope: cannot read list size from file cscope.out up vote 0 down vote favorite 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. 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. But don't know how to link the cscope.out files across the sub folders to make it global. linux cscope share|improve this question edited Jun 6 '13 at 15:48 asked May 29 '13 at 19:17 brokenfoot 5,10321437 Can you show head -n 20 of your cscope.out file? (I have src code sources.debian.net/src/cscope/15.8a-2/src/main.c?hl=940#L932 ) Also I can recommend you to use cindex/csearch - codesearch project from RE4 author Russ Cox for fast searching in large codebases. –osgx Apr 27 '14 at 2:13 @osgx: I faced this error during my summer internship while working on the firm's codebase. I don't have access to it now. I'll try it out again on my machine to check if I get it right. –brokenfoot Apr 27 '14 at 2:19 1 You cscope.out is just too big (>2.5 GB). You should delete '-b' option to make it smaller; also you can add several cscope.outs to vim by :cs add dir1/cscope.out, :cs add dir2/cscope.out. And index by cindex/csearch is much better, it supports regexps (like grep), and can index even whole Debian codebase: codesearch.debian.net –osgx Apr 27 '14 at 2:23 add a comment| 2 Answers 2 active oldest votes up vote 0 down vote Your cscope.out is too large for it to work. Try reducing the number of files that you parse when doing cscope -R or -b by creating a
van GoogleInloggenVerborgen veldenZoeken naar groepen of berichten
Illegal seek E609: Cscope error: cscope: cannot cannot read read trailer offset from file cscope.out I don't understand what the error means. So can anyone help me solve the problem? . Follow-Ups: Re: cannot read file An error when I use cscope in vim From: Bob Harris Prev by Date: Re: slickedit - tags for project vs. workspace? Next by Date: Re: Slickedit 11.0.2 error compiling a "c" file Previous by thread: Copy searched content to buffer Next by thread: Re: An error when I use cscope in vim Index(es): Date Thread Flag as inappropriate (AWS) Security UNIX Linux Coding Usenet ArchiveAboutPrivacyImprint newsgroups.derkeiler.com >Archive >Comp >comp.editors >2006-09
encountered the following error,--------[aubrey-***@uts]pwd/export/home/aubrey/work/onnv-gate/usr/src/uts[aubrey-***@uts]ls -l cscope.*-rw-r--r-- 1 aubrey aubrey 157421 Jul 13 09:23 cscope.files-rw-r--r-- 1 aubrey aubrey 8896902 Jul 13 09:24 cscope.in.out-rw-r--r-- 1 aubrey aubrey 77068303 Jul 13 09:24 cscope.out-rw-r--r-- 1 aubrey aubrey 58314408 Jul 13 09:24 cscope.po.out[aubrey-***@uts]vim i86pc/dboot/dboot_elfload.cError detected while processing /export/home/aubrey/.vim/plugin/cscope_maps.vim:line 42:cs_read_prompt EOF: Not a directoryE609: Cscope error: cscope: cannot read list size from file cscope.outPress ENTER or type command to continue--------Any suggestions are really appreciated!Thanks,-Aubrey Gavin Maltby 2007-07-12 09:31:04 UTC PermalinkRaw Message Hi,Post by Aubrey LiHi list,Does anyone have successful experience about vim + cscope to browsesolaris source code?Unfortunate, I encountered the following error,--------/export/home/aubrey/work/onnv-gate/usr/src/uts-rw-r--r-- 1 aubrey aubrey 157421 Jul 13 09:23 cscope.files-rw-r--r-- 1 aubrey aubrey 8896902 Jul 13 09:24 cscope.in.out-rw-r--r-- 1 aubrey aubrey 77068303 Jul 13 09:24 cscope.out-rw-r--r-- 1 aubrey aubrey 58314408 Jul 13 09:24 cscope.po.outcs_read_prompt EOF: Not a directoryE609: Cscope error: cscope: cannot read list size from file cscope.outThe ON 'xref' utility builds the database in cscope-fast format, so I'm guessingthe above may be a case of picking up the old cscope program. When I removethe cscopeprg directive below I get a related error:Error detected while processing /home/gavinm/.vimrc:line 213:cs_read_prompt EOF: No such file or directoryI have the following in my .vimrc which appears to make it all work (hasbeen this way for some time and I can't remember how it all hangstogether!):if has("cscope")set cscopeprg=/home/gavinm/bin/cscope-vim..(more of this below)..endifThe nominated cscopeprg looks like this:----- cut -----#!/bin/ksh## Hackery to make vim and cscope work together for cscope.out## If invoked with -f "/foo/cscope.out" drop those arguments as# cscope then can't find the quick indexes## Copied from petehfirstarg="$1"dirarg="${4#-P}"echo $dirarg >&2shiftif [[ $1 == "-f" && ${2##*/} == "cscope.out" ]]; thenshift; shiftficd $dirargexec /share/onnv-tools/onbld/bin/$(uname -p)/cscope-fast "$firstarg" ${1+"$@"}----- cut -----So you may be able to use that substituting /opt/onbld/bin/i386/cscope-fast in thelast line.For the full gory detail here's the relevant bit of .vimrc:if has("cscope")set cscopeprg=/home/gavinm/bin/cscope-vimset cscopetagset cscopepathcomp=3set nocscopeverboseset cscopetagorder=0"" Short cut keys"" s