~l3kn

https://www.leonrische.me

Trackers

~l3kn/org-fc

Last active 7 months ago

#43 org-fc/awk/utils.awk not working on windows 26 days ago

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.

#43 org-fc/awk/utils.awk not working on windows 26 days ago

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 with org-fc-awk-..., otherwise (require 'org-fc-awk) might fail for some reason.

#43 org-fc/awk/utils.awk not working on windows 26 days ago

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 and grep, 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))

#43 org-fc/awk/utils.awk not working on windows 26 days ago

on ~l3kn/org-fc

"~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".

#43 org-fc/awk/utils.awk not working on windows 27 days ago

Comment by ~l3kn on ~l3kn/org-fc

Are you seeing any error messages or did it just stop working?

#43 org-fc/awk/utils.awk not working on windows 5 months ago

Comment by ~l3kn on ~l3kn/org-fc

Nice that you got it to work!

I now have access to a windows computer and once I have set up Emacs, I can try to reproduce these bugs.

Regarding the error message you're seeing, something similar seems to happen in the org-fc-cache-hashes function when it's used with directories that contain no flashcards. In your case, there are probably some of these in your org-fc-directories list.

#43 org-fc/awk/utils.awk not working on windows 6 months ago

Comment by ~l3kn on ~l3kn/org-fc

If the review history shows up in the dashboard, we at least know that awk is working, maybe there's some issue with find?

The way you are rewriting org-fc-awk--find the paths argument is never used but if the path you set manually is correct, running (org-fc-awk--find '()) by itself should return some list of files.

Will org-fc-awk--pipe work with your redefined commands? It just inserts | characters between the individual arguments so there's a chance that while your overwrites work individually, they won't work when combined by these |.

#38 Support non gawk indexer 7 months ago

Comment by ~l3kn on ~l3kn/org-fc

Currently I have some code that can find all flashcards in a single file.

How many files are you working with? At some point performance will become a problem because opening each file, enabling org-mode and parsing it in Emacs is rather slow.

A variant that allows reviewing only the current buffer would be much easier to implement. Would that already be useful for you or do you want to work with collections of cards spanning >10 or >100 files?

For encrypted files, reviewing them one-by-one (a new review for each buffer) might be the only option.

#43 org-fc/awk/utils.awk not working on windows 7 months ago

Comment by ~l3kn on ~l3kn/org-fc

Where did you get your version of unxutils and when was it last updated? https://en.wikipedia.org/wiki/UnxUtils says it hasn't been updated in 10 years.

#43 org-fc/awk/utils.awk not working on windows 7 months ago

Comment by ~l3kn on ~l3kn/org-fc

If I remember correctly, there are people using org-fc on Windows with MYSYS.

Alternatively if you're not using symlinks, you can remove the "- L" from the find command. As for gawk and srftime, if you want something that works right now, you can just remove the , 1) in the two places it's used in utils.awk and index.awk. Depending on your timezone, that will mess the review statistics in the dashboard but there should be no other effect on org-fc.

Removing strftime from the awk code would have some other benefits but I'm not sure when I'll find the time to look into that.