Cscope Error Cscope Cannot Read List Size From File
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings cs_read_prompt eof no such file or directory and policies of this site About Us Learn more about Stack Overflow cannot read file version from file cscope out the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags e609 cscope error cscope cannot read file version from file Users Badges Ask Question x Dismiss Join the 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: Cscope error: cscope: cannot read list size from file cscope.out up vote 1 down vote favorite Issue: I get the following error when I try to open a file in vim (version 7.3). cs_read_prompt EOF: Illegal seek E609: Cscope error: cscope: cannot read list size from file cscope.out Description: I created the cscope database "cscope.out" using the command "cscope -b -R". The file ~/.vim/plugin/cscope_maps.vim contains the command "cs add cscope.out" to add the cscope database. When I try to open one of the source files, I get the error mentioned above. uname -a Linux 2.6.16.60-0.58.1.3835.0.PTF.638363-smp #1 SMP Wed Dec 2 12:27:56 UTC 2009 x86_64 x86_64 x86_64 GNU/Linux What could be the problem here? Thanks for your help. cscope share|improve this question asked Jun 21 '12 at 6:11 Ashutosh 63 add a comment| 2 Answers 2 active oldest votes up vote 1 down vote I had the same problem. Mine got resolved when I found that the size of the "cscope.out" file was too LARGE(~2.5GB). Create a separate cscope DB for larger sub folders. And add all DBs separately using ":cs add ". Note: Reverse index(cscope -b -q) creates larger files. share|improve this answer answered May 29 '13 at 6:16 SkyCaptain 111 add a comment| up vote 0 down vote One of the cases where you encounter this error is: if you have a directory that has space(s) in the directory name (even in
| Threaded Open this post in threaded view ♦ ♦ | Report Content as Inappropriate ♦ ♦ error while adding cscope database Hi Vim'ers on my windows XP host i create a cscope datebase for my C project in c:\usr dir\mpm using command (on my cygwin shell) [/cygdrive/c/usr dir/mpm]$ cscope.exe -q -R -b and i open my gvim and cd to mpm directory and issue this :cs a ./cscope.out and i am getting this error E609: Cscope error: cscope: cannot read trailer offset from file .\cscope.out and if i try to specify the complete path i.e :cs a c:\usr dir\cscope.out i get this issue E563: static(c:\usr\) error: 2 well, its clear that this one is due to the space between usr http://stackoverflow.com/questions/11132481/cscope-cscope-error-cscope-cannot-read-list-size-from-file-cscope-out dir, can anyone please specify me how can i include a either space in path or the actualy solution to this problem Thanks Kapil -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php Gary Johnson-4 Reply | Threaded Open this post in threaded view ♦ ♦ | Report Content as Inappropriate ♦ ♦ Re: error while adding cscope database On 2010-07-15, http://vim.1045645.n5.nabble.com/error-while-adding-cscope-database-td1202525.html kapil upadhayay wrote: > Hi Vim'ers > > on my windows XP host i create a cscope datebase for my C > project in > c:\usr dir\mpm using command > (on my cygwin shell) > > [/cygdrive/c/usr dir/mpm]$ cscope.exe -q -R -b > > and i open my gvim and cd to mpm directory and issue this > > :cs a ./cscope.out > > and i am getting this error > > E609: Cscope error: cscope: cannot read trailer offset from file > .\cscope.out According to a brief Google search for that error message, the problem is that cscope can't handle paths containing spaces. If that's the case, then one solution would be to find a point in your project tree below which there are no file names containing spaces and build a cscope database with relative file names from that directory. Unfortunately, that would require that Vim's working directory always be the directory from which you ran cscope. A workaround to that _might_ be to add the cscope database with the pre-path option, in the hope that cscope handles spaces in its -P option better than it handles them in the database file. > and if i try to specify the complete path i.e > > :cs a c:\usr dir\cscope.out > > i get this issue E563: static(c:\usr\) error: 2 > > well, its clear that this one is due to the space betwee
Brought to you by: broeker, jcduell, nhorman Summary Files Reviews Support Wiki Mailing Lists Tickets ▾ Bugs Feature Requests Support Requests Patches News Code Create Ticket View Stats Group Searches Changes Closed https://sourceforge.net/p/cscope/bugs/89/ Tickets Open Tickets Help Formatting Help #89 Cscope/cygwin aborts if invoked with -d Status: closed-fixed Owner: Hans-Bernhard Broeker Labels: None Priority: 5 Updated: 2004-01-30 Created: 2002-06-19 Creator: Anonymous Private: No I am trying to use cscope version 15.3 on cygwin. I was able to compile and run it. I wanted to use cscope with vim. But when I tried to use it with vim, vim gave cannot read an error that it can not establish the connection. It seems that vim invokes cscope with "-dl" option. When I tried to invoke cscope with -d option from cygwin shell, it gave the following error: cscope: cannot read list size from file cscope.out This seems to be because of some file i/o error. ( May be some conversion issue ) The main problem is that cscope error cscope it makes cscope unusable with vim on cygwin. Discussion Hans-Bernhard Broeker - 2002-06-20 assigned_to: nobody --> broeker If you would like to refer to this comment somewhere else in this project, copy and paste the following link: Hans-Bernhard Broeker - 2002-06-20 Logged In: YES user_id=27517 By all means try the current CVS sources. Esp. in the area of DOS/Windows line-end handling, quite a lot has changed since 15.3. If it still doesn't seem to work, please include the setting of your Cygwin mount options (binary? automode? text?), as reported if you type mount at the Cygwin Bash prompt. If you would like to refer to this comment somewhere else in this project, copy and paste the following link: Nobody/Anonymous - 2002-06-20 Logged In: NO I tried the current cvs version. When I was compiling it gave me the following error: In file included from /usr/include/fcntl.h:14, from vp.h:47, from build.c:46: /usr/include/sys/fcntl.h:51: warning: `O_BINARY' redefined global.h:123: warning: this is the location of the previous definition /usr/include/sys/fcntl.h:52: warning: `O_TEXT' redefined global.h:115: warning: this is the location of the previous definition After installing it, I rebuilt symbol reference file again. When I tried to invoke it with -d,