rescript-compiler icon indicating copy to clipboard operation
rescript-compiler copied to clipboard

The compiler for ReScript.

Results 427 rescript-compiler issues
Sort by recently updated
recently updated
newest added

Work in progress. Compiler PR: https://github.com/rescript-lang/rescript-compiler/pull/6823 Rewatch PR: https://github.com/rescript-lang/rewatch/pull/132

It should rather clean it up only after the watcher is closed. I believe this was the behavior with versions 9.x and lower. This is also important for the editor...

When you have `@return(nullable)` on an external definition for a function that does not return `option`, e.g., ```rescript @return(nullable) external someFunc: unit => bool = "someFunc" ``` you get the...

enhancement

Could we get an option to print the path in an error message by its relative path instead of its absolute path? It would have a couple of benefits: 1)...

This is part compiler and part editor tooling. Circular deps errors are currently not great, and even breaks editor error reporting.

Move the VS Code extension sources from https://github.com/rescript-lang/rescript-vscode into the compiler repo so that they can be maintained together and binary compatibility is ensured (see e.g. https://github.com/rescript-lang/rescript-compiler/pull/6979#discussion_r1739561988).

infrastructure

When one has a React component accepting children, e.g. ```rescript module A = { @react.component let make = (~children) => {children} } ``` and, instead of passing the children like...

Suggesting integrating @namenu's persistent vector library with the compiler. https://github.com/reason-seoul/rescript-collection/tree/main/packages/vector This library implemented in pure ReScript is optimized for changing the last element, unlike a list optimized for changing the...

When you need to prepend with `?` etc. Can we detect it and provide better errors and code actions?

Plan the future for compiler libraries. The most likely scenario, as things stand today is: - Core will be adopted and become part of the compiler - Belt needs looking...