简体   繁体   English

Haxe:openfl测试有效,但无法生成石灰

[英]Haxe: openfl test works but not lime build

I'm in the process of moving all my projects to individual modules in IntelliJ rather than having one module in the entire git repo, and my IntelliJ builds stopped working. 我正在将所有项目移至IntelliJ中的单个模块,而不是在整个git repo中只有一个模块,而我的IntelliJ构建已停止工作。 I notice it uses lime builds even though my module is set to openfl (and always has as far as I know) 我注意到即使我的模块设置为openfl,它也会使用石灰构建(据我所知一直如此)

openfl test flash -debug

this works 这有效

lime build GassyRickAstley.xml flash -debug -verbose

this does not. 这不是。 Full gist of both -v 两者的全部要旨-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$ 

It doesn't seem like anything went wrong, but I'm pretty shit with analyzing terminal output. 似乎没有什么地方出错,但是我对分析终端输出很不满意。

For now I can just build manually, but not having breakpoints is gonna get pretty lame, pretty fast. 现在,我可以手动构建,但是没有断点会变得很la脚,很快。 Any help is appreciated. 任何帮助表示赞赏。

Bonus question . 奖金问题 When I run/test the project in open fl and close the game's window the active terminal process never ends. 当我在打开fl中运行/测试项目并关闭游戏窗口时,活动的终端进程永远不会结束。 I have to close the terminal, reopen and cd my directory again. 我必须关闭终端,重新打开并再次CD我的目录。 is there a way around this? 有没有解决的办法?

It looks like it may have worked. 看起来可能有用。 openfl test flash is similar to running openfl build flash && openfl run flash , which in turn should behave practically the same as lime build flash && lime run flash . openfl test flash与运行openfl build flash && openfl run flash相似,后者的行为实际上应与lime build flash && lime run flash

I think your lime build flash command is working properly, but is exiting because the application has finished building. 我认为您的lime build flash命令运行正常,但是由于应用程序完成了构建而正在退出。 If you use lime test flash instead, it might build-and-run for you, as the other command does? 如果您改用lime test flash ,它可能会像其他命令那样为您构建并运行?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM