Joe Hildebrand
Joe Hildebrand
DDeno
Created by octo3. on 12/17/2023 in #help
How to get `require.main.filename` like Node as Deno
Thank you, that makes sense. I will think about this some (maybe someone else can help as well)
11 replies
DDeno
Created by octo3. on 12/17/2023 in #help
How to get `require.main.filename` like Node as Deno
Say more about what you're trying to accomplish?
11 replies
DDeno
Created by octo3. on 12/17/2023 in #help
How to get `require.main.filename` like Node as Deno
import.meta.main is a boolean
11 replies
DDeno
Created by jcayzac on 12/15/2023 in #help
Is there a way to get deno coverage information in a vscode lens?
(you almost certainly know this, but use a Map if you want numbers, and wait patiently for https://github.com/tc39/proposal-record-tuple so that both Map and Set are actually useful one day)
16 replies
DDeno
Created by jcayzac on 12/15/2023 in #help
Is there a way to get deno coverage information in a vscode lens?
Me too. I also wish debugging was easier from there.
16 replies
DDeno
Created by jcayzac on 12/15/2023 in #help
Is there a way to get deno coverage information in a vscode lens?
I think may be a couple off-by-ones in the coverage info, particularly around branches. I'll bet it's in the generated TS sourcemaps, but I can't prove it until I isolate some test cases.
16 replies
DDeno
Created by jcayzac on 12/15/2023 in #help
Is there a way to get deno coverage information in a vscode lens?
That one probably means the else of that if wasn't covered.
16 replies
DDeno
Created by raunioroo on 12/11/2023 in #help
await writer.write(buffer) never resolves on Deno.Command
What if you throw cmd.status() into the Promise.all? Do you get a zero exit code?
26 replies
DDeno
Created by raunioroo on 12/11/2023 in #help
await writer.write(buffer) never resolves on Deno.Command
however, when vipsthumbnail exits without reading pending stdin, I would have expected await writer.write to throw.
26 replies
DDeno
Created by raunioroo on 12/11/2023 in #help
await writer.write(buffer) never resolves on Deno.Command
anything's possible, of course. All programs have bugs.
26 replies
DDeno
Created by raunioroo on 12/11/2023 in #help
await writer.write(buffer) never resolves on Deno.Command
you could try await Promise.all([writer.write(), writer.close()]) to find out
26 replies
DDeno
Created by raunioroo on 12/11/2023 in #help
await writer.write(buffer) never resolves on Deno.Command
If the output buffer fills up, writer.write() will block.
26 replies
DDeno
Created by raunioroo on 12/11/2023 in #help
await writer.write(buffer) never resolves on Deno.Command
Are you sure that vipsthumbnail is actually reading stdin if stdin hasn't closed?
26 replies