name: I have a problem with the library
description: File a bug report.
labels: ["bug"]
body:
  - type: markdown
    attributes:
      value: |
        Thanks for taking the time to fill out this bug report!
  - type: checkboxes
    attributes:
      label: Is your issue REALLY a bug?
      description: |
        This issue tracker is for __BUG REPORTS ONLY__.

        It's obvious, right? This is a bug report form, after all! Still, some crazy users seem to forcefully fill out this form just to ask questions and request features.

        The core team does not appreciate that. Don't do it.

        If you want to ask a question or request a feature, please [go back here](https://github.com/iced-rs/iced/issues/new/choose) and read carefully.
      options:
      - label: My issue is indeed a bug!
        required: true
      - label: I am not crazy! I will not fill out this form just to ask a question or request a feature. Pinky promise.
        required: true
  - type: checkboxes
    attributes:
      label: Is there an existing issue for this?
      description: |
        Please, search [the existing issues] and see if an issue already exists for the bug you encountered.

        [the existing issues]: https://github.com/iced-rs/iced/issues
      options:
      - label: I have searched the existing issues.
        required: true
  - type: checkboxes
    attributes:
      label: Is this issue related to iced?
      description: |
        If your application is crashing during startup or you are observing graphical glitches, there is a chance it may be caused by incompatible hardware or outdated graphics drivers.

        Before filing an issue...

        - If you are using `wgpu`, you need an environment that supports Vulkan, Metal, or DirectX 12. Please, make sure you can run [the `wgpu` examples].

        If you have any issues running any of the examples, make sure your graphics drivers are up-to-date. If the issues persist, please report them to the authors of the libraries directly!

        [the `wgpu` examples]: https://github.com/gfx-rs/wgpu/tree/trunk/examples
        [the `glow` examples]: https://github.com/grovesNL/glow/tree/main/examples
      options:
      - label: My hardware is compatible and my graphics drivers are up-to-date.
        required: true
  - type: textarea
    attributes:
      label: What happened?
      id: what-happened
      description: |
        What problem are you having? Please, also provide the steps to reproduce it.

        If the issue happens with a particular program, please share an [SSCCE].

        [SSCCE]: http://sscce.org/
    validations:
      required: true
  - type: textarea
    attributes:
      label: What is the expected behavior?
      id: what-expected
      description: What were you expecting to happen?
    validations:
      required: true
  - type: dropdown
    id: version
    attributes:
      label: Version
      description: |
        We only offer support for the latest release on crates.io and the `master` branch on this repository. Which version are you using? Please make sure you are using the latest patch available (e.g. run `cargo update`).

        If you are using an older release, please upgrade to the latest one before filing an issue.
      options:
        - crates.io release
        - master
    validations:
      required: true
  - type: dropdown
    id: os
    attributes:
      label: Operating System
      description: Which operating system are you using?
      options:
        - Windows
        - macOS
        - Linux
    validations:
      required: true
  - type: textarea
    id: logs
    attributes:
      label: Do you have any log output?
      description: Please copy and paste any relevant log output. This will be automatically formatted into code, so no need for backticks.
      render: shell
