HaxeFoundation / HaxeFoundation/haxe

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

Open
#12,166 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Haxe
Stars
6.9k
Forks
715
Avg merge
2d 2h
Merged PRs (30d)
11

Description

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.

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.