HaxeFoundation / intellij-haxe

Haxe plugin for IntelliJ Platform based IDEs (IDEA, Android-Studio)
http://intellij-haxe.org
Apache License 2.0
219 stars 99 forks source link

Better library consistency checking. #846

Open EricBishton opened 6 years ago

EricBishton commented 6 years ago

It is too easy for folks to set up libraries incorrectly. In particular, multiple library roots, with multiple haxelib.json files should be flagged as errors, and, perhaps, automatically split into separate libraries.

For instance, this: image

Which caused a user to not get proper resolution of methods (or build) within his project.

EricBishton commented 6 years ago

On the other hand, having multiple roots for files that are addressable from different OSes, but the sources are the same is useful:

e.g Classes having both /cygdrive/d/Prog/HaxeToolkit/haxe/lib/hxnodejs/4,0,9 and D:\Prog\HaxeToolkit\haxe\lib\hxnodejs\4,0,9.

Perhaps we can some up with a useful heuristic to figure out if the paths are "likely" to point to the same sources. Or, maybe it's OK as long as only one of the entries is addressable/findable in the current configuration.