CodyC
CodyC
DDeno
Created by dandv on 3/3/2025 in #help
Deno check/lint doesn't warn against obvious bugs
As for:
// Should warn on points[3] possibly being undefined
Unfortunately, even typescript "strict" mode doesn't enable this check. There is a LOT of code that just assumes your indexes are in-bounds. It can become tedious to check undefined for all cases. If you want that check, you have to enable: https://www.typescriptlang.org/tsconfig/#noUncheckedIndexedAccess
7 replies
DDeno
Created by dandv on 3/3/2025 in #help
Deno check/lint doesn't warn against obvious bugs
7 replies
DDeno
Created by dandv on 3/3/2025 in #help
Deno check/lint doesn't warn against obvious bugs
No description
7 replies
DDeno
Created by Sethu on 3/8/2025 in #help
Native file selector for Deno
If you publish a version of that lib, please ping me. Sounds useful!
14 replies
DDeno
Created by Sethu on 3/8/2025 in #help
Native file selector for Deno
I feel like Windows must have something similar to osascript? But I wouldn't know where to look off the top of my head. Maybe PowerShell commands?
14 replies
DDeno
Created by Sethu on 3/8/2025 in #help
Native file selector for Deno
BTW, since you'll be working with commands, if you haven't seen it yet, Dax is a much nicer interface for that than Deno.Command. I use it all the time. https://jsr.io/@david/dax#executing-commands
14 replies
DDeno
Created by Sethu on 3/8/2025 in #help
Native file selector for Deno
Yeah I was just thinking that might be a fun lib to write. 🙂
14 replies
DDeno
Created by Sethu on 3/8/2025 in #help
Native file selector for Deno
That does seem like a useful tool. Some googling found https://pymotw.com/2/EasyDialogs/ but that seems to be deprecated. You might be able to just pipe some AppleScript into osascript on MacOS to prompt the user to select a file. See: https://developer.apple.com/library/archive/documentation/LanguagesUtilities/Conceptual/MacAutomationScriptingGuide/PromptforaFileorFolder.html And: https://support.apple.com/lt-lt/guide/terminal/trml1003/mac
14 replies
DDeno
Created by TheOneThatPlaysTooMuch on 3/8/2025 in #help
Cookie issues
What API are you using to set the cookie? Can you verify the cookie header was received by your browser? Why do you think it's not stored by your browser? (How did you verify?) Have any code/screenshots? It's hard to debug with just the info you have provided.
4 replies
DDeno
Created by Kasper on 1/13/2025 in #help
Typescript monorepo LSP performance
I definitely recommend opening an issue at https://github.com/denoland/deno/issues/ then. They've mentioend LSP performance improvements in the last 2 minor releases now, IIRC, so seem to be interested in making it fast. Include a link to that repo and give them some reproduction steps. 🙂
15 replies
DDeno
Created by zing on 2/15/2025 in #help
Deno Kv: "Database is locked" on enqueue
I'd recommend opening a bug for this. Sounds like a bug in their local Kv implementation.
3 replies
DDeno
Created by Andre78 on 2/17/2025 in #help
DB Connection slow with mongodb
I had some slow connection problems when the thing I was connecting to had a DNS entry for an invalid/old IPv6 address. Deno tries to connect to ipv6 first, then falls back to ipv4. Could that be happening here?
2 replies
DDeno
Created by ioB on 2/16/2025 in #help
Help compiling preact
It’s a bit indirect. It’s using deno-embedder to embed files. But internally that uses esbuild.
14 replies
DDeno
Created by ioB on 2/16/2025 in #help
Help compiling preact
14 replies
DDeno
Created by ioB on 2/16/2025 in #help
Help compiling preact
Weird. I use esbuild (indirectly) to compile and embed preact code and haven’t run into this problem.
14 replies
DDeno
Created by ioB on 2/16/2025 in #help
Help compiling preact
I see write: false -- is that script not writing files, and you're still running an old version?
14 replies
DDeno
Created by BabyDP on 2/13/2025 in #help
deno task setup can't run on Windows 11.
4 replies
DDeno
Created by BabyDP on 2/13/2025 in #help
deno task setup can't run on Windows 11.
Alternatively, translate setup.sh to a typescript file, like setup.ts, which Deno knows how to run on any platform. If you want to do shell-like things inside of a .ts file, I highly recommend Dax:
4 replies
DDeno
Created by Eric on 2/13/2025 in #help
VSCode only TypeScript Errors, nothing from Deno LSP
Same here. Did you manually add the typescript.* configurations? Deno's "initialize workspace" doesn't do that for me. That seems to be the problem?
4 replies
DDeno
Created by ©TriMoon™ on 2/14/2025 in #help
globalThis woes with VSCode Deno extensions LSP
If you're trying to have a singleton, it's better to use a module export of a singleton and use that, instead of globalThis. export const debug = new Debug(...)
11 replies