代码之家  ›  专栏  ›  技术社区  ›  George Kurelic

Haxe:openfl测试工作正常,但不是lime构建

  •  2
  • George Kurelic  · 技术社区  · 7 年前

    我正在将所有项目移动到IntelliJ中的各个模块,而不是在整个git repo中有一个模块,我的IntelliJ构建停止了工作。我注意到它使用了lime构建,即使我的模块设置为openfl(据我所知,它总是有)

    openfl test flash -debug
    

    这很有效

    lime build GassyRickAstley.xml flash -debug -verbose
    

    但事实并非如此。 Full gist of both -v

    Lime Command-Line Tools (2.9.1)
    
    Initializing project...
    Using project file: GassyRickAstley.xml
    Warning: Could not read HXCPP config: /Users/booboo/.hxcpp_config.xml
    Using target platform: FLASH
    
    Running command: UPDATE
     - Embedding asset: removed for brevity
     - Copying template file: removed for brevity
    
    Running command: BUILD
     - Running command: haxe -main ApplicationMain -cp /usr/local/lib/haxe/lib/flixel/git -D flixel=4.3.0 -cp /usr/local/lib/haxe/lib/openfl/3,6,1 -D openfl=3.6.1 -cp /usr/local/lib/haxe/lib/lime/2,9,1 -D lime=2.9.1 -cp /usr/local/lib/haxe/lib/actuate/1,8,7 -D actuate=1.8.7 -cp /usr/local/lib/haxe/lib/ash/1,5,4/src -D ash=1.5.4 -cp source -cp lib -cp /usr/local/lib/haxe/lib/openfl/3,6,1/extern -cp ../Krakel/source -cp ../../lib/HxAssert/src -D native-trace -D HXCPP_QUIET -D openfl-next -D tools=2.9.1 -D flash-use-stage -D no-compilation -D openfl-flash -D verbose=1 -D web --macro flixel.system.macros.FlxDefines.run() -swf-lib export/flash/obj/assets.swf -swf-version 11.8 -swf export/flash/bin/GassyRickAstley.swf -cp export/flash/haxe -debug
    
    georges-mbp:Gassy Rick Astley booboo$ 
    

    看起来并没有什么问题,但我对分析终端输出很在行。

    目前,我可以手动构建,但没有断点会变得非常蹩脚、非常快。非常感谢您的帮助。

    奖金问题 . 当我在open fl中运行/测试项目并关闭游戏窗口时,活动终端过程永远不会结束。我必须关闭终端,重新打开并再次刻录我的目录。有办法解决这个问题吗?

    1 回复  |  直到 7 年前
        1
  •  3
  •   Joshua Granick    7 年前

    看起来这可能奏效了。 openfl test flash 类似于跑步 openfl build flash && openfl run flash ,其行为应与 lime build flash && lime run flash .

    我想你的 lime build flash 命令工作正常,但正在退出,因为应用程序已完成构建。如果您使用 lime test flash 相反,它可能会像其他命令一样为您构建和运行?