Linus-Mussmaecher / rucola

Terminal-based markdown note manager.
GNU General Public License v3.0
203 stars 3 forks source link

Files in vault_path not indexed #2

Closed jederik closed 3 months ago

jederik commented 3 months ago

Hello. I love the idea of Rucola and am very excited to try it but currently I can't due to the following issue:

I installed Rucola via Cargo on Ubuntu 23.10. However, when I specify a directory as the vault_path the files in the directory are not listed in the Select View. On the other hand, when I specify an individual file then this one file is listed but no others and trying to view it gives me a Not a directory (os error 20).

Hope this helps.

Linus-Mussmaecher commented 3 months ago

Hi. Obvious "this doesn't happen on my machine". Some things to check:

If all of this does not help, what happens if you pass the directory as a positional argument like rucola ~/MyNotes or rucola /home/linus/MyNotes instead of using the config file? Maybe that can help us track down the error.

Also report what happens when you do not specifiy a vault path in the config and simply open rucola with out any arguments in the folder you want to index.

The error if you pass a file seems acceptable by me - you are supposed to pass a directory.

jederik commented 3 months ago

Hey. Thanks for the quick reply.

I checked all of your points but none of them helped.

Definitely, pointing to a file doesn't make much sense but I thought it might give you a clue on what the problem is.

Linus-Mussmaecher commented 3 months ago

So I ran my own application with your exact config, only changing vault_path to a newly created directory (both as ~/TestNotes and /home/linus/TestNotes) I put 4 of my markdown files in. I also briefly wondered if maybe the lack of a .gitignore confuses the program. Sadly, I did not get your issue.

Internally, rucola uses the directory walker of ripgrep to index files. Can you maybe check if ripgrep itself works correctly on your machine? Otherwise I will maybe run up a Ubuntu virtual machine (most of my testing has been on Arch/EndeavourOS as that's what I'm using as a daily driver) and see if I can replicate the problem.

jederik commented 3 months ago

Arrrg... I had a .gitignore in the parent folder. Sorry, for the trouble and thanks for your effort.

Linus-Mussmaecher commented 3 months ago

Glad to hear you got it resolved!

If you have any more issues or feedback, don't hesitate to tell me.