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

compiler: Improve error messages with jaro_similarity #8699

Merged

Conversation

lucioleKi
Copy link
Contributor

For errors that can easily be caused by typos, we now check distances to possible fixes and suggest it if it is close enough.

Two example error messages (function baz/1 and variable State are defined):

function bar/1 undefined, did you mean baz/1?
variable 'Stat' is unbound, did you mean 'State'?

Error types that are extended by this change: bad_inline, undefined_nif, bad_nowarn_unused_function, undefined_on_load, undefined_function, undefined_record, undefined_field, unbound_var.

For errors that can easily be caused by typos, we now check distances to possible fixes and suggest it if it is close enough.

Two example error messages (function baz/1 and variable State are defined):
function bar/1 undefined, did you mean baz/1?
variable 'Stat' is unbound, did you mean 'State'?

Error types that are extended by this change: bad_inline, undefined_nif, bad_nowarn_unused_function, undefined_on_load, undefined_function, undefined_record, undefined_field, unbound_var.
@lucioleKi lucioleKi added the testing currently being tested, tag is used by OTP internal CI label Aug 6, 2024
Copy link
Contributor

github-actions bot commented Aug 6, 2024

CT Test Results

    2 files     95 suites   35m 11s ⏱️
2 143 tests 2 094 ✅ 48 💤 1 ❌
2 452 runs  2 401 ✅ 50 💤 1 ❌

For more details on these failures, see this check.

Results for commit 88f1d4b.

♻️ This comment has been updated with latest results.

To speed up review, make sure that you have read Contributing to Erlang/OTP and that all checks pass.

See the TESTING and DEVELOPMENT HowTo guides for details about how to run test locally.

Artifacts

// Erlang/OTP Github Action Bot

@bjorng bjorng added the team:VM Assigned to OTP team VM label Aug 6, 2024
@lucioleKi lucioleKi self-assigned this Aug 6, 2024
@lucioleKi lucioleKi added testing currently being tested, tag is used by OTP internal CI and removed testing currently being tested, tag is used by OTP internal CI labels Aug 6, 2024
@lucioleKi lucioleKi merged commit fc482f0 into erlang:master Aug 13, 2024
15 of 17 checks passed
lucioleKi added a commit that referenced this pull request Aug 15, 2024
* isabell/parsetools/yecc-test-fix:
  yecc_SUITE: fix errors after PR #8699 jaro similarity
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
team:VM Assigned to OTP team VM testing currently being tested, tag is used by OTP internal CI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants