-
-
Notifications
You must be signed in to change notification settings - Fork 111
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
feat(web): load .kmx keyboard from blob 🎼 #12823
base: fix/core/alignment
Are you sure you want to change the base?
Conversation
User Test ResultsTest specification and instructions User tests are not required Test Artifacts
|
} | ||
}); | ||
} catch (e: any) { | ||
console.log('got execption in CoreFactory.createCoreProcessor', e); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
console.log('got execption in CoreFactory.createCoreProcessor', e); | |
console.log('got exception in CoreFactory.createCoreProcessor', e); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we need to ensure that exceptions here aren't masked. Console log is not available in many contexts e.g. System keyboard. Console.error is a start but not enough maybe?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do you suggest?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a reason the exception needs to be masked here? Could it just change to propagate?
3c32fda
to
11cfb2e
Compare
This change adds the web side of loading a .kmx keyboard from a blob. It also replaces the `CoreProcessor` class with `CoreFactory` that allows to directly use the methods defined in WASM without having to add another wrapper for each method.
11cfb2e
to
a072171
Compare
non-zero value is an error). | ||
|
||
## Specification | ||
|
||
--> | ||
// keep in sync with web/src/engine/core-processor/src/core-factory.ts |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mention emscripten-core/emscripten#18585 here too?
} | ||
}); | ||
} catch (e: any) { | ||
console.log('got execption in CoreFactory.createCoreProcessor', e); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a reason the exception needs to be masked here? Could it just change to propagate?
it('can initialize without errors', async function () { | ||
const kp = new CoreProcessor(); | ||
assert.isTrue(await kp.init(coreurl)); | ||
assert.isNotNull(await CoreFactory.createCoreProcessor(coreurl)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
here for example would fail if there's an err.
This change adds the web side of loading a .kmx keyboard from a blob. It also replaces the
CoreProcessor
class withCoreFactory
that allows to directly use the methods defined in WASM without having to add another wrapper for each method.Note that this is only the first step that implements loading the kmx keyboard, but we don't anything with it yet.
Part-of: #11293
@keymanapp-test-bot skip