From ec88d2b6f8071aef42aa4ad0e4bd0fff57d2ba4e Mon Sep 17 00:00:00 2001 From: Chris Kipp Date: Sun, 15 Jan 2023 11:45:17 +0100 Subject: [PATCH] chore: create an issue template --- .github/ISSUE_TEMPLATE/bug_report.yml | 66 +++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 .github/ISSUE_TEMPLATE/bug_report.yml diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml new file mode 100644 index 000000000..951e99b83 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -0,0 +1,66 @@ +name: Bug Report +description: Create an issue in tree-sitter-scala +body: + - type: input + id: commit + attributes: + label: Commit of tree-sitter-scala you tested this on + description: | + Make sure you're validating you're on the latest commit of + tree-sitter-scala. Note that depending on where you're experiencing the + issue there is a chance you're on an old commit. + validations: + required: true + + - type: textarea + id: code-sample + attributes: + label: A code sample showing the error + description: Try to minimize the code sample as much as possible + placeholder: | + ```scala + val y = x match { + case A(_) if a => 1 + } + ``` + validations: + required: true + + - type: textarea + id: error + attributes: + label: Show the error node + description: Show us the output and where the ERROR node is appearing + placeholder: | + Check out [Obtaining an Error Reproduction](../../CONTRIBUTING.md#obtaining-an-error-reproduction) + in the CONTRIBUTING docs if you're unsure how to get this. + + ``` + (compilation_unit [0, 0] - [4, 0] + (val_definition [0, 0] - [2, 1] + pattern: (identifier [0, 4] - [0, 5]) + value: (match_expression [0, 8] - [2, 1] + value: (identifier [0, 8] - [0, 9]) + body: (case_block [0, 16] - [2, 1] + (ERROR [1, 2] - [2, 0] + (case_class_pattern [1, 7] - [1, 11] + type: (type_identifier [1, 7] - [1, 8]) + pattern: (wildcard [1, 9] - [1, 10])) + (lambda_expression [1, 15] - [2, 0] + (identifier [1, 15] - [1, 16]) + (integer_literal [1, 20] - [1, 21]))))))) + ``` + validations: + required: true + + - type: textarea + id: expectation + attributes: + label: What do you expect the tree to look like + description: Show us what you expect the tree to look like + + - type: input + id: where + attributes: + label: Where are you experiencing this error? + description: Let us know where you're seeing this error (nvim-treesitter etc)