2

在此之后我使用 haxeflixel 和语法 import assets.manager.FileLoader;
我有错误“找不到类型”我的步骤
1-终端“haxelib 安装 assetsmanager”... 完成
2-Project.xml <haxelib name="assetsmanager" />
3-在 PS.hx“导入 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 是从源代码重建的,它支持用于 android 定位的 api26。

完整配置

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]
4

0 回答 0