Ed, Edd n Eddy
Ed, Edd n Eddy
DDeno
Created by Ed, Edd n Eddy on 4/28/2024 in #help
Migrating from Deno.run to Deno.command, how to readLines?
16 replies
DDeno
Created by Ed, Edd n Eddy on 4/28/2024 in #help
Migrating from Deno.run to Deno.command, how to readLines?
probs quite a complex case cause its sinco, the one that runs chrome as a subprocess so unfortunately the test cases aren't helpful cause we'd need to dig down into the src code, i can still share regardless, bear with i'm still going thru it trying to see if there's any thing i haven't resolved
16 replies
DDeno
Created by Ed, Edd n Eddy on 4/28/2024 in #help
Migrating from Deno.run to Deno.command, how to readLines?
Don’t suppose you’d know the reason for why a test file may hang, there’s no errors or leaking ops message, it just hangs on <test step name> … ok (4s), I’d assume there’s a promise not being resolved but wouldn’t deno throw an error message for this? It’s still using sub processes and is only an issue on windows
16 replies
DDeno
Created by Ed, Edd n Eddy on 4/28/2024 in #help
Migrating from Deno.run to Deno.command, how to readLines?
Its probs been like a year or two or something lol, wanna get back into hobby coding a bit but im so behind on deno lol, everything i knew before is probably lost in time now xD
16 replies
DDeno
Created by Ed, Edd n Eddy on 4/28/2024 in #help
Migrating from Deno.run to Deno.command, how to readLines?
does this replace deno.land/std and deno.land/x/?
16 replies
DDeno
Created by Ed, Edd n Eddy on 4/28/2024 in #help
Migrating from Deno.run to Deno.command, how to readLines?
I am VERY behind, will give it a read
16 replies
DDeno
Created by Ed, Edd n Eddy on 4/28/2024 in #help
Migrating from Deno.run to Deno.command, how to readLines?
Also seems to work perfectly 🙂
16 replies
DDeno
Created by Ed, Edd n Eddy on 4/28/2024 in #help
Migrating from Deno.run to Deno.command, how to readLines?
Hey 🙂 Whats this "jsr" import syntax?
16 replies
DDeno
Created by Ed, Edd n Eddy on 8/13/2023 in #help
Migrating `Deno.run` to `Deno.command` with `readlines`
nvm got it sorted
21 replies
DDeno
Created by Ed, Edd n Eddy on 8/13/2023 in #help
Migrating `Deno.run` to `Deno.command` with `readlines`
Thanks 🙏 dont suppose you'd know the ChildProcess equivelent of
this.#browser_process.stderr!.close();
this.#browser_process.stdout!.close();
this.#browser_process.close();
this.#browser_process.stderr!.close();
this.#browser_process.stdout!.close();
this.#browser_process.close();
? Tried the ai helper and got:
const stdoutReader = readerFromStreamReader(this.#browser_process.stdout.getReader())
await readAll(stdoutReader)
console.log(1)
const stderrReader = readerFromStreamReader(this.#browser_process.stderr.getReader())
await readAll(stderrReader)
this.#browser_process.kill("SIGINT")
const stdoutReader = readerFromStreamReader(this.#browser_process.stdout.getReader())
await readAll(stdoutReader)
console.log(1)
const stderrReader = readerFromStreamReader(this.#browser_process.stderr.getReader())
await readAll(stderrReader)
this.#browser_process.kill("SIGINT")
but it hangs on line 2
21 replies
DDeno
Created by Ed, Edd n Eddy on 8/13/2023 in #help
Migrating `Deno.run` to `Deno.command` with `readlines`
oh it hink i see
21 replies
DDeno
Created by Ed, Edd n Eddy on 8/13/2023 in #help
Migrating `Deno.run` to `Deno.command` with `readlines`
confused, where am i using TextLineStream?
const a = browserProcess.stdout.pipeThrough(new TextDecoderStream)
const b = browserProcess.stdout.pipeThrough(a);
const a = browserProcess.stdout.pipeThrough(new TextDecoderStream)
const b = browserProcess.stdout.pipeThrough(a);
21 replies
DDeno
Created by Ed, Edd n Eddy on 8/13/2023 in #help
Migrating `Deno.run` to `Deno.command` with `readlines`
gotcha
21 replies
DDeno
Created by Ed, Edd n Eddy on 8/13/2023 in #help
Migrating `Deno.run` to `Deno.command` with `readlines`
still
Argument of type 'TextLineStream' is not assignable to parameter of type '{ writable: WritableStream<Uint8Array>; readable: ReadableStream<string>; }'.
Types of property 'writable' are incompatible.
Type 'WritableStream<string>' is not assignable to type 'WritableStream<Uint8Array>'.
Type 'string' is not assignable to type 'Uint8Array'.deno-ts(2345)
Argument of type 'TextLineStream' is not assignable to parameter of type '{ writable: WritableStream<Uint8Array>; readable: ReadableStream<string>; }'.
Types of property 'writable' are incompatible.
Type 'WritableStream<string>' is not assignable to type 'WritableStream<Uint8Array>'.
Type 'string' is not assignable to type 'Uint8Array'.deno-ts(2345)
:/
21 replies
DDeno
Created by Ed, Edd n Eddy on 8/13/2023 in #help
Migrating `Deno.run` to `Deno.command` with `readlines`
although: error: TS2339 [ERROR]: Property 'readable' does not exist on type 'ChildProcess'., deno v1.36.1, windows
21 replies
DDeno
Created by Ed, Edd n Eddy on 8/13/2023 in #help
Migrating `Deno.run` to `Deno.command` with `readlines`
was excited to see where destiny went, but wanna get back into deno again
21 replies
DDeno
Created by Ed, Edd n Eddy on 8/13/2023 in #help
Migrating `Deno.run` to `Deno.command` with `readlines`
good to see your face though 😛
21 replies
DDeno
Created by Ed, Edd n Eddy on 8/13/2023 in #help
Migrating `Deno.run` to `Deno.command` with `readlines`
i dont think i touched deno/drashland shortly after my new job which was 2 years and one month ago so oculd be 1y 10m, though maybe i stopped later than i thought
21 replies
DDeno
Created by Ed, Edd n Eddy on 8/13/2023 in #help
Migrating `Deno.run` to `Deno.command` with `readlines`
🙏 thanks 🙂 been like 2+ years since ive touched deno so a lot has changed and not familiar with it all
21 replies
DDeno
Created by Ed, Edd n Eddy on 12/16/2022 in #help
Can I programatically trigger a SIGINT event?
ok ty will see if that works with what i need to do
3 replies