HaxeFoundation / HaxeFoundation/haxe

Compiler.exclude + compiler cache bug

Open
#7,706 7 comments 0 reactions 1 assignee Claimed by @Simn View on GitHub
documentation
Dominant language
Haxe
Stars
6.9k
Forks
715
Avg merge
2d 2h
Merged PRs (30d)
11

Description

When using `--macro exclude('package')` with compiler cache, this will cause problems with inline constructor. First compilation works, but then next one (if the file using the inline constructor changes) will error with `Extern constructor could not be inlined`

Here's a reproducible example:

```haxe
class Main {
static function main() {
new h2d.col.Point();
}
}
```

Compile with:
```
haxe --connect 6666 -js main.js -main Main -lib heaps --macro exclude('h2d')
touch Main.hx
haxe --connect 6666 -js main.js -main Main -lib heaps --macro exclude('h2d')
````

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.