-
Notifications
You must be signed in to change notification settings - Fork 109
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
helm-org-ql: void-function peg-parse-string #75
Comments
Hi Karl, Just FYI, That error indicates that the |
By the way, you might find this script helpful for testing Emacs in a clean configuration: https://github.com/alphapapa/alpha-org/blob/master/emacs-sandbox.sh |
You're a true Emacs wizard. I used your script to remove org-sidebar, org-ql, and peg. Out of curiosity I just re-started Emacs to find out if use-package is able to install it cleanly this time. And yes, it works now, even solves #76 as you already knew. Related to your FYI: I already knew that use-package with Thanks for your explanations! |
I'm a noob compared to the real wizards. ;)
Great!
I don't know what the problem was, but chances are it was due to outdated packages with stale .elc files that Emacs was loading in preference to the newer versions; it's a common issue. Or perhaps one of the packages failed to install at some time in the past, and it wasn't noticed until now. Deleting old versions and installing newer ones usually fixes things like that. If that happens again, it may indicate a kind of configuration problem. You might want to redo the part of your config that configures the package system,
The least I can do for someone like you who contributes so much to the Emacs/Org community! |
Something's fishy here. I get this again:
I get rid of Could it be related to the order I load the packages? I committed my recent changes, if you need to take a look: https://github.com/novoid/dot-emacs/blob/master/config.org Having re-started my emacs for a couple of hundred times today, I'm happily volunteering in debugging this, if this helps. |
When exactly does the error appear? Simply after restarting Emacs, without actually doing anything in Emacs?
Probably, yes. Try loading |
As a blind shot, could you try setting load-prefer-newer to t before (package-initialize)? |
I am also having the same problem. I tried both use-package to install and then installing it manually via
|
I have verified, again, that
(let ((org-agenda-custom-commands
'(("a" ""
((org-ql-block '(and
(tags "Emacs")
(priority "A"))
((org-ql-block-header ":Emacs: High-priority"))))))))
(org-agenda nil "a")) Output:
If it doesn't work properly in your system, you either have a configuration error or the package is not installed correctly. |
Here to report that I am facing the same issue. I am running spacemacs on Emacs 27. When I install the package, the autoloads seem to work properly. But once I restart Emacs, and run my agenda, I get I'll try to debug and see whats causing the issue. |
Hey, so I reinstalled my OS recently, freshly cloned my emacs setup and the I investigated a bit and it seems that in the most recent version of peg this function was moved to peg-tests.el. I even tried After digging a bit more, it seems that org-ql requires 0.6, whereas in my Doom package has the version 1.0. Not sure if Doom is to blame -- frankly I don't know much about Emacs packaging -- does "0.6" mean minimum version, or exact version? Elpa only has 1.0 (does it keep the history at all?), and the oldest commit in the emacs-straight mirror is 0.7. Not sure where to get 0.6, but I tried using 0.7 and it seems to work! |
@karlicoss Thanks, I think I see the problem now. The macro Normally this problem would be detected by my testing in a clean Emacs configuration. However, when I follow these steps in a clean config:
The macro I wish that function hadn't been moved to the test file, but it should be a simple fix to implement its equivalent in this package, which should fix the problem. Thanks for following up with those details. |
Unfortunately, the macro was moved from peg.el to peg-tests.el in later versions of peg, so we copy it for our use here. Fixes #75. Thanks to Karl Void (@novoid) and @karlicoss for reporting. Released as 0.4.6.
@novoid @karlicoss I think that should fix it. I tested manually in a clean configuration (keeping in mind the issues I mentioned), and it seems to work properly. Please let me know how it works for you. |
Unfortunately, the macro was moved from peg.el to peg-tests.el in later versions of peg, so we copy it for our use here. Fixes #75. Thanks to Karl Voit (@novoid) and @karlicoss for reporting. Released as 0.4.6.
I currently can not reproduce the issue since my I can't use my previous workaround with re-installing |
@alphapapa thanks, pulled your latest change and it worked! 👍 |
It's getting confusing discussing this problem in two issues. I suspect your problem may be fixed by the fix to this issue, but let's discuss your problem in #129. |
Purging my packages and re-installing them from scratch, pulling the updates solved the issue on my side. Thanks for your help! |
After installing
org-ql-20191207.408
via use-package (yes, I switched from GitHub version to use-package because of list of dependencies) I get this when invokinghelm-org-ql
:Initial tests of
org-ql-search
do seem to work though.Some package versions I do think might be involved:
The text was updated successfully, but these errors were encountered: