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
Unclear compilation error in Python course with keyword typo #54052
Comments
While that is true and the syntax highlighting is a wonderful thing; I don't think some less savvy campers will pay attention to the highlighted words. Additionally, some of them might not pick up on why some words are highlighted in the FreeCodeCamp Code Editor. I don't believe at any point up to this section it ever gets explained, though it has been a while since I did a deep dive into the curriculum. A clear definitive message leaves absolutely zero ambiguity in what kind of error was performed. It'd be one thing if the camper gets some kind of feedback saying they must have a |
My idea is that we should provide a clear indication of the line that caused the error, and other information you would normally get from a traceback. This would help campers and it is also necessary to introduce exceptions. |
@ojeytonwilliams how is it going with the managing of the exceptions? |
I haven't had chance to look at it, sorry. I may soon be blocked on some other things I need to work on and so have time for this, but I'm not sure. |
Hi there. I tried tacking this issue myself, but I ran into a small issue. The exception is literally labeled 'other', and I'm having trouble locating where exactly that error information comes from. Can I please get pointed in the right direction? |
Thanks, found what was wrong with my code by googling and finding this post lol |
I'd be okay with opening this up to contributions, for anyone feeling a li'l ambitious. |
Now that #54185 has been merged, is this still needed? |
I don't believe so? |
I'm going to close it. I didn't realize that Oliver's PR didn't link to this issue. |
Describe the Issue
If campers make a typo like using "While" instead of "while" for their loop construct, they have no idea if it's a spacing problem or they're using the wrong keyword. There must be a way to let them know what kind of issue they're facing.
Affected Page
https://www.freecodecamp.org/learn/scientific-computing-with-python/learn-regular-expressions-by-building-a-password-generator/step-24
Your code
Expected behavior
The console should inform the camper that the phrase
While
was unexpected or something among those lines. If a compilation error is happening, the camper should always know what it means instead of guessing.Screenshots
System
Additional context
First reported in this thread: https://forum.freecodecamp.org/t/learn-regular-expressions-by-building-a-password-generator-step-24/678788
I also am fairly sure someone accidentally left a
console.log
statement inexecute-challenge-saga.js
regardingnewTest
and it should probably be removed.The text was updated successfully, but these errors were encountered: