Missing dependency in search path when using dynamic import
Could you open an issue on the compiler repo as well, and link it from there? Then we can keep the discussion there.
View ArticleRandomly ordered function names in docs
Hello, Been trying out Rescript after the v12 release and so far so good. Seems like a job very well done. My only concern is with the documentation and how it’s organized. For example here is the...
View ArticleRandomly ordered function names in docs
I guess sorting the functions/types alphabetically could be a quick win.
View ArticleVim ale Rescript support
Bumping this topic because I just opened a pull request on GitHub to add ReScript support for ALE. Any Vim+ALE users please feel free to review it or copy the code to your configurations until it’s...
View ArticleIntroducing MoonBit and a few reflections from building the ReScript toolchain
Thanks for giving a try! Is that talking to a local LLM? No, it talks to a server. That’s our first experiment of AI enhanced IDE. We are now working on Agent-First IDE, where most toolings are more...
View ArticleExn to JSError.t
Doesn’t look like there’s a built-in conversion for that in particular, but I think the reject argument for Promise.make is polymorphic, so it should be able to take anything in. Can you take a...
View ArticleExn to JSError.t
Ended up with some custom promise bindings, I now have: @send external thenResolve: (promise<'data>, 'data => unit) => promise<'data> = "then" @send external catchJSError:...
View ArticleExn to JSError.t
@nojaf, well the issue comes from the fact there’s no silver bullets when it comes to know if a given variable is a JS error! So you can either be defensive with it and use any kind of knowledge about...
View ArticleExn to JSError.t
Maybe JSExn.t would work? That has a built-in conversion from exn, at least.
View ArticleExn to JSError.t
Ah, a third option. The underlying problem is that, within a Promise.make call, reject needs to be called on items of the same type. We can’t cast exn to JsError.t, but we can convert JsError.t to...
View ArticleHow can we make contributing to ReScript easier?
what’s the next step on this one? i want to contribute and likely have the time on my hands to do it, but i just don’t know how to get started
View ArticleHow can we make contributing to ReScript easier?
What do you have in mind to work on? Maybe we can try help you out on what you have in mind and slowly improve the process along the way?
View ArticleExn to JSError.t
So, withKaplayContext is used in a vitest unit test. So, I want to avoid exn all together really, it is not the relevant thing to have here. // https://v4000.kaplayjs.com/docs/api/ctx/onError/...
View ArticleExn to JSError.t
I agree it would be cool to have bindings for Error.isError, but the support is quite limited, it was rolled out from TC39 in May of this year only and is still not supported by Safari and only by...
View ArticleHow can we make contributing to ReScript easier?
i don’t have anything particular i mind at the moment, but it pops up now and then, usually with regard to missing stdlib functionality. let’s consider the case of adding a function to Option for...
View ArticleAnyone using graphql-ppx and rescript-apollo-client with 11?
@jfrolich has Team Walnut moved away from GraphQL? I keep checking the graphql_ppx repo for any movement including open PRs. We’re still stuck on Rescript 10. Or any suggestions to an alternate...
View Article