|
| 1 | +name: Bug Report |
| 2 | +description: Create an issue in tree-sitter-scala |
| 3 | +body: |
| 4 | + - type: input |
| 5 | + id: commit |
| 6 | + attributes: |
| 7 | + label: Commit of tree-sitter-scala you tested this on |
| 8 | + description: | |
| 9 | + Make sure you're validating you're on the latest commit of |
| 10 | + tree-sitter-scala. Note that depending on where you're experiencing the |
| 11 | + issue there is a chance you're on an old commit. |
| 12 | + validations: |
| 13 | + required: true |
| 14 | + |
| 15 | + - type: textarea |
| 16 | + id: code-sample |
| 17 | + attributes: |
| 18 | + label: A code sample showing the error |
| 19 | + description: Try to minimize the code sample as much as possible |
| 20 | + placeholder: | |
| 21 | + ```scala |
| 22 | + val y = x match { |
| 23 | + case A(_) if a => 1 |
| 24 | + } |
| 25 | + ``` |
| 26 | + validations: |
| 27 | + required: true |
| 28 | + |
| 29 | + - type: textarea |
| 30 | + id: error |
| 31 | + attributes: |
| 32 | + label: Show the error node |
| 33 | + description: Show us the output and where the ERROR node is appearing |
| 34 | + placeholder: | |
| 35 | + Check out [Obtaining an Error Reproduction](../../CONTRIBUTING.md#obtaining-an-error-reproduction) |
| 36 | + in the CONTRIBUTING docs if you're unsure how to get this. |
| 37 | +
|
| 38 | + ``` |
| 39 | + (compilation_unit [0, 0] - [4, 0] |
| 40 | + (val_definition [0, 0] - [2, 1] |
| 41 | + pattern: (identifier [0, 4] - [0, 5]) |
| 42 | + value: (match_expression [0, 8] - [2, 1] |
| 43 | + value: (identifier [0, 8] - [0, 9]) |
| 44 | + body: (case_block [0, 16] - [2, 1] |
| 45 | + (ERROR [1, 2] - [2, 0] |
| 46 | + (case_class_pattern [1, 7] - [1, 11] |
| 47 | + type: (type_identifier [1, 7] - [1, 8]) |
| 48 | + pattern: (wildcard [1, 9] - [1, 10])) |
| 49 | + (lambda_expression [1, 15] - [2, 0] |
| 50 | + (identifier [1, 15] - [1, 16]) |
| 51 | + (integer_literal [1, 20] - [1, 21]))))))) |
| 52 | + ``` |
| 53 | + validations: |
| 54 | + required: true |
| 55 | + |
| 56 | + - type: textarea |
| 57 | + id: expectation |
| 58 | + attributes: |
| 59 | + label: What do you expect the tree to look like |
| 60 | + description: Show us what you expect the tree to look like |
| 61 | + |
| 62 | + - type: input |
| 63 | + id: where |
| 64 | + attributes: |
| 65 | + label: Where are you experiencing this error? |
| 66 | + description: Let us know where you're seeing this error (nvim-treesitter etc) |
0 commit comments