Haxe:openfl 测试有效,但石灰构建无效
Posted
技术标签:
【中文标题】Haxe:openfl 测试有效,但石灰构建无效【英文标题】:Haxe: openfl test works but not lime build 【发布时间】:2018-06-29 20:32:25 【问题描述】:我正在将我的所有项目移动到 IntelliJ 中的单个模块,而不是在整个 git 存储库中使用一个模块,并且我的 IntelliJ 构建停止工作。我注意到它使用了石灰构建,即使我的模块设置为 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 中运行/测试项目并关闭游戏窗口时,活动终端进程永远不会结束。我必须关闭终端,重新打开并再次 cd 我的目录。有没有办法解决这个问题?
【问题讨论】:
【参考方案1】:看起来它可能奏效了。 openfl test flash
类似于运行 openfl build flash && openfl run flash
,而后者的行为实际上应该与 lime build flash && lime run flash
相同。
我认为您的lime build flash
命令运行正常,但由于应用程序已完成构建而退出。如果您改用lime test flash
,它可能会像其他命令一样为您构建并运行?
【讨论】:
所以肯定是这样,我觉得很愚蠢。我之所以使用lime build,是因为我试图模仿intelliJ 的行为来找出它为什么没有构建。以上是关于Haxe:openfl 测试有效,但石灰构建无效的主要内容,如果未能解决你的问题,请参考以下文章
markdown OpenFL + Haxe + visual Studio Code