Invalid field access : split on target hxcpp

  • Hello,

    I've been reading about this issue for the past hour, but none of the proposed things helped (they were mostly for linux users anyway). Some cmd copypasta follows:

    D:\SnakeGame>lime test windows
    export/windows/cpp/haxe/ApplicationMain.hx:80: characters 47-65 : Warning : Use programPath instead
    Warning: Could not find template file: bin/ReplaceVistaIcon.exe
    Called from ? line 1
    Called from CommandLineTools.hx line 1400
    Called from CommandLineTools.hx line 25
    Called from CommandLineTools.hx line 126
    Called from CommandLineTools.hx line 619
    Called from lime/project/PlatformTarget.hx line 77
    Called from lime/tools/platforms/WindowsPlatform.hx line 168
    Called from lime/tools/helpers/ProcessHelper.hx line 140
    Called from lime/tools/helpers/PathHelper.hx line 86
    Called from /usr/lib/haxe/std/StringTools.hx line 327
    Uncaught exception - Invalid field access : split

    D:\SnakeGame>haxelib list
    actuate: [1.8.7]
    box2d: [1.2.3]
    flixel-addons: [2.1.0]
    flixel-demos: [2.2.0]
    flixel-templates: [2.1.0]
    flixel-tools: [1.2.0]
    flixel-ui: [2.1.0]
    flixel: [4.1.1]
    format: [3.3.0]
    hxcpp: [3.3.49]
    layout: [1.2.1]
    lime-samples: [2.6.0]
    lime: [2.9.1] 3.1.0
    openfl-samples: [4.0.0]
    openfl: [3.6.1] 4.1.0
    swf: [2.2.4]

    D:\SnakeGame>haxelib path lime
    -L C:\HaxeToolkit\haxe\lib\lime/2,9,1/ndll/
    -D lime=2.9.1

    D:\SnakeGame>set HAXEPATH

    The paths are correct, although the "/usr/lib/haxe/std/StringTools.hx" is clearly a linux path, and I've no idea where it came from. I assume that this path is the problem, but how would I change it and where?

    Kind regards,


  • I think you need to switch to Haxe 3.2, then do 'lime update tools', then switch back if you want. Because lime-tools of old lime 2.9.1 crash if compiled with newer Haxe

Log in to reply