Fix compatibility with latest Haxe dev

Haxe no longer abuses stderr and outputs to stdout, see HaxeFoundation/haxe@f6da2aa. Without this fix, this leads the the following compiler error:

>Error: Lime 5.8.2 is not compatible with Haxe 1 (version 3.2.0 or higher is required)

The fix is basically the same approach vshaxe takes for backwards compatibility: vshaxe/haxe-languageserver@e119a7e
This commit is contained in:
Jens Fischer
2017-11-29 12:00:49 +01:00
committed by Joshua Granick
parent 04ee313f62
commit f1502002b4

View File

@@ -1811,6 +1811,13 @@ class CommandLineTools {
var process = new Process ("haxe", [ "-version" ]);
var haxeVersion = StringTools.trim (process.stderr.readAll ().toString ());
if (haxeVersion == "") {
haxeVersion = StringTools.trim (process.stdout.readAll ().toString ());
}
process.close ();
environment.set ("haxe", haxeVersion);