-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Alert Failed to access the selected file. #7
Comments
I just tried doing each of the following in turn, but got the same error as OP each time when trying to open file:
Starting to run out of ideas... |
Hi!
What kind of error do you see? Could you post a screenshot? There are no specific requirements, you can open any text file in Beancount Mobile. |
Wow, you guys are awesome. 😄 Thanks for super fast replies. Here is a screenshot: |
No, it did not. But I was able to browse, change folders, and select the file. Then that's when the error message popped up.
CyanogenMod version 12.1 (which is) |
https://developer.android.com/guide/topics/permissions/overview @TRSx80, maybe you have to enable the permissions manually, like so:
https://support.google.com/googleplay/answer/6014972?co=GENIE.Platform%3DAndroid&oco=1 |
Oh wait, I forgot, the Package Installer did ask for those permissions during installation! If I go in Settings -> Apps -> Beancount Mobile, and then scroll to the bottom, then yes I can confirm:
|
I tried to run the app in simulator and can confirm that it doesn't open the file on Android 5.1 |
I think it has something to do with the file picker library that we use. It can't pick the file from "SD card" location, but I was able to pick it from "Downloads" folder. @TRSx80 Alternatively, you can type/paste the path to the file directly into the input field on "Welcome" screen. However, I've noticed yet another bug: the side drawer is not working. |
OK, that actually worked! 😄 🎆 As soon as I typed the last letter of the correct file name, the "CONTINUE" button turned yellow, and I was able to press it, and my file opened! |
You mean the left side? It seems to work for me. To clarify, this is the functionality I get:
|
OK, but yeah, I can't seem to open / change file from the side menu. Is that what you meant? |
OK, further testing: I just tried to enter a transaction, I was able to enter everything (nice drop downs and completion, btw!) but then I couldn't save which I suppose I'm not surprised. Disk icon at top right maybe greyed out? I pressed 3x and no result. But my file is very big, and the app seemed a little slow. I did wait a while though because of this. Let me try again with a smaller file. |
OK, so this is weird. I was able to enter (and save) the transaction in my "smaller" file. Confirmed saved and synced back to my desktop here (the file is in a Syncthing folder). I opened it up back here on my desktop, and I can see the new transaction at the bottom. So, what are differences between "big file" and "small file"?
Let me know if there is anything else you want me to test. Also, would you like me to move this last bit into a new issue? Thanks guise! With these workarounds, I think this will already be usable for me! Cheers! 🍻 |
You should be able to change it on the 'Settings' page.
This means that some of the required fields are not filled (date, amount, currency, account 1, account 2) or that their values are not valid. Beancount Mobile doesn't show error messages yet, but I think it could be wrong amount (it must be positive and without spaces). The size shouldn't matter much. My beancount file is 279K and everything works smoothly.
Yes, let's start a new issue if the problem persists. 👍 |
The issue with filepicker library is probably not going to be fixed, so I just added a notice to the readme that Android 6.0 or later is recommended. |
FWIW, I have the same issue on Android 10 on my Pixel 4. Opening from Downloads works, same file from Documents/beancount (which is where I sync it to via Syncthing) does not. |
Hallo! Thanks for you work, and even more importantly, for sharing it! 🍻
I downloaded latest APK (v1.4.0) from Releases just now, synced it to my phone via Syncthing and installed it.
But when I try to open a beancount file, I got the error in the title. I tried opening first a previously existing (from cone)
file.txt
file, then I tried renaming it tofile.beancount
but that didn't work, either.I guess I will try some other things now, but I just thought I would drop you a line. Are there any other requirements? Should the first line of the file maybe be a mode line as shown in the pictures on the home page for this project?
The text was updated successfully, but these errors were encountered: