当我尝试“导入assets.manager.FileLoader;”时为什么在haxeflixel项目中“找不到类型”?

时间:2018-02-18 16:10:04

标签: haxe openfl haxeflixel assetslibrary haxelib

我使用haxeflixel和语法 import assets.manager.FileLoader;
在此之后我有错误“未找到类型” 我的步骤
1-终端“haxelib安装assetsmanager”...完成
2- Project.xml <haxelib name="assetsmanager" />
3-在PS.hx里面“import assets.manager.FileLoader;”
第三步创建错误。 vscode终端告诉我这个

> Executing task: haxelib run lime test cpp -debug <

Called from ? line 1
Called from CommandLineTools.hx line 1400
Called from CommandLineTools.hx line 25
Called from a C function
Called from CommandLineTools.hx line 126
Called from CommandLineTools.hx line 619
Called from lime/project/PlatformTarget.hx line 70
Called from lime/tools/platforms/LinuxPlatform.hx line 300
Called from lime/project/HXProject.hx line 244
Called from lime/project/ConfigData.hx line 35
Called from lime/tools/helpers/ObjectHelper.hx line 127
Called from lime/tools/helpers/ObjectHelper.hx line 127
Called from lime/tools/helpers/ObjectHelper.hx line 127
Called from lime/tools/helpers/ObjectHelper.hx line 76
Called from /usr/share/haxe/std/neko/_std/Array.hx line 118
Uncaught exception - Invalid operation (+)
Процесс терминала завершен с кодом выхода: 1

这是来自Array.hx源的函数

    public function push(x:T) : Int {
        var l = this.length;
        this.__grow(l + 1);  //line 118
        this.__a[l] = x;
        return l + 1;
    }

我使用vscode 1.20.1,ubuntu 16.04.3 x64,并从此链接导入语法
https://github.com/tiagolr/assetsmanager/blob/master/tests/TestLoadFiles.hx

我的石灰2.9.1从源代码重建,支持api26 for android targeting。

完整配置

haxe 3.4.4
nekoVM 2.1.0

haxelib 3.3.0
assetsmanager: [1.2.0]
async: [0.3.0]
flixel-addons: [2.5.0]
flixel-demos: [2.4.3]
flixel-templates: [2.4.6]
flixel-tools: [1.4.1]
flixel-ui: [2.2.0]
flixel: [4.3.0]
format: [3.4.0]
hxcpp: [3.4.64] 3.4.188
lime-samples: [4.0.1]
lime: [2.9.1] rebuilded from source as i said above
mlib: [2.0.2]
msignal: [1.2.4]
openfl: [3.6.1]

0 个答案:

没有答案