Skip to content

Update crash issue template to use syntax highlighting in code blocks #19527

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

Merged

Conversation

brianschubert
Copy link
Member

People often forget or don't know how to add syntax highlighting to markdown code blocks (especially for tracebacks!). Let's help them out by pre-filling the template with code blocks that have the right language hints.

Copy link
Collaborator

@sterliakov sterliakov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea, thanks! Is python-traceback tag OK with non-traceback lines? Reports will often have several mypy diagnostics before Traceback (most recent call last:

@brianschubert
Copy link
Member Author

Looks ok to me:

TESTFILES/SCRATCH.py:1: note: Revealed type is "int"
TESTFILES/SCRATCH.py:2: error: INTERNAL ERROR -- Please try using mypy master on GitHub:
https://mypy.readthedocs.io/en/stable/common_issues.html#using-a-development-mypy-build
Please report a bug at https://github.com/python/mypy/issues
version: 1.18.0+dev.ad76e1628e2d4fe52d89a80d51890bf84afad38f
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
# <snip>
  File "/home/brian/Projects/open-contrib/mypy/mypy/semanal.py", line 2215, in clean_up_bases_and_infer_type_variables
    assert isinstance(node.node, TypeVarLikeExpr)
           ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: 

@JelleZijlstra JelleZijlstra merged commit 2ce5795 into python:master Aug 2, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants