Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeScript won't run #910

Closed
Tracked by #824 ...
sgammon opened this issue May 15, 2024 · 0 comments · Fixed by #968
Closed
Tracked by #824 ...

TypeScript won't run #910

sgammon opened this issue May 15, 2024 · 0 comments · Fixed by #968
Assignees
Labels
bug Something isn't working

Comments

@sgammon
Copy link
Member

sgammon commented May 15, 2024

Expected Behavior

  1. Download Elide at alpha9
  2. Write some TypeScript to a file
  3. Run elide test.ts
  4. It runs

Actual Behaviour

  1. Download Elide at alpha9
  2. Write some TypeScript to a file
  3. Run elide test.ts
  4. It crashes

Stacktrace

java.lang.IllegalArgumentException: A language with id 'typescript' is not installed. Installed languages are: [llvm, python, ruby, js, ts, wasm].
	at org.graalvm.truffle/com.oracle.truffle.polyglot.PolyglotEngineImpl.throwNotInstalled(PolyglotEngineImpl.java:1168)
	at org.graalvm.truffle/com.oracle.truffle.polyglot.PolyglotEngineImpl.requirePublicLanguage(PolyglotEngineImpl.java:1175)
	at org.graalvm.truffle/com.oracle.truffle.polyglot.PolyglotContextImpl.requirePublicLanguage(PolyglotContextImpl.java:1700)
	at org.graalvm.truffle/com.oracle.truffle.polyglot.PolyglotContextImpl.lookupLanguageContext(PolyglotContextImpl.java:1662)
	at org.graalvm.truffle/com.oracle.truffle.polyglot.PolyglotContextImpl.parse(PolyglotContextImpl.java:1643)
	at org.graalvm.truffle/com.oracle.truffle.polyglot.PolyglotContextDispatch.parse(PolyglotContextDispatch.java:65)
	at org.graalvm.polyglot/org.graalvm.polyglot.Context.parse(Context.java:483)
	at elide.runtime.core.internals.graalvm.GraalVMContext.parse(GraalVMContext.kt:42)
	at elide.tool.cli.cmd.repl.ToolShellCommand.readExecuteCode(ToolShellCommand.kt:1515)
	at elide.tool.cli.cmd.repl.ToolShellCommand.invoke$lambda$58(ToolShellCommand.kt:1862)
	at elide.tool.cli.AbstractSubcommand.withContext(AbstractSubcommand.kt:540)
	at elide.tool.cli.cmd.repl.ToolShellCommand.invoke(ToolShellCommand.kt:1808)
	at elide.tool.cli.cmd.repl.ToolShellCommand$invoke$1.invokeSuspend(ToolShellCommand.kt)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:104)
	at kotlinx.coroutines.EventLoopImplBase.processNextEvent(EventLoop.common.kt:277)
	at kotlinx.coroutines.BlockingCoroutine.joinBlocking(Builders.kt:95)
	at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking(Builders.kt:69)
	at kotlinx.coroutines.BuildersKt.runBlocking(Unknown Source)
	at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking$default(Builders.kt:48)
	at kotlinx.coroutines.BuildersKt.runBlocking$default(Unknown Source)
	at elide.tool.cli.AbstractToolCommand.execute(AbstractToolCommand.kt:129)
	at elide.tool.cli.AbstractToolCommand.call(AbstractToolCommand.kt:153)
	at elide.tool.cli.ElideTool.invoke-AZeniH0(ElideTool.kt:273)
	at elide.tool.cli.AbstractToolCommand$call$1.invokeSuspend(AbstractToolCommand.kt:154)
	at elide.tool.cli.AbstractToolCommand$call$1.invoke-AZeniH0(AbstractToolCommand.kt)
	at elide.tool.cli.AbstractToolCommand$call$1.invoke(AbstractToolCommand.kt)
	at elide.tool.cli.AbstractToolCommand$execute$6.invokeSuspend(AbstractToolCommand.kt:130)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:104)
	at kotlinx.coroutines.EventLoopImplBase.processNextEvent(EventLoop.common.kt:277)
	at kotlinx.coroutines.BlockingCoroutine.joinBlocking(Builders.kt:95)
	at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking(Builders.kt:69)
	at kotlinx.coroutines.BuildersKt.runBlocking(Unknown Source)
	at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking$default(Builders.kt:48)
	at kotlinx.coroutines.BuildersKt.runBlocking$default(Unknown Source)
	at elide.tool.cli.AbstractToolCommand.execute(AbstractToolCommand.kt:129)
	at elide.tool.cli.AbstractToolCommand.call(AbstractToolCommand.kt:153)
	at elide.tool.cli.AbstractToolCommand.run(AbstractToolCommand.kt:164)
	at picocli.CommandLine.executeUserObject(CommandLine.java:2030)
	at picocli.CommandLine.access$1500(CommandLine.java:148)
	at picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2465)
	at picocli.CommandLine$RunLast.handle(CommandLine.java:2457)
	at picocli.CommandLine$RunLast.handle(CommandLine.java:2419)
	at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2277)
	at picocli.CommandLine$RunLast.execute(CommandLine.java:2421)
	at picocli.CommandLine.execute(CommandLine.java:2174)
	at elide.tool.cli.ElideTool$Companion.exec$cli(ElideTool.kt:189)
	at elide.tool.cli.ElideTool$Companion.main(ElideTool.kt:160)
	at elide.tool.cli.ElideTool.main(ElideTool.kt)

Steps To Reproduce

See above.

Environment Information

  • Operating System: macOS 14.x Sonoma
  • Architecture: M-series (aarch64)

Runtime

Native, JVM

Language

JavaScript

Example Application

No response

Version

1.0.0-alpha9

@sgammon sgammon added the bug Something isn't working label May 15, 2024
@sgammon sgammon added this to the Release R6: Alpha 10 milestone May 15, 2024
@sgammon sgammon self-assigned this May 15, 2024
@sgammon sgammon added this to Elide May 15, 2024
@github-project-automation github-project-automation bot moved this to Done in Elide Jun 4, 2024
This was referenced Jun 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant