Skip to content
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

Support newest consult, including breaking API change #47

Open
phaer opened this issue Jan 7, 2025 · 9 comments
Open

Support newest consult, including breaking API change #47

phaer opened this issue Jan 7, 2025 · 9 comments

Comments

@phaer
Copy link

phaer commented Jan 7, 2025

Is your feature request related to a problem? Please describe.

I was about to test-drive consult-omni for my needs, as it looks like a very promising package.

Turns out my current consult is just a bit too recent for this, as there's been a breaking API change earlier today: https://github.com/minad/consult/blob/main/CHANGELOG.org#development

Describe the solution you'd like

I'd like to be able to run consult-omni with the latest consult

Additional context

@armindarvish
Copy link
Owner

@phaer Yes, I am aware of this, but it would take some time before I can update consult-omni and adapt to new changes. For now, you can use consult's stable release version 1.9:
https://github.com/minad/consult/releases/tag/1.9

@rileyrg
Copy link

rileyrg commented Jan 19, 2025

Just a wave here : same issue. So aborting testing consult-omni. I tested briefly with consult 1.9, ran consult-omni entered a phrase, hit return and got "apply: Args out of range: [], 0", so will revert to elpa consult.

@armindarvish
Copy link
Owner

@rileyrg Sorry for the delay, there are a bunch of breaking changes that require some redesign of consult-omni. So, this can take a while!

@rileyrg
Copy link

rileyrg commented Jan 21, 2025 via email

@armindarvish
Copy link
Owner

I just wanted you to know the version recommended didn't just
work.

Not sure what you mean by vesion recommended. Unless you need the new changes in consult API, you can always use consult version 1.9 (which is the latest stable consult) and that should work.

Other than that, just check back later.

agzam added a commit to agzam/.doom.d that referenced this issue Jan 28, 2025
I can't wait any longer for Armin to catch up with consult breaking
changes

He needs to address armindarvish/consult-omni#47 sooner, all other
consult packages seem to be caught up. I can't keep it pinned on the
old version of consult, then I'd have to pin every single other
package that depends on Consult.

For the time being I'll have to live without conveniently searching
for things with consult-omni
@bard
Copy link

bard commented Feb 1, 2025

I wanted to try consult-omni, but it appears that consult 1.9 is no longer available. With consult 2.0, and installing consult-omni with use-package, I get a rather unhelpful ⛔ Error (use-package): Cannot load consult-omni on startup.

@armindarvish
Copy link
Owner

I just pushed an update to the develop branch that should work with the new consult API.

Note that this is likely going to be buggy right now and would need clean up, but it is a starting point. Because I am hacking consult to its core in this packaage, there are many points things can break and I need time to flush it all out. But the main things should work for now, so please test the develop branch and let me know the issues you encounter.

@agzam
Copy link

agzam commented Feb 1, 2025

@armindarvish very cool, thank you very much, I'm sorry, I didn't mean to nudge you about it, getting passive-aggressive like that, you don't owe us a single minute of your life - I honestly didn't realize that adding a reference in a commit message I made for my own posterity would be thrown at you like that.

I just tried the update - basics appear to work, only Google and YouTube sources are not yielding any results for me.

@armindarvish
Copy link
Owner

@agzam Not at all. Feel free to nudge. I am perfectly capable of ignoring things when I don'r have time.

only Google and YouTube sources are not yielding any results for me.

Hmmm, That's weird. It is working for me. Now it's my turn to make work for you ;D. Can you please share your consult-omni config? and also do:

(setq consult-omni-log-level 'debug)

and share the content of the log buffer (buffer name is stored in consult-omni-log-buffer-name).

In addition try single source commands (e.g. consult-omni-google, consult-omni-youtube) and let's see if that works!

Make sure you pull the latest from develop branch just to make sure we are on the smae commit. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants