Test and update
Test the file, re-enabling the plugin and updating with existing preferences.
On this page
Check the source fileDisable and re-enableUpgrade an installed pluginNarrow down a failureCheck the source file
Save the file as UTF-8. If you have Python 3 installed, run python3 -m py_compile note-en.plugin in the folder containing the example. A valid file produces no output. A syntax error points to a source line. Send the original .plugin file to the client.
Compilation checks syntax. The app supplies base_plugin, ui.settings and the Android classes at runtime. Open the file in the client to exercise menu registration and bulletins.
Disable and re-enable
- Install and enable Chat note. Open a chat menu. It should contain exactly one My note action.
- Disable the plugin and reopen the chat menu. The action should disappear.
- Enable it again, background the app and return. Reopen the menu. There should still be one action. If returning creates a duplicate, check whether you registered it again in
on_app_event.
Upgrade an installed plugin
Save a distinctive phrase in the plugin settings. Edit a copy of the file, change __version__ to "1.1" and rename the menu action. Keep the same __id__ and note key. Send the copy as a new document and install it over the original. Expect one entry in the plugin list, a new menu label and a bulletin containing the saved phrase.
Narrow down a failure
| Symptom | Inspect |
|---|---|
| No installation card | Document extension, client edition and engine switch. |
| The card is correct but enabling fails | First failing import, subclass of BasePlugin, exceptions from on_plugin_load. |
| The menu action appears but tapping it fails | The on_click signature, context fields and stored value type. |
| Only the note was lost on upgrade | Compare the plugin ID, preference key and value type in both files. |
To report a failure, include the two version numbers, the steps and the exception line. First try reproducing the issue with only the affected plugin enabled.