Skip to content
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

"Collection not opened" is not actionable if the collection path no longer exists #17524

Open
david-allison opened this issue Nov 30, 2024 · 2 comments

Comments

@david-allison
Copy link
Member

david-allison commented Nov 30, 2024

I have a collection with a corrupt path:

- getCurrentAnkiDroidDirectory(context) /storage/emulated/0/Android/com.ichi2.anki.debug/files/AnkiDroid
+ getDefaultAnkiDroidDirectory(context) /storage/emulated/0/Android/data/com.ichi2.anki.debug/files/AnkiDroid

None of the following recovery options allow me to fix this.

Image

We could use whether the collection path matches the default directory as a check for introducing/modifying options on this screen

AnkiDroid Version = 2.20alpha2-debug (12f9953)

Backend Version = 0.1.47-anki24.11rc2 (24.11rc2 87ccd24efd0ea635558b1679614b6763e4f514eb)

Android Version = 14 (SDK 34)

ProductFlavor = play

Manufacturer = samsung

Model = SM-G991B

Hardware = exynos2100

Webview User Agent = Mozilla/5.0 (Linux; Android 14; SM-G991B Build/UP1A.231005.007; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/130.0.6723.108 Mobile Safari/537.36

ACRA UUID = e4694be7-a482-41f6-bf29-8dab4eec7e41

FSRS = 1.4.3 (Enabled: null)

Crash Reports Enabled = false

@mikehardy
Copy link
Member

Was this perhaps after you used my new dev preference?
Perhaps allowing the user to set a path manually is an option?

@david-allison
Copy link
Member Author

Almost certainly not preference related

@ankidroid ankidroid deleted a comment from louzhuqaq Dec 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants