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

More detailed No_Such_Method error message for function like objects #10328

Merged
merged 3 commits into from
Jun 25, 2024

Conversation

JaroslavTulach
Copy link
Member

@JaroslavTulach JaroslavTulach commented Jun 21, 2024

Pull Request Description

Fixes #10147 by improving the error message for anything that looks like Enso Function.

Checklist

Please ensure that the following checklist has been satisfied before submitting the PR:

  • All code follows the Enso practices
  • Unit tests have been written where possible.

Co-authored-by: GregoryTravis <[email protected]>
@JaroslavTulach JaroslavTulach merged commit 0cde0e7 into develop Jun 25, 2024
41 checks passed
@JaroslavTulach JaroslavTulach deleted the wip/jtulach/NoSuchMethodMessage10147 branch June 25, 2024 09:36
Comment on lines +63 to +66
p . should_fail_with No_Such_Method
p.to_display_text . should_contain "Method `sample`"
p.to_display_text . should_contain "of ..B"
p.to_display_text . should_contain "not be found"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for addressing this! The new error message looks much more helpful.

hubertp added a commit that referenced this pull request Aug 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI: No changelog needed Do not require a changelog entry for this PR.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Can we try reporting a more relevant error if autoscope constructor meets missing type annotation?
4 participants