New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Backtrace when upgrading to 0.10.0 #1406
Comments
Ouch. Does that only happen when upgrading from 0.9.13? I haven't been able to reproduce so far, but that might be because I haven't had that version installed for a long time. ;( |
I've also tried e.g. customizing |
Also tried installing from https://elpa.gnu.org/packages/company-0.9.13.tar.lz (using |
I can reproduce this in an Emacs session using my init file (i.e. with company-0.9.13) by evaluating: (load "/Users/foo/.emacs.d/elpa/company-0.10.0/company") But I can't reproduce it in |
Aha, so I can reproduce it in (progn
(load "/Users/foo/.emacs.d/elpa/company-0.9.13/company")
(load "/Users/foo/.emacs.d/elpa/company-0.10.0/company")) So there does seem to exist some unusual interaction between the two versions. EDIT: Here's the backtrace:
|
Okay, I see the problem: inside diff --git a/company.el b/company.el
index 6b00430..ee9cee5 100644
--- a/company.el
+++ b/company.el
@@ -702,15 +702,18 @@ commands in the `company-' namespace, abort completion."
(defun company-custom--set-quick-access (option value)
"Re-bind quick-access key sequences on OPTION VALUE change."
- (when (boundp 'company-active-map)
- (company-keymap--unbind-quick-access company-active-map))
- (when (boundp 'company-search-map)
- (company-keymap--unbind-quick-access company-search-map))
+ ;; When upgrading from an earlier version of company, might not be.
+ (when (fboundp #'company-keymap--unbind-quick-access)
+ (when (boundp 'company-active-map)
+ (company-keymap--unbind-quick-access company-active-map))
+ (when (boundp 'company-search-map)
+ (company-keymap--unbind-quick-access company-search-map)))
(custom-set-default option value)
- (when (boundp 'company-active-map)
- (company-keymap--bind-quick-access company-active-map))
- (when (boundp 'company-search-map)
- (company-keymap--bind-quick-access company-search-map)))
+ (when (fboundp #'company-keymap--bind-quick-access)
+ (when (boundp 'company-active-map)
+ (company-keymap--bind-quick-access company-active-map))
+ (when (boundp 'company-search-map)
+ (company-keymap--bind-quick-access company-search-map))))
(defcustom company-quick-access-keys '("1" "2" "3" "4" "5" "6" "7" "8" "9" "0")
"Character strings used as a part of quick-access key sequences.
I still cannot reproduce it myself: with Emacs built either from |
I can confirm that the patch fixes the bug. |
The last question had a simple answer: the error is inside Error in package--load-files-for-activation: (void-function company-keymap--unbind-quick-access) @skangas Any chance you were running with |
Thanks for verifying, I've tagged a new release. |
Yes, I was.
Thanks for the fix! |
Output of the command
M-x company-diag
Emacs 30.0.50 (x86_64-apple-darwin21.6.0) of 2023-10-03 on Newton.local
Company 0.9.13
company-backends: (company-bbdb company-eclim company-semantic company-clang company-xcode
company-cmake company-capf company-files
(company-dabbrev-code company-gtags company-etags company-keywords)
company-oddmuse company-dabbrev)
Used backend: company-dabbrev
Major mode: fundamental-mode
Prefix: nil
Completions: none
Describe the issue
I got a backtrace when upgrading from 0.9.13 to 0.10.0.
Steps to reproduce
Go to the
*Packages*
buffer, hitU
, thenx
, theny
.Expected behavior
The package upgrades fine.
The error backtrace
The text was updated successfully, but these errors were encountered: