I’m trying to run hxtelemetry, but I get weird errors.
$ openfl create project hxtest
test@test-HP MINGW64 /d/Dev/private/haxe
$ cd hxtest
test@test-HP MINGW64 /d/Dev/private/haxe/hxtest
$ openfl test neko -Dtelemetry
D:\Programs\Haxe\haxe\std/neko/vm/Mutex.hx:36: characters 6-20 : Primitive not found std@mutex_create:0
<builtin>:1: character 0 : Called from
D:\Programs\Haxe\haxe\std/neko/vm/Mutex.hx:29: lines 29-69 : Called from
D:/Programs/Haxe/haxe/lib/hxtelemetry/0,3,5/hxtelemetry/HxTelemetry.hx:77: characters 36-47 : Called from
Aborted
test@test-HP MINGW64 /d/Dev/private/haxe/hxtest
$ openfl test cpp -Dtelemetry
D:\Programs\Haxe\haxe\std/neko/vm/Mutex.hx:36: characters 6-20 : Primitive not found std@mutex_create:0
<builtin>:1: character 0 : Called from
D:\Programs\Haxe\haxe\std/neko/vm/Mutex.hx:29: lines 29-69 : Called from
D:/Programs/Haxe/haxe/lib/hxtelemetry/0,3,5/hxtelemetry/HxTelemetry.hx:77: characters 36-47 : Called from
Aborted
test@test-HP MINGW64 /d/Dev/private/haxe/hxtest
$ haxelib list hx
hxcpp: 3.2.205 3.3.49 3.4.2 [3.4.49]
hxtelemetry: [0.3.5]
It tries to use neko.vm.Mutex for cpp target too?
I’m certain I used hxscout successfully about a year ago on the same machine.
If somebody had similar problem please tell me the solution.
Thanks.
package;
#if macro
import neko.vm.Mutex;
import haxe.macro.Expr.Field;
#end
#if !macro
@:build(Macro.build())
class Main
{
public static function main() {
}
}
#else
class Macro
{
private static var mutex:Mutex = new Mutex();
public static function build():Array<Field>
{
return [];
}
}
#end
Hi @Misiur - it’s on my list to get back to hxtelemetry / hxScout and make sure it’s all working with the latest Haxe and hxcpp releases. When you said it was triggering neko in a cpp build, I thought of the macro context (which indeed is neko.) I’m not sure why Stage would be needed for the macro step, but maybe some #if !macro protection around the hxtelemetry stuff would help.
It does not . Merely importing import openfl.profiler.Telemetry; (which in turn imports import hxtelemetry.HxTelemetry;) causes this error. I tried fiddling with #if !macro in openfl source but couldn’t find a solution myself.