Bufler installation from MELPA fails with compilation error
ivanruski opened this issue · 8 comments
Hello,
I am using Emacs 27.1 on OSX and when I try to install bufler from MELPA I get the following error:
Compiling file ~/.emacs.d/elpa/bufler-20210907.1145/bufler-workspace-tabs.el at Sat Oct 30 21:21:13 2021
bufler-workspace-tabs.el:70:34:Error: Recursive ‘require’ for feature ‘bufler-workspace’
Then when I try to turn on bufler-mode
I get Recursive load
error.
And if I remove the require on line 70 in bufler-workspace-tabs.el
it works.
Is this the recommended approach or there might be a problem on might side ?
Hello @ivanruski ,
Does this still happen? Since you closed this issue without comment, I don't know if the problem is solved. Testing just now in a clean config, I'm unable to reproduce it, but since others have mentioned it and since configurations can vary wildly, I'd like to know if it's still happening to you before closing this as solved.
Same problem:
Compiling internal form(s) at Mon May 2 19:44:06 2022
Leaving directory ‘/tmp/tmp.VMnweJqivA/elpa/bufler-20210907.1145’
Compiling file /tmp/tmp.VMnweJqivA/elpa/bufler-20210907.1145/bufler-group-tree.el at Mon May 2 19:44:06 2022
Entering directory ‘/tmp/tmp.VMnweJqivA/elpa/bufler-20210907.1145/’
Compiling file /tmp/tmp.VMnweJqivA/elpa/bufler-20210907.1145/bufler-workspace-tabs.el at Mon May 2 19:44:06 2022
bufler-workspace-tabs.el:70:34: Error: Recursive ‘require’ for feature ‘bufler-workspace’
Compiling file /tmp/tmp.VMnweJqivA/elpa/bufler-20210907.1145/bufler-workspace.el at Mon May 2 19:44:06 2022
Compiling file /tmp/tmp.VMnweJqivA/elpa/bufler-20210907.1145/bufler.el at Mon May 2 19:44:06 2022
bufler.el:769:42: Warning: Unused lexical argument ‘depth’
(PS reproduced using with-emacs.sh thanks!!)
On Arch/AUR emacs version:
local/emacs-git 28.0.50.145041-1
GNU Emacs. Development master branch.
Not sure of the exact origin of the problem, but I could work around by replacing eval-when-compile
(bufler-workspace-tabs.el:39) with cl-eval-when (compile)
.
(I noticed that the elisp manual says eval-when-compile
is like cl-eval-when (compile eval)
and guessed the fix was closer to the intended use?)
Hello @alphapapa I just tried installing bufler again with the following init.el:
(require 'package)
(add-to-list 'package-archives
'("melpa" . "https://melpa.org/packages/"))
(package-initialize)
and I got the same error:
Compiling file /Users/ivanruski/.emacs.d/elpa/bufler-20210907.1145/bufler-group-tree.el at Mon May 2 18:06:21 2022
Entering directory ‘/Users/ivanruski/.emacs.d/elpa/bufler-20210907.1145/’
Compiling file /Users/ivanruski/.emacs.d/elpa/bufler-20210907.1145/bufler-workspace-tabs.el at Mon May 2 18:06:21 2022
bufler-workspace-tabs.el:70:34:Error: Recursive ‘require’ for feature ‘bufler-workspace’
Compiling file /Users/ivanruski/.emacs.d/elpa/bufler-20210907.1145/bufler-workspace.el at Mon May 2 18:06:22 2022
Compiling file /Users/ivanruski/.emacs.d/elpa/bufler-20210907.1145/bufler.el at Mon May 2 18:06:22 2022
bufler.el:769:42:Warning: Unused lexical argument ‘depth’
I am using GNU Emacs 27.1 (build 1, x86_64-apple-darwin18.7.0, NS appkit-1671.60 Version 10.14.6 (Build 18G95)) of 2020-08-12
Having the same issue when installing from MELPA on GNU Emacs 27.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.24, cairo version 1.16.0) of 2021-03-27, modified by Debian.
Same issue when installing from MELPA on GNU Emacs 27.2 (build 1, x86_64-slackware-linux-gnu, GTK+ Version 3.24.27) of 2021-03-25
Fixed it for me
Thanks. Closing.