failed WRONG_FIX UNSUBMITTED wrong_fix_unsubmitted(None) · None tool calls · 0 s · Textualize/rich
(not found in data/tasks.jsonl)
| # | Tool | Arguments | Result |
|---|---|---|---|
| No trace captured. | |||
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -20,6 +20,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Fixed recursion error in Jupyter progress bars https://github.com/Textualize/rich/issues/2047
- Complex numbers are now identified by the highlighter https://github.com/Textualize/rich/issues/2214
- Fix crash on IDLE and forced is_terminal detection to False because IDLE can't do escape codes https://github.com/Textualize/rich/issues/2222
+- Fixed missing blank line in traceback rendering https://github.com/Textualize/rich/issues/2206
### Changed
--- a/rich/traceback.py
+++ b/rich/traceback.py
@@ -584,7 +584,7 @@ class Traceback:
)
excluded = False
- first = frame_index == 1
+ first = frame_index == 0
frame_filename = frame.filename
suppressed = any(frame_filename.startswith(path) for path in self.suppress)
..............F
=================================== FAILURES ===================================
___________________________ test_guess_lexer_yaml_j2 ___________________________
def test_guess_lexer_yaml_j2():
# https://github.com/Textualize/rich/issues/2018
code = """\
foobar:
something: {{ raiser() }}
else: {{ 5 + 5 }}
"""
> assert Traceback._guess_lexer("test.yaml.j2", code) == "text"
E AssertionError: assert 'YAML+Jinja' == 'text'
E
E - text
E + YAML+Jinja
tests/test_traceback.py:279: AssertionError
=============================== warnings summary ===============================
tests/test_traceback.py:51
/private/tmp/swe_work/mined_oracle/rich_2225/b/workspace/tests/test_traceback.py:51: SyntaxWarning: invalid escape sequence '\.'
"^│ .+rich/tests/test_traceback\.py:",
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
!!!!!!!!!!!!!!!!!!!!!!!!!! stopping after 1 failures !!!!!!!!!!!!!!!!!!!!!!!!!!!
1 failed, 14 passed, 1 warning in 0.58s