enso/lib/java
Jaroslav Tulach e5f865f1df
Print out warnings associated with local variables (#10842)
Fixes #9749 by:
- [x] Adding `fn` option to `enso-debug-server` instrument - eb3b76e
- [x] Print warnings (if any) to stderr - 4fda04b
- [x] Improving output of `:list` to print out warnings - dbe3c45480
- [x] Print errors to stderr - 1312546
- [x] Exiting on `DataflowError` - 2cc7ef5 and e6fbf73
- [x] Using all of that inside of `runner/*Main` - 7df58ef

The core of the change is in instrumentation that wraps the `main` method and at its end checks for _warnings or errors_ among local variables. When an error is found, it wraps the original return value of `main` with a proxy that delegates to the original value, but also pretends to be _exit exception_ with exit code 173. That one is detected in `Main` launcher to exit the process with exit code 173.

# Important Notes
As a side-effect of this change, one can request an invocation of REPL at the end of any method just by providing a property to the VM:
```bash
$ enso --vm.D=polyglot.enso-debug-server.method-break-point=err_test.main --run err_test.enso --repl
```
stops at the end of `main` method of `err_test.enso` file.
2024-08-21 07:00:54 +00:00
..
benchmarks-common/src/main/java/org/enso/interpreter/bench Towards simplifying runtime-compiler dependencies (#8894) 2024-04-25 10:03:42 +02:00
desktop-environment/src Soft delete projects by moving them to trash (#10440) 2024-07-27 13:37:43 +00:00
persistance/src Enso language support with parser in VSCode, IGV, etc. (#7054) 2024-06-14 14:01:37 +00:00
persistance-dsl/src/main/java/org/enso/persist/impl Enso language support with parser in VSCode, IGV, etc. (#7054) 2024-06-14 14:01:37 +00:00
test-utils/src/main/java/org/enso/test/utils Print out warnings associated with local variables (#10842) 2024-08-21 07:00:54 +00:00
yaml/src/main/java/org/yaml/snakeyaml/introspector Importing (some of) Standard.Base works from NI runner (#9866) 2024-05-17 14:42:35 +02:00
ydoc-server/src Split ydoc server into separate module (#10735) 2024-08-08 12:12:05 +00:00