-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"<file> is not readable or exists" when using xcscope over TRAMP #20
Comments
Hi. Thanks for the report. I'm somewhat mystified by this. xcscope has worked with TRAMP for years, and I use it this way all the time. Let's try to figure out what's going on before patching this. First off, can you confirm that you're running xcscope.el from this repo (or from Debian or Ubuntu)? The copy the cscope project ships is ancient, and does not work with TRAMP. If so, let's look at the properties on your end. In your A new window will open up, telling you things. Towards the end it should say something like
Do you see that? Specifically, the |
I see. I guess this issue is related to how the cscope database is generated. I use In this case, Line 2377 in 57bff67
Therefore, my fix #21 does not work either. It only works when the file names are absolute. For relative file names, it produces " |
OK. What does |
Sorry for insufficient information.
The
|
Please try this patch:
|
OK, it fixes this issue. |
Apparently this wasn't working if using absolute file names. Closes: #20
When using xcscope over TRAMP, the database can be found and the query results shown correctly. However, the results cannot be jumped to with a message "
<file> is not readable or exists
". It seems that xcscope tries the filename on my local machine.More specifically,
/scp:val17:/home/yf/src/qemu-git/migration/ram.c
.cscope-find-global-definition
to find the definition ofmemory_global_dirty_log_start
*cscope*
buffer showed the global definition correctly/home/yf/src/qemu-git/memory.c is not readable or exists
It seems that xcscope tried the filename (
/home/yf/src/qemu-git/memory.c
) on my local machine instead on remote.The text was updated successfully, but these errors were encountered: