-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Better error message for "undeclared identifier" #3911
Comments
What else do you want? A compiler making you breakfast. It's counterproductive to always blame the compiler for everything. |
Haskell's GHC has a nice way of handling this, searching for similar identifiers in general: foobar = "abc"
foo_bar = "def"
bazbaz = "ghi"
main = putStrLn fooBar Fails with:
|
Don't be cheeky. This is a legitimate feature request and it will help a lot of newbies. I want precisely what @def- showed. |
I created another general issue for this #3914. |
This issue has been automatically marked as stale because it has not had recent activity. If you think it is still a valid issue, write a comment below; otherwise it will be closed. Thank you for your contributions. |
…s in scope with similar spellings on undefined symbol error (nim-lang#16067) * add --spellsuggest to suggest symbols in scope with similar spellings on undefined symbol errors * implement --spellsuggest with 0 arguments
…s in scope with similar spellings on undefined symbol error (nim-lang#16067) * add --spellsuggest to suggest symbols in scope with similar spellings on undefined symbol errors * implement --spellsuggest with 0 arguments
This error could be improved in many ways, one way that I think would help a lot is in the following case:
Instead of just
If an identifier with the same name but different case in the first letter exists, it would be nice to include
. 'FooBar' is declared but remember that first letter is case sensitive
.The text was updated successfully, but these errors were encountered: