Comment by ~l3kn on ~l3kn/org-fc
REPORTED
RESOLVED CLOSEDAloha,
"~l3kn" outgoing@sr.ht writes:
I'm glad we found a workaround!
Me too :) back to learning comfortably!
Did you check org-mode versions before and after the update? Maybe there's some compatibility issue in org-fc that should be either fixed or mentioned in the readme.
M-: org-version' outputs
9.7.11'. I can't say if there is some latent incompatibility or just some strangeness on my end. If there's any Guix users who find this thread, useemacs-next' instead of
emacs' package.If you're happy with the current solution and if you can fix your other guix packages, we can also close this issue.
Yes, I am happy with the current solution. I agree to close this.
-- Mahalo
Comment by ~l3kn on ~l3kn/org-fc
I'm glad we found a workaround!
Did you check org-mode versions before and after the update? Maybe there's some compatibility issue in org-fc that should be either fixed or mentioned in the readme.
If you're happy with the current solution and if you can fix your other guix packages, we can also close this issue.
Comment by ~l3kn on ~l3kn/org-fc
Unfortunately I can't replicate the error you're seeing with an Emacs configuration that uses the same version of org-fc that's currently available on the main branch here. My Emacs version is 30.0.50 with org-mode 9.6.8 so this might be related to a difference in these versions.
To figure out where exactly this error happens, you can put your cursor on at the beginning of the heading of one of these cards and use
M-:
to run(goto-char (car (org-fc-review-data-position)))
. This should move your cursor to the:REVIEW_DATA:
part of the buffer.I suspect your org-fc is able to find the
:REVIEW_DATA:
drawer when searching for cards to review but not when it comes to updating it during a review but so far I have no idea why.Alternatively you could try to run the tests in the
tests/org-fc-review-data-test.el
file but those depend on an external packageel-mock
. With that installed you can load (e.g. execute-buffer) both thetests/org-fc-test-helper.el
file and the aforementioned review-data-test file, then run the tests withM-x ert
.The *.tsv file you deleted stored the history of your org-fc reviews (similar to a log of the review data for each position, combined with how you rated this position during reviews). It's not needed for org-fc to function and is just used for the review statistics in the dashboard.
Comment by ~l3kn on ~l3kn/org-fc
Can you recover the *.tsv file you deleted? I don't think it's related to the issue you're having and it might be useful to recover the state of a potentially broken card.
A card should have the following structure in your org files:
* Heading :fc: :PROPERTIES: ... :END: :REVIEW_DATA: | position | ease | box | interval | due | |----------+------+-----+----------+----------------------| | front | 2.35 | 6 | 87.54 | 2024-10-15T23:51:22Z | | back | 2.80 | 7 | 946.86 | 2027-02-23T12:02:59Z | :END:
Is only a single card affected or all cards? It is possible that you closed Emacs while the
REVIEW_DATA
part was being written and now it's in a state org-fc can't parse.Feel free to share the affected org file or sub-section where reviews fail in this way, then I can try to replicate your issue and test possible solutions.
Comment by ~l3kn on ~l3kn/org-fc
Is
org-fc-awk--find
among them? And if so, where is it defined? I checked the git history and this function has been in org-fc for some years now.
Comment by ~l3kn on ~l3kn/org-fc
The function should be defined here https://git.sr.ht/~l3kn/org-fc/tree/main/item/org-fc-awk.el#L41 and the org-fc-awk file should be loaded when loading org-fc (https://git.sr.ht/~l3kn/org-fc/tree/main/item/org-fc.el#L32)
I'm not sure if howm is the issue then.
C-h f
should show some functions starting withorg-fc-awk-...
, otherwise(require 'org-fc-awk)
might fail for some reason.
Comment by ~l3kn on ~l3kn/org-fc
If the dashboard works and shows some review statistics, we at least know that awk is working. Finding and processing files with flashcards requires
find
andgrep
, so there might be issues with those.A simple test is to check if the following gives you a list of files (or some error message that could help us debug this)
(shell-command-to-string (org-fc-awk--find org-fc-directories))
"~l3kn" outgoing@sr.ht writes:
Are you seeing any error messages or did it just stop working?
Sorry, for the late response and incorrect report in the first place.
Yes, I saw error messages. org-fc-dashboards is working although it shows zero cards and when I tried to execute org-fc-review-all it returns "No cards due to riview".