haxe icon indicating copy to clipboard operation
haxe copied to clipboard

"Type not found" errors don't provide enough context when type parameters are involved

Open EliteMasterEric opened this issue 7 months ago • 1 comments
trafficstars

https://github.com/HaxeFoundation/haxe/blob/a779309be031221799ab2e3c040e2dbcbe7635cc/src/core/error.ml#L303

Haxe Version: 5.0.0 (a9cb38a) or 4.3.6

Very similar to #12144. I'm trying to debug a macro which works with classes that have type parameters, and I'm now receiving this error message:

ERROR (unknown position) | Type not found : T

With an unknown position and an unknown context, I don't know what class I'm failing to apply type parameters for, or what function or line the error is occurring on.

EliteMasterEric avatar Apr 12 '25 00:04 EliteMasterEric