Way Way Waaaay Nicer Error Messages

Yes, I meant that too, sorry for being ambiguous: the error messages also work out-of-the-box for OCaml syntax of BuckleScript via the same bsc-flags, but not (yet) on OCaml native compiler.

1 Like

The blog post says its available for bsb-native?
https://reasonml.github.io/community/blog/

What is the downside of bsb-native?
Why does it contain bsb in its name, when it compiles into native OCaml?

It’s a javascript-oriented build tool for the OCaml compiler. Like jbuilder, but trying to provide more compatibility for the bucklescript ecosystem and people who are used to it.

1 Like

Do they work for native code today?

OCaml compiler messages happen to be still not very readable.
OCaml Platform seems to even yield the OCaml messages for Reason today.
That’s a straight downgrade. o.O

Some errors literally are telling me “syntax error” and nothing else.
Reason improved that an eternity ago, and it seems like a missed opportunity to adopt that.

I find it difficult to imagine, that a language community has the chance to integrate a vastly improved error library, and doesn’t do so for 6 years.

I mean, that’s a night and day difference.

Does really nobody care to improve the atrocious error messages that are currently used?

Oh, the irony!

“Hello! This page has moved to . Please update the URLs to reflect it. Thanks!”

Alice: I don’t understand error messages from my code.
Bob: write simpler code.