GNU bug report logs -
#38648
27.0.50; Emacs `compile' command does not handle remote (over TRAMP) file name correctly
Previous Next
Reported by: Fan Yang <Fan_Yang <at> sjtu.edu.cn>
Date: Tue, 17 Dec 2019 12:47:02 UTC
Severity: normal
Tags: fixed, patch
Found in version 27.0.50
Fixed in version 27.1
Done: Michael Albinus <michael.albinus <at> gmx.de>
Bug is archived. No further changes may be made.
Full log
Message #8 received at 38648 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Fan Yang <Fan_Yang <at> sjtu.edu.cn> writes:
Hi,
> Re-produce steps:
>
> 1. `find-file' to my project root directory on a remote machine,
> namely, "/scp:vm00:pmdk-balloon/".
> 2. `M-x compile', and give compile command "make".
> 3. (Previously I have injected some typos in some of my source files,
> say "obj.c").
> 4. In the *compilation* buffer, the "obj.c" file appears. But when I
> click the underlined text (or <RET> on it), an error occurs in the
> minibuffer:
>
> "Find this error in (default obj.c): /scp:vm00:/System/Volumes/Data/home/fan/pmdk-balloon/src/libpmemobj"
>
> The "/System/Volumes/Data/" is actually a path on my local machine.
> It appears that when compile.el was handling the remote path, it
> mixed-up part of my local machine path with the
> remote machine path, resulting the error.
>
> Then I find that in my environment, `(file-symlink-p "/home")' is
> evaluated to "/System/Volumes/Data/home". Now I stuck here since I know
> little about TRAMP and how a remote file path should be handled.
Could you pls check, whether the appended patch fixes the problem?
Best regards, Michael.
[Message part 2 (text/x-patch, attachment)]
This bug report was last modified 5 years and 157 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.