HaxeFoundation / HaxeFoundation/haxe

Better error report for type in a module

Open
#10,254 1 comment 5 reactions 1 assignee Claimed by @kLabz View on GitHub
error-reporting
Dominant language
Haxe
Stars
6.9k
Forks
715
Avg merge
2d 2h
Merged PRs (30d)
11

Description

Hej,

It's not really a bug but I don't know where to put this kind of suggestion, please feel free to shout me if you want...

When a type is inside a module, that the file has another name, it is sometimes hard to find the file where the type is.
For example, I get this error : `lib/hscript/git/hscript/Macro.hx:253: characters 38-42 : haxe.macro.Position has no field file`
It's ok here because I know that `haxe.macro.Position` is in `haxe.macro.Expr` file but it's sometimes not evidence.
Maybe it would be better to have `haxe.macro.Expr.Position` instead of `haxe.macro.Position` ?

BTW it's confusing me sometimes because it looks like it"s not really unified between error reporting and import styatement for example, for this example error is `haxe.macro.Position` but if you want to use this type in import so you have to import `haxe.macro.Expr.Position`

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.