Skip to content

Conversation

@vtjnash
Copy link
Member

@vtjnash vtjnash commented Apr 3, 2021

Looks like this got lost in deprecation removal?

vtjnash added 2 commits April 3, 2021 14:37
Looks like this got lost in deprecation removal?

function showerror(io::IO, ex::UndefVarError)
print(io, "UndefVarError: $(ex.var) not defined")
Experimental.show_error_hints(io, ex)
Copy link
Member

Choose a reason for hiding this comment

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

Can we keep that line? The goal of #39850 was to allow packages to add hints similar to the LegacyStrings one.

Copy link
Member Author

Choose a reason for hiding this comment

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

I suppose that doesn't hurt? I don't know that the API premise of Experimental.show_error_hints is, but I suppose an InteractiveUtils or REPL package might decide to spell check these or something

Copy link
Member

Choose a reason for hiding this comment

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

As far as API premises go, I think we probably just want to document the kinds of errors register_error_hint! supports and add them as users request them. We don't have that many error types anyways.

@vtjnash vtjnash added the merge me PR is reviewed. Merge when all tests are passing label Apr 3, 2021
@vtjnash vtjnash merged commit 0596d51 into master Apr 4, 2021
@vtjnash vtjnash deleted the jn/UndefVarError-deprecation branch April 4, 2021 05:39
@simeonschaub simeonschaub removed the merge me PR is reviewed. Merge when all tests are passing label Apr 28, 2021
ElOceanografo pushed a commit to ElOceanografo/julia that referenced this pull request May 4, 2021
Looks like this got lost in deprecation removal?
antoine-levitt pushed a commit to antoine-levitt/julia that referenced this pull request May 9, 2021
Looks like this got lost in deprecation removal?
johanmon pushed a commit to johanmon/julia that referenced this pull request Jul 5, 2021
Looks like this got lost in deprecation removal?
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

Successfully merging this pull request may close these issues.

4 participants