-
Notifications
You must be signed in to change notification settings - Fork 1
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
disproject commands fail due to possible transient API change #4
Comments
Hello, thanks for the kind words :) I'm unfortunately not able to reproduce this on the latest transient commit. If I'm reading the error correctly, it looks like the Please try evaluating the following (e.g. by putting it in your scratch buffer and executing (cl-defmethod disproject-project-backend ((obj disproject-project))
"Return the OBJ project backend."
(if (slot-boundp obj 'backend)
(oref obj backend)
(oset obj backend (let ((instance (disproject-project-instance obj)))
(if (and (listp instance) (length> instance 1))
(nth 1 instance)))))) Does the same error still occur after evaluating this? It would also help to provide instructions for reproducing this through |
Hi @aurtzy, Thanks for the super quick reply. Evaluating the code block you provided fixes the error for me, thanks!
Let me know if this is enough for you to reproduce. If not, I'll help. |
Awesome. Yes, I see what's causing the issue -
Thank you for the report! Will push a fix shortly. |
This fixes an incorrect assumption that `project-find-functions` always returns a project instance in a consistent format. Instead of using `disproject-project-instance`, we specifically call `project-try-vc` in the root to get the backend. Resolves: <#4>
Hi,
Thanks for writing this package, it looks really cool.
I tried using it but running any disproject commands (e.g.,
M-x disproject-dispatch
) shows the error below for me. I suspect it might be due to changes in transient's API.Please let me know if I can give you more information.
Emacs
disproject
transient
The text was updated successfully, but these errors were encountered: