mirror of
https://github.com/enso-org/enso.git
synced 2024-12-24 16:21:37 +03:00
d0124fbb02
I was modifying `Date_Spec.enso` today and made a mistake. When executing with I could see the error, but the process got stuck... ``` enso/test/Tests/src/Data/Time$ ../../../../built-distribution/enso-engine-0.0.0-dev-linux-amd64/enso-0.0.0-dev/bin/enso --run Date_Spec.enso In module Date_Spec: Compiler encountered warnings: Date_Spec.enso[14:29-14:37]: Unused function argument parseDate. Compiler encountered errors: Date_Spec.enso[18:13-18:20]: Variable `debugger` is not defined. Exception in thread "main" Compilation aborted due to errors. at org.graalvm.sdk/org.graalvm.polyglot.Value.invokeMember(Value.java:932) at org.enso.polyglot.Module.getAssociatedConstructor(Module.scala:19) at org.enso.runner.Main$.runMain(Main.scala:755) at org.enso.runner.Main$.runSingleFile(Main.scala:695) at org.enso.runner.Main$.run(Main.scala:582) at org.enso.runner.Main$.main(Main.scala:1031) at org.enso.runner.Main.main(Main.scala) ^C ``` ...had to kill it with Ctrl-C. This PR fixes the problem by moving `getAssociatedConstructor` call into `try` block, catching the exception and exiting properly. |
||
---|---|---|
.. | ||
jupyter-kernel/enso | ||
src/main/scala/org/enso/runner |