promptops / cli

um is a GPT-powered CLI assistant. Ask questions in plain English, get the perfect shell command.
https://promptops.com
GNU General Public License v3.0
122 stars 3 forks source link

README export uses `latin-1` encoding #16

Open seph-barker opened 1 year ago

seph-barker commented 1 year ago

I tried the functionality to have um upload by git repo's README's for indexing, which seems super useful. Unfortunately it fails because some of my READMEs have utf-8 characters in them and it expects latin-1.

I can't get the stacktrace for this anymore because I closed the tab. um seems to remember that it uploaded the READMEs and not try again, although they were not fully uploaded, so I can't recreate the error. (Is there some way to have it forget that it tried?)

jj-ctrlstack commented 1 year ago

I'm able to repro. All the discovered git roots are saved in ~/.promptops/index/git_roots.txt so if you want to get that dialog with the discovered README-s again you can remove the corresponding line. Definitely need to improve the UX with managing the roots!

seph-barker commented 1 year ago

Great, thanks for the tips on how to remove the reference to the repo. Appreciate it! BTW in addition to the UTF-8 thing I suggest not having it add the repo to that file if it encounters an error. :-)