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

Error message provides wrong code locationn #50378

Closed
orenbenkiki opened this issue Jul 1, 2023 · 1 comment
Closed

Error message provides wrong code locationn #50378

orenbenkiki opened this issue Jul 1, 2023 · 1 comment
Labels
duplicate Indicates similar issues or pull requests error messages Better, more actionable error messages

Comments

@orenbenkiki
Copy link

Compiling

struct Foo
    bar::Int
    baz::Vector{String, String}
end

Gives the error message:

ERROR: LoadError: too many parameters for type
Stacktrace:
 [1] top-level scope
   @ .../bug.jl:1
in expression starting at .../bug.jl:1

This should mention line 3 somewhere in the error message.

It is easy enough to see for a small struct like here, but for a large structure, it is far from obvious which line it is actually complaining about.

@KristofferC KristofferC added the error messages Better, more actionable error messages label Jul 5, 2023
@nsajko nsajko added the duplicate Indicates similar issues or pull requests label Jan 28, 2024
@nsajko
Copy link
Contributor

nsajko commented Jan 28, 2024

Dup: #38531

@nsajko nsajko closed this as completed Jan 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate Indicates similar issues or pull requests error messages Better, more actionable error messages
Projects
None yet
Development

No branches or pull requests

3 participants