Skip to content

Commit

Permalink
Merge pull request #23 from Aquafina-water-bottle/readme_common_error…
Browse files Browse the repository at this point in the history
…s_solutions_rewrite

Rewrite Common Errors and Solutions section
  • Loading branch information
KamWithK authored Mar 8, 2023
2 parents 1ddaa2c + 9fb8815 commit 670545e
Showing 1 changed file with 58 additions and 15 deletions.
73 changes: 58 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,13 @@ It reimplements the core APIs used by Yomichan to work with [Ankidroid](https://
* [Additional Instructions: Show Card Button](#additional-instructions-show-card-button)
* [Additional Instructions: Local Audio](#additional-instructions-local-audio)
* [Common Errors and Solutions](#common-errors-and-solutions)
* [Problem: Duplicate checks aren't working!](#problem-duplicate-checks-arent-working)
* [First Steps](#first-steps)
* [Problem: The Yomichan popup appears upon scrolling](#problem-the-yomichan-popup-appears-upon-scrolling)
* [Problem: The add button is always greyed out](#problem-the-add-button-is-always-greyed-out)
* [Problem: Duplicate checks aren't working](#problem-duplicate-checks-arent-working)
* [Problem: Forvo audio won't load](#problem-forvo-audio-wont-load)
* [Problem: On card add, I get `Incorrect flds argument`](#problem-on-card-add-i-get-incorrect-flds-argument)
* [I still have a problem](#i-still-have-a-problem)
* [Limitations](#limitations)

## Instructions
Expand Down Expand Up @@ -149,34 +155,71 @@ can be found within the above link.


## Common Errors and Solutions
If you're experiencing any of these problems:
1. Forvo audio won't load
2. App crashes
3. Yomichan cannot connect

Check that:
* Latest [app release](https://github.com/KamWithK/AnkiconnectAndroid/releases/latest) is installed
* `http://localhost:8765/?term={term}&reading={reading}` is added as `Custom URL (JSON)` as a Yomichan audio source
* If you import Yomichan's settings that the URLs default or as-specified and card/deck options right (when in doubt import the sanitised version in-case)
* Battery saving/automatic optimisation is turned off for Ankidroid, Ankiconnect Android and optionally (but recommended) Kiwi browser
* You allowed Ankiconnect Android to be running in the background (if this option is available on your device)
### First Steps
If you are having issues with anything, such as Yomichan being unable to connect to AnkiDroid, please ensure all these steps are followed before continuing:

If you've gone through the instructions and are still having trouble, feel free to create an issue here on GitHub or @/dm me on Discord (`@KamWithK#0634` on [The Moe Way](https://learnjapanese.moe/join/)).
* Make sure the latest [app release](https://github.com/KamWithK/AnkiconnectAndroid/releases/latest) is installed.
* If you imported the settings from the PC, try to use the sanitized version upon import, and manually re-add the handlebars after.
* Double check that your Yomichan settings are correct. In particular, check that the `Configure Anki card format...` section, and the audio sources section is correct.
* On rare occasions, settings exported from the computer and imported into your Android device may not work. Instead, try to reset Yomichan's settings and redo everything from scratch.
* Battery saving/automatic optimisation is turned off for Ankidroid, Ankiconnect Android and optionally (but recommended) Kiwi browser.
* You allowed Ankiconnect Android to be running in the background (if this option is available on your device).

### Problem: Duplicate checks aren't working!

### Problem: The Yomichan popup appears upon scrolling
Try going through step 5 of the [instructions](#instructions).
In particular, see the step that says
**Ensure `Scanning Inputs` is optimized for mobile (prevents lookups on scrolling)**.


### Problem: The add button is always greyed out
This usually happens if `Enable Content Scanning` is switched off.
To fix this, simply switch it on (under `Yomichan Settings``General``Enable content scanning`).

> **Note**:
> If you have this switched off in the first place, it is also very likely that the popup is
> showing up at unwanted times, i.e. while scrolling through a page.
> To solve this, try going through step 5 of the [instructions](#instructions).

### Problem: Duplicate checks aren't working
To determine that duplicate checks aren't working:
- Enable duplicate checks in the Yomichan settings (under `Anki``Check for card duplicates`),
- Select a word and add a card
- Tap outside of the popup, and re-select the word. Ideally, you should not be able to add a card here.
- Tap outside of the popup, and re-select the word. Normally, you should not be able to add a card here.

If you are able to add a card, then duplicate checks are indeed not working.
Check that your first field name does not include spaces,
and your first field contents do not include quotes (`"`) or spaces.
If it does, the only way to solve it is by using the Alpha version of AnkiDroid, and
If either of those are true, the only way to solve it is by using the Alpha version of AnkiDroid, and
[enable the new backend](https://github.com/ankidroid/Anki-Android/issues/13399)
under the advanced settings.


### Problem: Forvo audio won't load
Please make sure that this exact URL under
[Additional Instructions: Forvo Audio](#additional-instructions-forvo-audio) is used.
This URL is different from the one on PC.

> **Note**:
> There is always a chance that Forvo has changed the layout of their website,
> which can lead to AnkiConnect Android improperly fetching the audio.
> If you suspect this is the case, please create an issue on Github.

### Problem: On card add, I get `Incorrect flds argument`
This happens when you change the fields of a card. For example, if you added a field,
renamed a field, or deleted a field, then this error may pop up.
To fix it, navigate to `Yomichan Settings``Anki``Configure Anki card format...`,
and update the model fields (i.e. by switching it to a different model and back).


### I still have a problem
If you've gone through the instructions and are still having trouble, feel free to create an issue here on GitHub or @/dm me on Discord (`@KamWithK#0634` on [TheMoeWay](https://learnjapanese.moe/join/)).



## Limitations
Because Ankiconnect Android is a small project with a limited scope, not all API queries/cases are implemented/considered.
Currently every known essential feature has been added into the app, however some niche edge cases have been ignored.
Expand Down

0 comments on commit 670545e

Please sign in to comment.