unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: "Johann Höchtl" <johann.hoechtl@gmail.com>
Cc: 74202@debbugs.gnu.org
Subject: bug#74202: 31.0.50; package-el fails to delete outdated elpa packages
Date: Mon, 04 Nov 2024 15:11:51 +0200	[thread overview]
Message-ID: <86o72vuors.fsf@gnu.org> (raw)
In-Reply-To: <CAH4isRycB1NRK7OqV3a6Xsku2T5jUzFW8vO3GdmUOB8GzEXyTw@mail.gmail.com> (message from Johann Höchtl on Mon, 4 Nov 2024 09:06:12 +0100)

[Please don't change the Subject of the responses and followups.]

> From: Johann Höchtl <johann.hoechtl@gmail.com>
> Date: Mon, 4 Nov 2024 09:06:12 +0100
> 
> The full error message is:
> 
> Error when expiring the cache: (permission-denied Removing directory Permission denied
> c:/Users/HoechtlJ/OneDrive - WKO Online/Dokumente/.emacs.d/url/cache/HoechtlJ/https/org/gnu/www)

What is the Lisp code which triggers this error message?  IOW, please
show the Lisp code which "expires the cache".

> The directory unfortunately contains blanks, so it's possibly not a permission error at all but emacs actually
> trying to delete another directory but the one for which the error message gets printed?

Why would blanks in the directory name cause Emacs to try to delete a
different directory?  Emacs doesn't delete directories via the shell,
where this could be a problem, it deletes them by calling Windows
APIs.

Since this directory seems to be on OneDrive, I suspect that these are
not "normal" Windows files, but some kind of junction points or some
other filesystem wizardry that Emacs doesn't understand.  Please try
producing a standalone self-contained recipe for reproducing the
problem starting from "emacs -Q", preferably without installing any
ELPA packages.  Since the issue is with removing files from a
directory, presumably the problem has nothing to do with package.el
per se, but with basic file I/O, and so you should be able to find a
way of reproducing it by simply removing files from a directory,
perhaps if the directory is on OneDrive.





  reply	other threads:[~2024-11-04 13:11 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-04  8:00 bug#74202: 31.0.50; package-el fails to delete outdated elpa packages Johann Höchtl
2024-11-04  8:06 ` bug#74202: Addendum: full error message Johann Höchtl
2024-11-04 13:11   ` Eli Zaretskii [this message]
2024-11-04 13:37     ` bug#74202: 31.0.50; package-el fails to delete outdated elpa packages Johann Höchtl
2024-11-09 11:05       ` Eli Zaretskii
2024-11-04 13:01 ` Eli Zaretskii

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=86o72vuors.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=74202@debbugs.gnu.org \
    --cc=johann.hoechtl@gmail.com \
    /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).