terrychou / iVim

A vim port to iOS.
598 stars 35 forks source link

Auto-restore purchase broke the app #204

Open johnrobertlawson opened 3 years ago

johnrobertlawson commented 3 years ago

I have just purchased the auto-restore function. As soon as it was enabled, the iVim app crashed and will not open again. I was using it in multi-window with another app (Textastic). Do you think it may be an issue with the same file being open (or cached) on either/both app simultaneously in split view? I would hope this isn't a problem, as I prefer to write in Vim but to use Textastic to review other code I'm basing my new code on. Thanks.

terrychou commented 3 years ago

I am not sure what was the cause of this crash. However, to open iVim again, could you please:

1) disable the auto-restore 2) open iVim 3) re-enable the auto-restore again if the above step works

If all the above steps work, then please try to use it in your daily workflow to see whether it works (now the auto-restore is enabled).

johnrobertlawson commented 3 years ago

Hello again,

Sadly, no: iVim simply refused to open, crashing immediately.

My next steps were:

So the final piece of the puzzle I can't check right now is whether auto-restore will now work the next time the system takes iVim out of memory. I will report back. Thanks for your help.

johnrobertlawson commented 3 years ago

Update: nope. iVim continues to crash, and it's very hard to reproduce. Any further steps to try? I am also having no luck at all changing fonts despite successfully loading font files and then getting to the font selection screen. However, picking a font from there doesn't make a difference: it starts as Source Code Pro.

terrychou commented 3 years ago

You don't have to uninstall iVim to disable auto-restore. In the Settings.app, you can easily switch it on or off. (see ":h isettings").

Does this happen only in the "iVim and Textastic" combination, or all "iVim in split-screen" cases? Does it work when put iVim in its single-app mode (non-split)? It is difficult for me to tell the real cause if I cannot re-produce it on my end.

As to the font setting, please use the command ":ifont" (see ":h :ifont") to set fonts in iVim. When auto-restore is enabled, it remembers the settings for you; when it is disabled, you have to put the setting command in .vimrc file for it works at the next app launch.

kyelewis commented 3 years ago

Auto restore is crashing iVim on startup here on ios15 with no other apps open alongside- happy to help troubleshoot further tomorrow.