Christopher Hiller
Christopher Hiller
Current dependencies on/for this PR: * master * **PR #6** * **PR #7** * **PR #8** 👈 This comment was auto-generated by [Graphite](https://app.graphite.dev/github/pr/headspinio/appium-roku-driver/8?utm_source=stack-comment).
@jlipps what if the minimum node version was 16? 😜
I just ran into this. [`distutils` was removed in Python v3.12](https://docs.python.org/3/whatsnew/3.12.html)
I'm with @eranhirsch -- there's no way to do this sort of thing in TS. See https://github.com/microsoft/TypeScript/issues/1213 The best solution is from the guy who wrote a DSL in template...
I updated the title to better describe what I think is happening; my hunch is that it can be fixed in the `toPromise` implementation.
It may be worth mentioning _why_ the `context` assignment function would ever want to throw. Because: ```ts const machine = setup({ types: { input: {} as {signal: AbortSignal} } }).createMachine({...
@Andarist Not sure I love it, but I can confirm that workaround works: https://stackblitz.com/edit/github-trfney-kh9qur?file=src%2Fmain.ts Might want to update the [docs](https://stately.ai/docs/actors#actors-as-promises) and/or add a warning about this if you don't plan...
@Andarist It's not thrown synchronously, though: https://github.com/statelyai/xstate/blob/3e5424d7a4bd6dde63c2ada6b6a85f55ae42f7ee/packages/core/src/reportUnhandledError.ts#L9-L13 UPDATE: nevermind; this doesn't work Looking at this further, I think it could be solved by modifying `Actor._error()` and `Actor._reportError()` so that they...
Another way to solve it may be to create a transient, internal `error` subscription at the beginning of `Actor.start()` (if no other subscribers exist) which synchronously re-throws. The subscription would...
The second suggestion works without gumming up existing error handling: ```ts case 'error': let err: unknown | undefined; let tempSub: Subscription | undefined; if (!this.observers.size) { tempSub = this.subscribe({error: error...