CSCOPE ERROR: E429: File "path/to/file.c" does not exist

2,715 views
Skip to first unread message

newvimuser

unread,
Aug 13, 2009, 1:08:29 AM8/13/09
to vim_use
Hi,

1. I created a cscope.out file in my project root directory.
2. Next, set the CSCOPE_DB variable to that cscope.out file and
exported the variable.
3. Then, I go into a subdirectory and launch vim on a file in that
directory.
4. I execute "cs find 0 symbol" in that file and I get a list of
instances where this symbol is found.
5. When I select an instance and hit Enter, I get the following
error:
"E429: File "path/to/file.c" does not exist"

Can someone please help me out here.

Thanks.

wik

unread,
Aug 13, 2009, 5:05:20 AM8/13/09
to vim_use
Hello,

Could you send exact command you build cscope.files with?
I think problem in related pathes...

Possible solutions:
1. cwd current VIM directory to project directory, i.e. execute from
the vim's command line ":cd /home/you/projects/project" and try again;

2. use full path when building cscope.files, for example: find /home/
you/projects/project -name '*.cpp' > ./cscope.files

Thanks.

newvimuser

unread,
Aug 13, 2009, 5:51:42 AM8/13/09
to vim...@googlegroups.com

Hi,
I was not using absolute path when creating cscope.files. That was the
issue.
Thanks for your support.
--
View this message in context: http://www.nabble.com/CSCOPE-ERROR%3A-E429%3A-File-%22path-to-file.c%22-does-not-exist-tp24949959p24952104.html
Sent from the Vim - General mailing list archive at Nabble.com.

David Rong

unread,
Dec 26, 2014, 1:20:43 AM12/26/14
to vim...@googlegroups.com, utpal...@gmail.com
Do not set autochdir in your vimrc file.

Christian Brabandt

unread,
Jan 4, 2015, 5:27:55 AM1/4/15
to vim...@googlegroups.com
Hi David!

On Do, 25 Dez 2014, David Rong wrote:

> Do not set autochdir in your vimrc file.

Considering, that the original message is 4.5 years old, is this still a
problem, that occurs, when :set autochdir is set?

Best,
Christian
--
Eine Persönlichkeit ist der Ausgangspunkt und Fluchtpunkt alles
dessen, was gesagt wird und dessen, wie es gesagt wird.
-- Robert Musil

Yang Dongshan

unread,
Sep 6, 2017, 1:55:05 AM9/6/17
to vim_use
在 2015年1月4日星期日 UTC+8下午6:27:55,Christian Brabandt写道:
you may need to add "set cscoperelative" in your .vimrc file
Reply all
Reply to author
Forward
0 new messages