-
-
Notifications
You must be signed in to change notification settings - Fork 292
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
"Multiple definitions" error message on begin ... end
is misleading
#3061
"Multiple definitions" error message on begin ... end
is misleading
#3061
Comments
Woww so weird that it depends on which letter you use!! What is that about 🙈 |
About the confusing error message, in your example the improvement would be to detect that Our code understands this. But when the error is generated, a different (simpler) algorithm determines which variable names to show in the error: And this one catches the |
I improved the error message in #3061 |
This error message is quite confusing:
By renaming
a
in one of the two cells, the error disappears, so there is nothing wrong withBase
. But this can be quite difficult to troubleshoot in more complex scenarios.It gets even stranger when renaming the variable to
c
Then the error only mentionsBase
and not the variable with the actual error. This seems to happen when using the namesc
ore
but nota
,b
,d
orf
.Tested in Pluto 0.20.0 / Julia 1.11 and partially in Pluto 0.19.40 / Julia 1.9.3.
The text was updated successfully, but these errors were encountered: