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

Catching Errors in Polyglot Shell #117

Closed
LeonBein opened this issue Jun 15, 2020 · 0 comments
Closed

Catching Errors in Polyglot Shell #117

LeonBein opened this issue Jun 15, 2020 · 0 comments

Comments

@LeonBein
Copy link

When running Smalltalk in the Polyglot Shell
When an error occurs, e.g. by simply running 1 shouldNotImplement
The Shell freezes and in some cases even cannot be terminated with Ctrl+C

As a developer I would expect an error message to be printed to the Shell and then be able to use the Shell again.

fniephaus added a commit that referenced this issue Jun 16, 2020
- Add support for InteropLibrary's isException/throwException.
- Change default for headless option to true (headless should only be false if TruffleSqueak is started through its launcher).
- Throw SmalltalkExceptions as SqueakInteropException in case another language has triggered the code execution. This makes it possible to catch exceptions in other languages (e.g. JS: `try { Polyglot.eval("smalltalk", "1/0") } catch (error) { console.error("Got:", error) }`)
- Update in-image code to include an appropriate test

Closes #117
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant