-
Notifications
You must be signed in to change notification settings - Fork 60
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
Can't get combobulate to work with load-path #119
Comments
I also have this problem. My experience here is that combobulate stopped working as of the more recent versions, and I can't work out how to make it work again. |
Clearly this third-party package manager does something different to the builtin use-package method of loading combobulate. Please use the provided example instead until I have time to look at a fix. |
This is not amazingly helpful, but the last working version i have pinned with straight is I can concur that i'm seeing this behavior too; C-c o o just doesn't exist as far as my emacs is concerned with:
|
i bisected it, though! c66d23d is the first bad commit; 573b74e works.
|
Thanks for bisecting! I've pinned to that version and I can use it again. I also asked about this in the doom discord, maybe someone will have some ideas. |
doom's a whole other ball of wax -- luckily, you can eliminate it from contributing here @mickeynp because I don't use it (but do see the same failure to recognize Possibly a useful bit of information: i can make the transient display on the latest commit -- by first manually launching |
Following up to confirm I'm happily combobulating again after pinning the commit @gvoysey bisected to. |
i had not realised quite how deeply it's gotten into my python workflow until it went on walkabout! so hats off to @mickeynp i think. |
Everything should work fine with |
I had a go at fixing this. Straight does something funny with autoloading that normal emacs does not do. I tried figuring out why, but I found its "documentation" inscrutable. The branch Here is the code I used to test: (straight-use-package 'use-package)
(use-package combobulate
:custom
;; You can customize Combobulate's key prefix here.
;; Note that you may have to restart Emacs for this to take effect!
(combobulate-key-prefix "C-c o")
:hook ((prog-mode . combobulate-mode))
:straight (el-patch :type git :host github :repo "mickeynp/combobulate" :branch "bugfix/fix-straight")) |
Can confirm everything works fine with instructions in the readme. Personally, I had just added: (add-to-list 'load-path (expand-file-name "~/.emacs.d/straight/repos/combobulate/combobulate.el"))
(require 'combobulate)
(add-hook 'prog-mode-hook 'combobulate-mode) To my config until this was resolved. Thanks for the amazing package!
I've tested the branch and it appears to work for me. Only just pulled the fix, but a few combobulate commands work as normal. My config now looks like (I've commented out the lines above for testing the fix): (use-package combobulate
:custom (combobulate-key-prefix "C-c b")
:straight (:type git :host github :repo "mickeynp/combobulate" :branch "bugfix/fix-straight")
:hook ((prog-mode . combobulate-mode))) Then, did a quick |
Hi Tomas, Thanks for testing. I see your straight example is different from mine. I am not a straight expert. If I were to include a straight example in the README, how would you write it so it's idiomatic straight? |
Personally, I think your example looks quite the same as mine. I do also have The only difference I see is in your recipe having So, I'd go with: (straight-use-package 'use-package)
(use-package combobulate
:custom
;; You can customize Combobulate's key prefix here.
;; Note that you may have to restart Emacs for this to take effect!
(combobulate-key-prefix "C-c o")
:hook ((prog-mode . combobulate-mode))
:straight (:type git :host github :repo "mickeynp/combobulate" :branch "bugfix/fix-straight")) (Without the |
I can confirm that the branch also works for me. |
Regular (non Straight) user here. I was also having the same issue and using this branch fixed it for me. I compile Emacs from source so I'm on version 31 using the new ":vc" use-package keyword. EDIT: Interesting, after about an hour of testing aroung my issue is a bit different now. When using the |
I had a similar problem but I use quelpa to install the fake combobulate package. The problem is that the generated Strangely it only fails when running the emacs GUI (on Mac in my case). It succeeds when running Emacs from inside a terminal ( The work around is to add |
Weird... Nice investigation, Malcolm. I am not an expert in autoloading at all. This points to transient being the source of the issue? |
The problem I'm having is a result of your merging in of the It's not really the fault of I recommend reverting that fix. The existing autoload tokens against I think that @rdeusser's original problem was caused by Your suggested config looks correct to me. My quelpa based config is similar:
However there remains the problem of ensuring that the language support is loaded before I recommend moving the |
Confirm that works: https://github.com/cxa/combobulate my config: (use-package combobulate
:vc ( :url "https://github.com/cxa/combobulate"
:rev :newest)
:custom (combobulate-key-prefix "C-c C-c")
:preface
(defun sloth/active-combobulate-on-ts-modes ()
(when (string-match-p "-ts-mode\\'" (symbol-name major-mode))
(combobulate-mode)))
:hook
(text-mode . sloth/active-combobulate-on-ts-modes)
(prog-mode . sloth/active-combobulate-on-ts-modes)) |
I could reproduce the autoload of @cxa, thank you for testing that it works. That is good to know. I will set aside some time to fix this good and proper using your proposed solution. Thanks again for your help, Malcolm! |
The difference is in the definition of the autoload for
This is the autoload that's used in the explicit load path case. It's actually wrong because If it's installed via a package manager (straight, quelpa, etc), then the package manager will generate a
This is loaded first and because That's why I recommend moving the |
I did not know that quelpa/straight formalised it as a package when it was retrieved through git. I figured it just checked it out and did little beyond that. That does explain a lot and qualifies why it behaves differently. Thanks! |
I've got this in my Emacs config:
After restarting Emacs when I press
C-c o
it says it's undefined. If I runcombobulate-mode
throughM-x
nothing happens. Even withtoggle-debug-on-error
turned on nothing happens. There's nothing in*Messages*
either. The only way I can get it to work is by doing this:but then I get a recursive load error in
*Message*
.Anybody know why this is?
The text was updated successfully, but these errors were encountered: