Skip to content
This repository has been archived by the owner on Dec 10, 2022. It is now read-only.

run pass,but runJs g #296

Open
zaoqi opened this issue Mar 23, 2019 · 2 comments
Open

run pass,but runJs g #296

zaoqi opened this issue Mar 23, 2019 · 2 comments
Labels

Comments

@zaoqi
Copy link

zaoqi commented Mar 23, 2019

https://gitlab.com/the-language/the-language/tree/cfccbf88377b9c69795113dc008713fc2a3e2611/core/arch/jtransc

$ ./gradlew run

> Task :run
!!#(符名 太始初核 (一類何物 (式形 (化滅 省略一物 化滅)) 特定其物))!!


BUILD SUCCESSFUL in 2s
2 actionable tasks: 1 executed, 1 up-to-date
$ ./gradlew runJs

> Task :runJs
Execute command /usr/bin/node /home/1828_sandbox/src/the-language/core/arch/jtransc/build/jtransc-js/program.js
/home/1828_sandbox/src/the-language/core/arch/jtransc/build/jtransc-js/program.js:154314
                return ((p0["subFrom(I)Lorg/luaj/vm2/LuaValue;"](this._v)));

                           ^
TypeError: Cannot read property 'subFrom(I)Lorg/luaj/vm2/LuaValue;' of undefined
    at org_luaj_vm2_LuaInteger.sub(Lorg/luaj/vm2/LuaValue;)Lorg/luaj/vm2/LuaValue; (/home/1828_sandbox/src/the-language/core/arc
h/jtransc/build/jtransc-js/program.js:154314:14)
    at lang_lang_luaj$40.call(Lorg/luaj/vm2/LuaValue;)Lorg/luaj/vm2/LuaValue; (/home/1828_sandbox/src/the-language/core/arch/jtr
ansc/build/jtransc-js/program.js:145463:109)

    at lang_lang_luaj$40.invoke(Lorg/luaj/vm2/Varargs;)Lorg/luaj/vm2/Varargs; (/home/1828_sandbox/src/the-language/core/arch/jtr
ansc/build/jtransc-js/program.js:38077:73)
    at lang_lang_luaj$40.onInvoke(Lorg/luaj/vm2/Varargs;)Lorg/luaj/vm2/Varargs; (/home/1828_sandbox/src/the-language/core/arch/j
transc/build/jtransc-js/program.js:22763:72)
    at org_luaj_vm2_TailcallVarargs.eval()Lorg/luaj/vm2/Varargs; (/home/1828_sandbox/src/the-language/core/arch/jtransc/build/jt
ransc-js/program.js:151277:83)
    at lang_lang_luaj$41.invoke(Lorg/luaj/vm2/Varargs;)Lorg/luaj/vm2/Varargs; (/home/1828_sandbox/src/the-language/core/arch/jtr
ansc/build/jtransc-js/program.js:37904:114)
    at lang_lang_luaj$41.invoke(Lorg/luaj/vm2/LuaValue;Lorg/luaj/vm2/Varargs;)Lorg/luaj/vm2/Varargs; (/home/1828_sandbox/src/the
-language/core/arch/jtransc/build/jtransc-js/program.js:21576:72)
    at lang_lang_luaj.onInvoke(Lorg/luaj/vm2/Varargs;)Lorg/luaj/vm2/Varargs; (/home/1828_sandbox/src/the-language/core/arch/jtra
nsc/build/jtransc-js/program.js:195736:98)
    at lang_lang_luaj.invoke(Lorg/luaj/vm2/Varargs;)Lorg/luaj/vm2/Varargs; (/home/1828_sandbox/src/the-language/core/arch/jtrans
c/build/jtransc-js/program.js:37904:76)
    at lang_lang_luaj.call(Lorg/luaj/vm2/LuaValue;Lorg/luaj/vm2/LuaValue;)Lorg/luaj/vm2/LuaValue; (/home/1828_sandbox/src/the-la
nguage/core/arch/jtransc/build/jtransc-js/program.js:37898:74)
ERROR (2944) (1)


FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':runJs'.
> com.jtransc.error.InvalidOperationException: Process exited with code 1

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan t
o get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 12s
6 actionable tasks: 1 executed, 5 up-to-date
@zaoqi
Copy link
Author

zaoqi commented Mar 23, 2019

$ ./gradlew runPhp

> Task :runPhp
SyncVfsFile(AccessSyncVfs(com.jtransc.vfs._LocalVfs@573792d8, /home/1828_sandbox/src/the-language/core/arch/jtransc/build/jtrans
c-php), '')

Execute command /usr/bin/php /home/1828_sandbox/src/the-language/core/arch/jtransc/build/jtransc-php/program.php

PHP Parse error:  syntax error, unexpected '?', expecting variable (T_VARIABLE) in /home/1828_sandbox/src/the-language/core/arch
/jtransc/build/jtransc-php/program.php on line 850
ERROR (7934) (255)


FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':runPhp'.
> com.jtransc.error.InvalidOperationException: Process exited with code 255

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan t
o get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 1m 49s
6 actionable tasks: 1 executed, 5 up-to-date

@soywiz soywiz added the bug label Mar 23, 2019
@intrigus
Copy link
Contributor

Unfortunately developement on jtransc mostly ceased.
I guess that you're hitting some kind of edge-case or that the needed language feature/library hasn't been implemented.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants