cursorless
cursorless copied to clipboard
Uncaught exceptions from CustomSpokenForms.updateSpokenFormMaps?
I am working on some changes to VscodeFileSystem.ts. When running the tests, I'm seeing rejected promise not handled within 1 second: NeedsInitialTalonUpdateError: Custom spoken forms file not found at /var/folders/g5/2jjc2rf56rg29d286ttd05_000fy9v/T/20ae72e7d885e78e1d632cfd8c725972/state.json. Using default spoken forms.
in the logs. I thought this was due to my changes (since they are called by the code that raises this error), though after debugging for a while I just discovered that the problem happens on the main branch as well. I believe this is because CustomSpokenForms.updateSpokenFormMaps catches errors from this.talonSpokenForms.getSpokenFormEntries() but then re-throws them, and the callers of CustomSpokenForms.updateSpokenFormMaps do not catch them. Is this a (known?) bug?