Open melhindi opened 1 year ago
I can reproduce this with my setup so I doubt it is due to your custom folder. I'll have a look at it.
It looks like the issue is that self.window.select
returns [-1] when there are no documents
This should be fixed in latest master branch. Could you test it?
I just tried:
1) Remove my previous package based installation
2) Create a new tmp folder and a python3 venv
3) Activate the venv and clone the repository
4) run pip3 install .
inside the repo (this also downloads the papis dependency)
5) run papis rofi
And can confirm that the program does not crash anymore. However, it simply quits. In case it is easy to add, it would be great to see an info message, like "No libraries found" or so. But I am fine with closing the issue since it addresses the previously reported error message.
I just installed papis and papis rofi and tried to run it without doing anything else. When I open papis rofi and then press Alt-u to browse the librar, I get the following error:
This is how my config looks like (default config after installing papis):
It turns out that I have a custom folder with the exact same name that is not a papis library. The same behavior is observable for an empty folder. The papis cli tool handles this gracefully, ie., it does not crash. However, papis-rofi crashes as shown above. I guess simply a check for a valid papis library is missing here?