enso/test
Hubert Plociniczak e163353d16
Deprecate Error's to_display_text builtin methods (#6275)
The primary motivation for this change was
https://github.com/enso-org/enso/issues/6248, which requested the possibility of defining `to_display_text` methods of common errors via regular method definitions. Until now one could only define them via builtins.

To be able to support that, polyglot invocation had to report `to_display_text` in the list of (invokable) members, which it didn't. Until now, it only considered fields of constructors and builtin methods. That is now fixed as indicated by the change in `Atom`.

Closes #6248.

# Important Notes
Once most of builtins have been translated to regular Enso code, it became apparent how the usage of `.` at the end of the message is not consistent and inflexible. The pure message should never follow with a dot or it makes it impossible to pretty print consistently for the purpose of error reporting. Otherwise we regularly end up with errors ending with `..` or worse. So I went medieval on the reasons for failures and removed all the dots.
The overall result is mostly the same except now we are much more consistent.

Finally, there was a bit of a good reason for using builtins as it simplified our testing.
Take for example `No_Such_Method.Error`. If we do not import `Errors.Common` module we only rely on builtin error types. The type obviously has the constructor but it **does not have** `to_display_text` in scope; the latter is no longer a builtin method but a regular method. This is not really a problem for users who will always import stdlib but our tests often don't. Hence the number of changes and sometimes lack of human-readable errors there.
2023-04-14 19:14:49 +00:00
..
Benchmarks Detect conflicts between exported types and FQNs (#5986) 2023-03-21 21:09:41 +00:00
Examples_Tests Proper implementation of Value Types in Table (#6073) 2023-03-31 16:16:18 +00:00
Geo_Tests All Enso objects are hasheable (#3878) 2023-01-19 10:33:25 +01:00
Google_Api_Test Parse the standard library (#3830) 2022-10-31 16:19:12 +00:00
Image_Tests Small issues from working with Ned (#6160) 2023-04-03 13:01:42 +00:00
Meta_Test_Suite_Tests Remove old (Java) Regex library and replace with new (Truffle) library. (#6195) 2023-04-04 19:58:26 +00:00
micro-distribution Deprecate Error's to_display_text builtin methods (#6275) 2023-04-14 19:14:49 +00:00
Table_Tests Add split and tokenize to the Table. (#6233) 2023-04-14 16:03:02 +00:00
Tests Deprecate Error's to_display_text builtin methods (#6275) 2023-04-14 19:14:49 +00:00
Visualization_Tests Implement Table.union for Database backend (#6204) 2023-04-06 08:40:34 +00:00