Andersbakken / rtags

A client/server indexer for c/c++/objc[++] with integration for Emacs based on clang.
http://www.rtags.net
GNU General Public License v3.0
1.83k stars 254 forks source link

Emacs byte compilation failed #1368

Closed chep closed 4 years ago

chep commented 4 years ago

I compile myself emacs master branch and update my packages very often

I can't install rtags with my aur package manager (archlinux):

Symbol’s value as variable is void: ivy-completing-read-handlers-alist

This patch fixed it but I'm not sure if it can be used as-is:

From 4aa7307206c7d5c373f59fb5820e7b53bfb4871f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?C=C3=A9dric=20Ch=C3=A9pied?= <cedric.chepied@delair.aero>
Date: Tue, 14 Jan 2020 16:38:44 +0100
Subject: [PATCH] add ivy-completing-read-handlers-alist

---
 src/compile-shim.elisp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/compile-shim.elisp b/src/compile-shim.elisp
index 22509b6e..c8fa3231 100644
--- a/src/compile-shim.elisp
+++ b/src/compile-shim.elisp
@@ -15,6 +15,7 @@
   (defun ivy-state-current (&rest args))
   (defun ivy--get-window (&rest args))
   (defun ivy-state-buffer (&rest args))
+  (defvar ivy-completing-read-handlers-alist nil)
   (defun ivy-recursive-restore (&rest args))
   (defvar ivy-last nil)
   (defvar ivy-exit nil)
-- 
2.24.1

Environment (please complete the following information):

casch-at commented 4 years ago

This is how we fixed it in 132ab7ce.

Duplicate of #1359.