-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Helpful error when constant not found #6146
Helpful error when constant not found #6146
Conversation
A few failing specs where I need to use the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please make sure to add specs for the behaviour added in this PR!
Try this... | ||
▸ Require the file with #{type.program.colorize(self).bold}. For example: #{colorized_require_example} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the file with Foo seems a bit imprecise. What about the file that defines Foo?
Or, more similar to the second suggestion:
If Foo is declared in a file, add a relative require
require "./foo"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great suggestion 👍
I have been working on some other stuff with Lucky, but I'll come back to this PR this week (hopefully!). |
@paulcsmith what a long week 😄 Have you the time to continue on this? |
Closing stale PR. There has been no activity for a long time and there's no point in keeping this open. |
Closes #6122