HaxeFoundation / HaxeFoundation/haxe
Mis-diagnostic of unused import
- Dominant language
- Haxe
- Stars
- 6.9k
- Forks
- 715
- Avg merge
- 2d 2h
- Merged PRs (30d)
- 11
Description
In the [SnakeDCI](https://github.com/ciscoheat/SnakeDCI) project, probably due to the heavy macro rewriting that occurs in the [DCI library](https://github.com/ciscoheat/haxedci), when using VS Code, some fields in a class gets marked as unused import:

([code location](https://github.com/ciscoheat/SnakeDCI/blob/master/src/contexts/Movement.hx#L93))
The field `HEAD` is used throughout the class, but it's body is removed and replaced with a generated `MovementHEAD` type, which could cause some confusion. Should the diagnostics even occur for class fields, when the error message says "unused import/using"?
Contributor guide
Assessment
This issue has not been assessed yet.