From: Lian Hung Hon <hon.lianhung@gmail.com>
To: 46203@debbugs.gnu.org
Subject: bug#46203: 28.0.50; flymake doesn't start in java-mode; here is debugger output
Date: Sun, 14 Mar 2021 12:43:55 +0800 [thread overview]
Message-ID: <CAB8ROFZP=H1VsrRsb0mjMCztA7ZvzdutvhRamyAJKY4tBUxdnw@mail.gmail.com> (raw)
In-Reply-To: <m2o8h5n00v.fsf@codeisgreat.org>
[-- Attachment #1: Type: text/plain, Size: 1113 bytes --]
In flymake-proc.el:
(defun flymake-proc--delete-temp-directory (dir-name)
"Attempt to delete temp dir created by
`flymake-proc-create-temp-with-folder-structure', do not fail on error."
(let* ((temp-dir temporary-file-directory)
(suffix (substring dir-name (1+ (length (directory-file-name
temp-dir))))))
(while (> (length suffix) 0)
(setq suffix (directory-file-name suffix))
;;+(flymake-log 0 "suffix=%s" suffix)
(flymake-proc--safe-delete-directory
(file-truename (expand-file-name suffix temp-dir)))
(setq suffix (file-name-directory suffix)))))
Line 901 should be
(let* ((temp-dir (file-truename temporary-file-directory))
This is because the default value of variable temporary-file-directory
might be abbreviated, so substring does not work correctly. For example, on
my system (Windows) the default value is
"c:/Users/HECTOR~1/AppData/Local/Temp/". It ended up trying to delete my
source directory (!), but fortunately permission is denied.
A workaround is to manually set temporary-file-directory in .emacs to the
correct full path.
Regards,
Hon
[-- Attachment #2: Type: text/html, Size: 1515 bytes --]
next prev parent reply other threads:[~2021-03-14 4:43 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-01-31 5:33 bug#46203: 28.0.50; flymake doesn't start in java-mode; here is debugger output Pankaj Jangid
2021-03-14 4:06 ` bug#46203: 28.0.50; flymake doesn't start in java-mode; here is debugger Lian Hung Hon
2022-06-14 13:25 ` bug#46203: 28.0.50; flymake doesn't start in java-mode; here is debugger output Lars Ingebrigtsen
2021-03-14 4:43 ` Lian Hung Hon [this message]
2022-06-14 13:28 ` Lars Ingebrigtsen
2022-07-12 13:49 ` Lars Ingebrigtsen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAB8ROFZP=H1VsrRsb0mjMCztA7ZvzdutvhRamyAJKY4tBUxdnw@mail.gmail.com' \
--to=hon.lianhung@gmail.com \
--cc=46203@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).