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

  • Running process: C:\Program Files (x86)\FlashDevelop\Tools\fdbuild\fdbuild.exe "D:\SnakeGame\SnakeGame.hxproj" -ipc b0d7bd1b-6854-43c0-91fb-e8ed0d26140d -version "3.3.0" -compiler "C:\HaxeToolkit\haxe" -library "C:\Program Files (x86)\FlashDevelop\Library" -target "windows"
    Building SnakeGame
    Running Pre-Build Command Line...
    cmd: "C:\HaxeToolkit\haxe/haxelib" run lime build "Project.xml" windows -debug -Dfdb
    C:/HaxeToolkit/haxe/lib/flixel/4,3,0/flixel/system/macros/FlxDefines.hx:100: characters 51-55 : Please run 'haxelib set lime 2.9.1' (Flixel is currently incompatible with Lime 3.0.0 or newer).
    Build halted with errors.

    So it is a vicious circle?

Log in to reply

Looks like your connection to HaxeFlixel was lost, please wait while we try to reconnect.