[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 4b77d8eb: * doc/faq.texi: Add FAQ entry for ELPA upgrade failure.
From: |
Ikumi Keita |
Subject: |
master 4b77d8eb: * doc/faq.texi: Add FAQ entry for ELPA upgrade failure. |
Date: |
Tue, 13 Feb 2024 04:42:25 -0500 (EST) |
branch: master
commit 4b77d8ebaac9b143cb3ff596ab04556621847455
Author: Ikumi Keita <ikumi@ikumi.que.jp>
Commit: Ikumi Keita <ikumi@ikumi.que.jp>
* doc/faq.texi: Add FAQ entry for ELPA upgrade failure.
---
doc/faq.texi | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 55 insertions(+)
diff --git a/doc/faq.texi b/doc/faq.texi
index 0fb58dd5..845164fc 100644
--- a/doc/faq.texi
+++ b/doc/faq.texi
@@ -13,6 +13,10 @@
@item
Something is not working correctly. What should I do?
+If you are having trouble with upgrading @acronym{ELPA} package, first
+have a look at the dedicated entry below. If that doesn't resolve your
+issue, then come back here and proceed.
+
Well, you might have guessed it, the first place to look is in the
available documentation packaged with @AUCTeX{}. This could be the
release notes (in the @file{RELEASE} file) or the news section of the
@@ -68,6 +72,57 @@ error. If everything is working now, you know that you have
to search
either in the site configuration file or your personal init file for
statements related to the problem.
+@item
+@acronym{ELPA} upgrade fails. What should I do?
+
+In general, @acronym{ELPA} upgrade can fail in a Emacs session you are
+running, especially when @AUCTeX{} major version increases. This entry
+covers the following cases in such casual upgrade.
+@itemize
+@item
+Upgrade stops with error and doesn't complete.
+@item
+Upgrade falls in infinite loop and doesn't terminate. You have
+to interrupt it with @kbd{C-g} and upgrade doesn't complete.
+@item
+It looks like upgrade finishes successfully but afterwards @AUCTeX{}
+breaks with mysterious error like:
+@example
+TeX-command-expand: Wrong type argument: stringp, nil
+@end example
+
+@end itemize
+
+These issues involve byte compilation failure. In the third case, the
+generated @file{.elc} files are actually corrupted. Thus the point is to
+have sane byte compilation.
+
+The first thing which is worth trying is:
+@enumerate
+@item
+Terminate the current running Emacs session and restart Emacs.
+@item
+Type @kbd{M-x package-recompile @key{RET} auctex @key{RET}}.
+@item
+Restart your Emacs again.
+@end enumerate
+
+If you are lucky enough, this will basically resolve the issue. There is
+still old @samp{auctex-X.Y.Z} directory left behind under
+@file{~/.emacs.d/elpa/}, so delete it manually to avoid future trouble.
+
+If the above prescription doesn't work, then try:
+@enumerate
+@item
+Uninstall @AUCTeX{} once.
+@item
+Restart your Emacs and (before doing anything else) reinstall @AUCTeX{}.
+@end enumerate
+
+In theory, this recipe will circumvent all caveats in @acronym{ELPA}
+upgrade of @AUCTeX{}. Find and delete old @samp{auctex-X.Y.Z} directory
+remaining under @file{~/.emacs.d/elpa/}.
+
@item
What versions of Emacs are supported?
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master 4b77d8eb: * doc/faq.texi: Add FAQ entry for ELPA upgrade failure.,
Ikumi Keita <=