name: Bug report
description: Report a bug. For security vulnerabilities see Report a security vulnerability in the templates.
title: "BUG: <Please write a comprehensive title after the 'BUG: ' prefix>"
labels: [00 - Bug]

body:
- type: markdown
  attributes:
    value: >
      Thank you for taking the time to file a bug report. Before creating a new
      issue, please make sure to take a few minutes to check the issue tracker
      for existing issues about the bug.
    
- type: textarea
  attributes: 
    label: "Describe the issue:"
  validations:
    required: true

- type: textarea
  attributes:
    label: "Reproduce the code example:"
    description: >
      A short code example that reproduces the problem/missing feature. It
      should be self-contained, i.e., can be copy-pasted into the Python
      interpreter or run as-is via `python myproblem.py`.
    placeholder: |
      import numpy as np
      << your code here >>
    render: python
  validations:
    required: true
  
- type: textarea
  attributes:
    label: "Error message:"
    description: >
      Please include full error message, if any.
      If you are reporting a segfault please include a GDB traceback,
      which you can generate by following
      [these instructions](https://github.com/numpy/numpy/blob/main/doc/source/dev/development_environment.rst#debugging).
    placeholder: |
      << Full traceback starting from `Traceback: ...` >>
    render: shell

- type: textarea
  attributes:
    label: "Python and NumPy Versions:"
    description: >
      Output from `import sys, numpy; print(numpy.__version__); print(sys.version)`.
  validations:
    required: true

- type: textarea
  attributes:
    label: "Runtime Environment:"
    description: |
      1. Install `threadpoolctl` (e.g. with `pip` or `conda`)
      2. Paste the output of `import numpy; numpy.show_runtime()`.

      Note: Only valid for NumPy 1.24 or newer.
  validations:
    required: false

- type: textarea
  attributes:
    label: "How does this issue affect you or how did you find it:"
    description: |
      Please explain how this issue concretely affects you or others.
      Especially if it does not impact you how did you find it?
      (If an issue has no concrete impact this is also helpful to know.)
    placeholder: |
      << description of how the issue affects you >>
  validations:
    required: false
