-
-
Notifications
You must be signed in to change notification settings - Fork 531
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
tox.ini syntax error messages #1692
Labels
feature:new
something does not exist yet, but should
Comments
Agreed we should have a more user-friendly error for these. |
I suspect a non-empty file without a section header resulting in |
Seems fixed in version 4. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
These two ini files cause rather unhelpful error backtraces. The first exception has a line number which could be used to provide a useful error message. The second doesnt have a line number (that might be fixable upstream in iniconfig), and the testenv name is hidden in the py3 backtrace("python" in
...ConfigError: python failed..
) so that could be made more prominent.Obviously these are contrived ini files; they are intentionally minimal test cases to show what can happen if a
\
is accidentally misplaced. Reading iniconfig source, it looks like similar errors can be triggered with misplaced:
, and semantic errors like duplicate or missing section names or item names.Backtraces respectively:
The text was updated successfully, but these errors were encountered: