-
Notifications
You must be signed in to change notification settings - Fork 124
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
Org 9.6 and carryover weird behaviour #406
Comments
How strange. Does it happen with the default |
It is indeed the |
Forgot to ask, can you reproduce the error? |
I currently don't have much time to spare for open source development, and didn't try to reproduce the issue, sorry. It is probably relatively easy to filter down the carryover results, such that we only ever copy each block once. If you'd like to try implementing this as a pull request, I'd be grateful for the help! |
Fair enough. |
I was unable to reproduce this error. I wrote this as an
|
@mrvdb I take back my "cannot reproduce" comment. Was using org 9.5.5. When I ensured that 9.6 was installed and being used by ERT, I'm getting several errors from the test suite, not just the carryover case. Not sure what is going on. Command line to run the test suite:
|
ERT results:
The common error in my ert results, at least for the carryover related tests seems to be:
|
It might be extremely useful to incorporate these ERT tests into the Github CI. |
Yes, confirming that I can reliably get those same test failures. This is definitely caused by new behavior in org 9.6, some missing values that are expected by functions in |
How can I help get this resolved? |
We'd need someone to contribute a pull request that fixes the issue. If you'd like to take a stab at that, we'd be happy to review and merge it! |
Some extra info: git bisecting (orgmode repo) with my journal files showed
Using that info, a workaround for the issue is to set |
Great work! Thank you for figuring this out! Would you like to contribute the workaround to the README? Probably somewhere near the top, so as to warn users of this issue in Org 9.6. |
[Bastian Bechtold]:
Would you like to contribute the workaround to the README?
Probably somewhere near the top, so as to warn users of this
issue in Org 9.6.
That's probably a good idea, I'm also checking if it is an option
to wrap the 'carryover'; disabling the cache or invalidating some
parts of it.
I can imagine the carryover should be a cache-invalidating
operation, but I am not familiar enough with the org code to say
for sure.
|
Add note for issue #406 in README.org
We could maybe call |
thanks for updating the readme, saved me a couple hours of debugging, and assuring my self I was sure it worked before. |
Is this issue still present with org 9.7? |
Since disabling the cache it has been a workable situation for me. Sporadically I get a repeat of the I have upgraded to |
Haven't seen it for a week now with caches enabled. see bastibe/org-journal#406
I'm considering this issue resolved from my point of view. ERT tests all succeed, I can't reproduce the problems anymore using org 9.7 and later and the cache setting is not needed anymore from what I can see. |
I've recently upgraded my
org
package to 9.6 from 9.5.5 andorg-journal
carryover functionality started to behave erratically. Reverting backorg
solves the issue, so my hunch was some changed function behaviour that needed adaptation inorg-journal
. So far I haven't been able to figure it out.My minimal case which shows the problem:
org 9.6
andorg-journal
(git head) with straight (no extra config)org-journal
in use:Testfile 20221216.org (previous day):
With this config, I ran
org-journal-new-entry
Contents of 20221217.org:
and an error message gets logged:
org-journal-delete-old-carryover: Args out of range: #<buffer 20221216.org>, 29, 146"
Depending on the test file the carryover items which get in the new file is different. I have not been able to spot a clear pattern yet. It seems to double the main headline in any case with different items below it.
The text was updated successfully, but these errors were encountered: