Repository navigation
runAppleScript never settles when its timeout fires
#2024
Unanswered
dennisoehme
asked this question in
Issue Triage
Replies: 1 comment
|
i am no longer working on raycast extensions right now. i am working on tinycast native extension engine. and raycast extension will be in a separate repo to maintain in the future. i have stated that in #1888 here that raycast extension compatibility is paused for now. if this is really important you can have it in your own fork for now. later u can open pr |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Existing discussions
What happened?
runAppleScriptfrom@raycast/utilsworks in Tinycast (script via stdin, arguments, large output), but when itstimeoutfires, the returned promise never settles. The command keeps loading forever, althoughosascripthas already exited.Steps to reproduce
A no-view command:
Expected (as in Raycast / Node): the promise rejects after ~500 ms with "Command timed out after 500 milliseconds".
Actual: it never resolves or rejects (waited over a minute).
Likely cause: on timeout,
@raycast/utilskills the child, then callsstdout.destroy()/stderr.destroy()and awaits the buffered stream promises. The streams of thechild_processshim apparently don't end or close ondestroy(), so that await never returns.execFilewithtimeoutworks as expected (rejects after ~500 ms).Side note: with
execFile'stimeout,error.killedstaysfalseand the message is only "Command failed: …", while node setskilled: trueandsignal: "SIGTERM".Maybe related #2017, but its a different path. IHMO.
Screenshots or recording
No response
Tinycast version + channel
0.17.0 stable
macOS version
27
I confirm that:
All reactions