Help! VSCode tooling is broken for me on Windows
Hi! I use Windows with WSL in VSCode, and the editor tooling is behaving very oddly for me. I tested it out and from what I can tell I do not get these errors when developing directly on Windows...
View ArticleShould ReScript move more towards explicit control flow?
Yeah, it’s very doable and I do it all the time, but it would be nice to just have Response.json, fetch, and other web APIs with possible failures just return a Result type.
View ArticleHelp! VSCode tooling is broken for me on Windows
Gemini seems to think the issue is related to the path globs defined in server.ts. const watchers = Array.from(workspaceFolders).flatMap( (projectRootPath) => [ { // Only watch the root compiler...
View ArticleHelp! VSCode tooling is broken for me on Windows
It might not actually work on windows. I tried checking out the rescript site repo on windows and I now have this error from the extension. Node.js v22.21.1 [Info - 6:40:53 PM] Connection to server...
View ArticleHelp! VSCode tooling is broken for me on Windows
Try add some getLogger().log statements, see rescript-vscode/server/src/incrementalCompilation.ts at 47d5dd34abf476368f3dcdef2b1b0818e81f2ec6 · rescript-lang/rescript-vscode · GitHub That is how I...
View ArticleHelp! VSCode tooling is broken for me on Windows
This gets windows without WSL to work: fix: wrap binary path resolution with fileURLToPath by jderochervlk · Pull Request #1177 · rescript-lang/rescript-vscode · GitHub With WSL I am seeing this...
View ArticleHelp! VSCode tooling is broken for me on Windows
I think it’s somewhere in here. // projectRootPath is already normalized (NormalizedPath) from findProjectRootOfFile // Use getProjectFile to verify the project exists const project =...
View Article@rescript/runtime dependency problems
Adding the following lines in pnpm-workspace.yaml fixed the issue for me without modifying package.json: publicHoistPattern: - "*@rescript/runtime*" (then delete your node_modules directory and do a...
View ArticleInterest in Shadcn UI?
hey @zth, what’s the status of this iniative? I’d like to migrate to a more robust design system in my main project. I’ve heard good things about daisyui too if we don’t want to rely on shadcn/radix.
View ArticleInterest in Shadcn UI?
I haven’t done anything more here so far, and likely won’t for the foreseeable future. So if someone else wants to pick this up and drive it that’d be great. The only important thing here, I think, is...
View ArticleHelp! VSCode tooling is broken for me on Windows
It was path related and I was able to open up a couple of PRs and this is now fixed on the latest pre-release version (1.73.11). github.com/rescript-lang/rescript-vscode fix: wrap binary path...
View ArticleRemix folder structure and ReScript modules
I’m having the same issue. Are there any good solutions available now?
View ArticlePreserve UPPERCASE Constants in ReScript with Quoted Identifiers (Migration Win)
Hi all, In the context of migrating JS/TS codebases, I wasted way too much time trying to figure out how to generate proper uppercase constants from ReScript code. This is especially painful during...
View ArticleThe playground is down
Setup failed: Could not load cmij from url /playground-bundles/v12.1.0/compiler-builtins/cmij.js the page loads but it’s not compiling
View ArticleThe playground is down
Thanks for reporting! We made some changes to the Cloudflare deployment and forgot to add back the “Sync playground bundles” step. Should work again now. If not clear your browser cache. Sorry for the...
View ArticleHow to Resolve Export Format Conflicts Between ReScript and React Router v7...
I export JavaScript files generated by ReScript in the format: export { loader$1 as loader, make, $$default as default, } However, Hot Module Replacement in React Router v7 requires:...
View ArticleHow to Resolve Export Format Conflicts Between ReScript and React Router v7...
@joshderochervlk got this working with react-router v7. Maybe you can find some hints in this PR: github.com/rescript-lang/rescript-lang.org development: fix HMR and page reloading...
View ArticleHow to Resolve Export Format Conflicts Between ReScript and React Router v7...
Thanks for your reply, but export {loader} won’t work in React Router, export const loader is required instead.
View ArticleHow to Resolve Export Format Conflicts Between ReScript and React Router v7...
Hm, I believe this is not actually necessary. At least it seems to work for me in the rescript-lang.org repo. I just changed something in the loader: rescript-lang.org/app/routes/BlogRoute.res at...
View ArticleHow to Resolve Export Format Conflicts Between ReScript and React Router v7...
I used SSR, this appears to be related to SSR. loader is server function. Maybe caused by tree shaking?
View Article