defold / editor2-issues

DEPRECATED
44 stars 4 forks source link

Unable to build #2933

Open joseph-montanez opened 4 years ago

joseph-montanez commented 4 years ago

Expected behaviour

The game will build...

Actual behaviour

I get this error.

java.util.concurrent.ExecutionException: java.lang.AssertionError: Assert failed: (not (g/error? bytecode))
java.lang.AssertionError: Assert failed: (not (g/error? bytecode))

Steps to reproduce

Try to build this project

https://github.com/joseph-montanez/RPG-map-sample


Build time2020-03-03T08:34:30.874440
Defold channeleditor-alpha
Defold editor sha95fcc9ca28d33583c7103c40c0c54cc73143e322
Defold engine sha5295afb3878441fb12f497df8831148525dcfb10
Defold version1.2.166
Error1c17e1c556b84a698d5be7a563094e1f
GPUIntel(R) UHD Graphics 620
GPU Driver4.5.0 - Build 24.20.100.6025
Java version11.0.1+13
OS archamd64
OS nameWindows 10
OS version10.0
joseph-montanez commented 4 years ago

I was able to isolate the issue to the following:

https://github.com/joseph-montanez/RPG-map-sample/blob/master/main/tilemap.script#L72

        local anim = go.property(url, "anim")
        local axe = go.property(url, "axe")
        local input = go.property(url, "input")
        local pp = go.property(url, "pp")
        local velocity = go.property(url, "velocity")
        local facing = go.property(url, "facing")
        local correction = go.property(url, "correction")

I should not have been using go.property, rather go.get. I assume this is a parsing error, since go.property triggers some special lookup outside the engine itself to display the property within the editor.

britzl commented 4 years ago

Correct, that is a parsing error. Good that you found the reason!