-
-
Notifications
You must be signed in to change notification settings - Fork 159
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
word_parse.py: parse_backslash (errors + hinting questions) #1824
base: master
Are you sure you want to change the base?
Conversation
The error + question style works out quite good. (see description) |
I think this belongs in a new file We want something like this - https://doc.rust-lang.org/error_codes/error-index.html This kind of description doesn't scale -- there will always be more context and hints you can add (and it's very hard to read and edit in the source code) |
Yes it is, I noticed that. I think referencing makes sense, to keep it maintainable. However, for a helpful interpreter I think at least short errors, info and hints must be compiled into the interpreter, and be printed by default. Mentioning some ID, or better even, also printing more detailed info if some doc package is installed could be a separate good thing. So what's there?
|
Addresses issues in pull request #1824. Now we have 4 hints!
OK I did something about this: You can download a new tarball from the CI if you want to check it out (task Feedback welcome! Instructions on how to update it are at the top of the doc. That is welcome too Although really we need to link more to the Oils reference, which is And then we need to write missing help topics too |
Ok, let's see how that goes. But don't you think adding at least one zero to each error category would make sense? 100->1000 |
I looked at the examples that you provided, and saw you only added some error explaining info after the bullet-question hints. (Wereas I had been adding such short error info (context/reason/what's good) right behind the error (what's wrong). May we add the error info lines before the question-hints, as ordered list maybe? And quite important, would you actually accept the lines that I prepared in the pull requests so far? |
This is to provide consistent short error messages, and adds minimal hinting questions for context and immediate help-on-error.
Note how the messages even improve more once
parse_backslash
gets renamed intostrict_backslash_escape
.Example error messaage: