我最近尝试用haxe/lime开发,我有两件事吓坏了我.1.我尝试通过此命令安装Lime:
> haxelib install lime
haxelib run lime setup
Run Code Online (Sandbox Code Playgroud)
并在"c:/"中自动安装Lime,我需要将文件移动到"lib"到haxe文件夹.
2.当我在FD中打开Lime项目时,我收到此错误:
> Called from ? line 1
Called from CommandLineTools.hx line 995
Called from CommandLineTools.hx line 23
Called from CommandLineTools.hx line 108
Called from CommandLineTools.hx line 190
Called from platforms/FlashPlatform.hx line 91
Called from /usr/lib/haxe/std/neko/_std/sys/io/File.hx line 30
Uncaught exception - Invalid field access : __s
Run Code Online (Sandbox Code Playgroud)
当我尝试构建项目时,我收到此错误:
> Warning: Could not find template file: flash/hxml
Warning: Could not find template file: flash/haxe
Fatal error: exception Failure("File not found bin/flash/haxe/release.hxml")
Build halted with errors (haxelib.exe).
Run Code Online (Sandbox Code Playgroud)
对于您的第一个问题,您似乎没有配置 haxelib 路径。
您可以使用以下命令设置库的路径:
haxelib setup
在这里放置您想要存储库的路径。
并且不要忘记安装 Lime 后要做的事情:
haxelib run lime setup就像它要求的那样。
对于您的 FD 问题,我想这可能是由于您将石灰文件夹移至另一个文件夹所致。一般来说,您永远不必将库移动到另一个文件夹,否则 haxe 将不知道位置。
如果不抱歉的话,我不使用 FD,而是使用 hide 或 sublime text。