Quantcast
Channel: ReScript Forum - Latest posts
Browsing all 2592 articles
Browse latest View live

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 Article


Missing dependency in search path when using dynamic import

Yep, done.

View Article


Image may be NSFW.
Clik here to view.

Randomly 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 Article

Randomly ordered function names in docs

I guess sorting the functions/types alphabetically could be a quick win.

View Article

Image may be NSFW.
Clik here to view.

Exn to JSError.t

How do I convert a exn to JSError.t?

View Article


Vim 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 Article

Introducing 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 Article

Exn 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 Article


Exn 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 Article


Exn 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 Article

Exn to JSError.t

Maybe JSExn.t would work? That has a built-in conversion from exn, at least.

View Article

Exn to JSError.t

Yeah the other solution would be to make onError accept JsExn.t.

View Article

Exn 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 Article


How 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 Article

How 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 Article


Exn 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 Article

Exn 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 Article


Exn to JSError.t

Ah yes, it does seem a bit too experimental.

View Article

How 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 Article

Anyone 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
Browsing all 2592 articles
Browse latest View live