amake / orgro

An Org Mode file viewer for iOS and Android
https://orgro.org
GNU General Public License v3.0
452 stars 21 forks source link

Cannot open file when using FE File Explorer app on iOS #55

Closed permezel closed 1 year ago

permezel commented 2 years ago

image

I can access the file with no problems using other apps. Using FE app, I have attached my NAS drive using SMB, and I can navigate to nas::/home/Documents/org/ where the file(s) exist, but selecting the 'japanesetest.org' throws the error.

image

image

amake commented 2 years ago

Thanks for the report. I've never used FE File Explorer.

I installed FE File Explorer from the app store (free version) and connected it to my NAS. However it doesn't appear in the "locations" section of the file browser:

orgro-dropbox

Does it appear there for you? (Are you using FE File Explorer PRO and it's a pro-only feature?)

If it doesn't appear there for you, then how are you getting the file into Orgro?

Are you "sharing" from within FE File Explorer like below?

image

If so, I tried that but could not reproduce the issue (it opened fine in Orgro).

permezel commented 2 years ago

I envy you living in Japan.

How do you create the mini-movies?  I thought I was doing good with screen shots.

Anyway, see below….

On Fri, Dec 10, 2021 at 12:10, Aaron Madlon-Kay @.***> wrote:

Thanks for the report. I've never used FE File Explorer.

I installed FE File Explorer from the app store (free version) and connected it to my NAS. However it doesn't appear in the "locations" section of the file browser:

Does it appear there for you? (Are you using FE File Explorer PRO and it's a pro-only feature?)

Here is how it looks for me, using the Files App: [image.png]

If it doesn't appear there for you, then how are you getting the file into Orgro?

Are you "sharing" from within FE File Explorer like below?

If so, I tried that but could not reproduce the issue (it opened fine in Orgro).

I did that, and yes, that worked.  See below.  You render this file beautifully.  Been beta-testing PlainOrg. It initially had issues opening files which were FE-based but has now fixed that, but completely misses on rendering the japanesetest.org file.

[image.png]

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.[https://github.com/notifications/beacon/AARU5FCIXKSD553QK3GDPFTUQFOQJA5CNFSM5JX7SA42YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOHMFGCEQ.gif]

amake commented 2 years ago

How do you create the mini-movies?

I used QuickTime Player's video recording function, then converted it to GIF somehow (I forgot; maybe ImageMagick?).

Anyway, see below….

Unfortunately, email attachments don't show up in GitHub; the only way to add images is to use the web interface :(

permezel commented 2 years ago
 If it doesn't appear there for you, then how are you getting the file into Orgro?
 Are you "sharing" from within FE File Explorer like below?

 If so, I tried that but could not reproduce the issue (it opened fine in Orgro).

Here is how it looks for me, using the Files App: image

 If it doesn't appear there for you, then how are you getting the file into Orgro?
 Are you "sharing" from within FE File Explorer like below?
 If so, I tried that but could not reproduce the issue (it opened fine in Orgro).

I did that, and yes, that worked. See below. You render this file beautifully. Been beta-testing PlainOrg. It initially had issues opening files which were FE-based but has now fixed that, but completely misses on rendering the japanesetest.org file.

image

amake commented 2 years ago

Thanks for the screenshots.

From the color of your icon, it looks like you have FE File Explorer Pro, not the free version. Maybe the file provider API is a pro-only feature?

amake commented 2 years ago

I've sent an inquiry to the developers of FE File Explorer.

permezel commented 2 years ago

I’ve been trying to figure out what the pro features get you, but docs are scant. The Pro version is pretty inexpensive.  Less than what I paid just now for your app…

Sent from ProtonMail for iOS

On Fri, Dec 10, 2021 at 13:16, Aaron Madlon-Kay @.***> wrote:

Thanks for the screenshots.

From the color of your icon, it looks like you have FE File Explorer Pro, not the free version. Maybe the file provider API is a pro-only feature?

You are receiving this because you authored the thread.

Reply to this email directly, view it on GitHub, or unsubscribe.[https://github.com/notifications/beacon/AARU5FBR4FKK3XO5DCW6ETTUQFWHFA5CNFSM5JX7SA42YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOHMFPCHQ.gif]

dragonwasrobot commented 2 years ago

Hi, I've just installed orgro on an iPhone XR iOS v15.3.1 and I'm getting a very similar error message to the original PlatformException(..., code= 260 "The file couldn't be opened because it doesn't exist.", null null).

However, my scenario is a bit different: I've got a tresorit account -> installed their iOS app -> added the tresorit file structure as a location in the standard Files app -> opened orgro and navigated to an org file in the tresorit location/file structure and then get the above error when trying to open the file.

I noticed a tiny difference between the tresorit location and the other locations when browing in orgro: when choosing tresorit there is a tiny text saying 'read only' below the 'X items' text at the bottom of the screen when in the 'list directory/files' view. Might be a hint to some permission issue?

I've also tried to see if the tresorit as a file location works in other applications and it doesn't seem like there is any issue if I want to say attach a file from tresorit to send in a Signal chat.

amake commented 2 years ago

@dragonwasrobot Thanks for the report.

I was able to reproduce the issue. The immediate cause is that this call to URL.bookmarkData(options:includingResourceValuesForKeys:relativeTo:) throws an exception.

I don't know why that is, but I don't think I have any control over it: as far as I know I'm doing everything correctly, so I suspect it has to do with the Tresorit app's implementation of the file access API.

If there is something I can do on my side then I will, but I don't know what.

amake commented 2 years ago

Ah, never mind, the problem was that I was trying to get a bookmark before ensuring that the file had been downloaded from the network.

I will have a fix in the next release.

amake commented 2 years ago

In the meantime, a workaround is probably to ensure that the file is available locally:

amake commented 2 years ago

Incidentally, I am currently unable to get new files added to Tressorit to show up in the file picker. Even entirely new Tressors don't show up. So there's clearly a lot of bugginess going on either on Apple's side or Tressorit's side.

Edit: They showed up only after rebooting my device 🤡

amake commented 2 years ago

A public beta of version 1.24.0 with a fix for the Tressorit issue (which might also address the FE File Explorer issue as well; I don't know, I couldn't test) will be available shortly.

dragonwasrobot commented 2 years ago

Wow! thanks for the quick reply and fix :)

amake commented 1 year ago

I still don't know what's going on with FE File Explorer, but I am going to close this as fixed. Please reopen if the issue still occurs.