|
1 | 1 | name: Bug report |
2 | | -description: Report a problem |
| 2 | +description: Report a problem with the existing module(s) |
3 | 3 | labels: [bug] |
4 | 4 | body: |
5 | 5 | - type: checkboxes |
| 6 | + id: guidelines |
6 | 7 | attributes: |
7 | 8 | label: Contributing guidelines |
8 | 9 | options: |
9 | 10 | - label: I have read [CONTRIBUTING.md](https://github.com/echasnovski/mini.nvim/blob/main/CONTRIBUTING.md) |
10 | 11 | required: true |
11 | 12 | - label: I have read [CODE_OF_CONDUCT.md](https://github.com/echasnovski/mini.nvim/blob/main/CODE_OF_CONDUCT.md) |
12 | 13 | required: true |
13 | | - - label: I have updated 'mini.nvim' to latest version |
| 14 | + - label: I have updated 'mini.nvim' to latest version of the `main` branch |
14 | 15 | required: true |
15 | | - - type: input |
| 16 | + - type: dropdown |
| 17 | + id: module |
16 | 18 | attributes: |
17 | 19 | label: "Module(s)" |
18 | | - description: "List one or several modules this bug is coming from" |
19 | | - validations: |
20 | | - required: true |
21 | | - - type: textarea |
22 | | - attributes: |
23 | | - label: "Description" |
24 | | - description: "A short description of a problem" |
| 20 | + description: "Choose one or several modules the problem is related to" |
| 21 | + multiple: true |
| 22 | + options: |
| 23 | + - mini.ai |
| 24 | + - mini.align |
| 25 | + - mini.animate |
| 26 | + - mini.base16 |
| 27 | + - mini.basics |
| 28 | + - mini.bracketed |
| 29 | + - mini.bufremove |
| 30 | + - mini.clue |
| 31 | + - mini.colors |
| 32 | + - mini.comment |
| 33 | + - mini.completion |
| 34 | + - mini.cursorword |
| 35 | + - mini.deps |
| 36 | + - mini.diff |
| 37 | + - mini.doc |
| 38 | + - mini.extra |
| 39 | + - mini.files |
| 40 | + - mini.fuzzy |
| 41 | + - mini.git |
| 42 | + - mini.hipatterns |
| 43 | + - mini.hues |
| 44 | + - mini.icons |
| 45 | + - mini.indentscope |
| 46 | + - mini.jump |
| 47 | + - mini.jump2d |
| 48 | + - mini.map |
| 49 | + - mini.misc |
| 50 | + - mini.move |
| 51 | + - mini.notify |
| 52 | + - mini.operators |
| 53 | + - mini.pairs |
| 54 | + - mini.pick |
| 55 | + - mini.sessions |
| 56 | + - mini.snippets |
| 57 | + - mini.splitjoin |
| 58 | + - mini.starter |
| 59 | + - mini.statusline |
| 60 | + - mini.surround |
| 61 | + - mini.tabline |
| 62 | + - mini.test |
| 63 | + - mini.trailspace |
| 64 | + - mini.visits |
25 | 65 | validations: |
26 | 66 | required: true |
27 | | - - type: input |
| 67 | + - type: dropdown |
| 68 | + id: nvim-version |
28 | 69 | attributes: |
29 | 70 | label: "Neovim version" |
30 | | - description: "Something like `0.5`, `0.5.1`, Neovim nightly (please, include latest commit)" |
| 71 | + description: "Choose the latest Neovim version on which you can reproduce the problem" |
| 72 | + multiple: false |
| 73 | + options: |
| 74 | + - 0.8.x |
| 75 | + - 0.9.x |
| 76 | + - 0.10.x |
| 77 | + - 0.11 (!at least latest Nightly build!) |
| 78 | + default: 2 |
31 | 79 | validations: |
32 | 80 | required: true |
33 | 81 | - type: textarea |
| 82 | + id: description |
34 | 83 | attributes: |
35 | | - label: "Steps to reproduce" |
36 | | - description: "Steps to reproduce using as minimal config as possible" |
37 | | - value: | |
38 | | - 1. `nvim -nu minimal.lua` |
39 | | - 2. ... |
| 84 | + label: "Description" |
| 85 | + description: "A short description of a problem; include expected behavior" |
40 | 86 | validations: |
41 | 87 | required: true |
42 | 88 | - type: textarea |
| 89 | + id: reproduction |
43 | 90 | attributes: |
44 | | - label: "Expected behavior" |
45 | | - description: "A description of behavior you expected" |
46 | | - - type: textarea |
47 | | - attributes: |
48 | | - label: "Actual behavior" |
49 | | - description: "A description of behavior you observed (feel free to include images, gifs, etc.)" |
| 91 | + label: "Reproduction" |
| 92 | + description: "Steps to reproduce the issue. Suggested steps involve creating an independent config from scratch. If can not reproduce like this, please ask a usage question first." |
| 93 | + value: | |
| 94 | + 1. Create separate 'nvim-repro' config directory: |
| 95 | + - '~/.config/nvim-repro/' on Unix |
| 96 | + - '~/AppData/Local/nvim-repro/' on Windows |
| 97 | +
|
| 98 | + 2. Inside 'nvim-repro' directory create a file named 'init.lua'. |
| 99 | + Populate it with the following content: |
| 100 | +
|
| 101 | + ```lua |
| 102 | + -- Clone latest 'mini.nvim' (requires Git CLI installed) |
| 103 | + vim.cmd('echo "Installing `mini.nvim`" | redraw') |
| 104 | + local mini_path = vim.fn.stdpath('data') .. '/site/pack/deps/start/mini.nvim' |
| 105 | + local clone_cmd = { 'git', 'clone', '--depth=1', 'https://github.com/echasnovski/mini.nvim', mini_path } |
| 106 | + vim.fn.system(clone_cmd) |
| 107 | + vim.cmd('echo "`mini.nvim` is installed" | redraw') |
| 108 | +
|
| 109 | + -- Make sure 'mini.nvim' is available |
| 110 | + vim.cmd('packadd mini.nvim') |
| 111 | + require('mini.deps').setup() |
| 112 | +
|
| 113 | + -- Add extra setup steps needed to reproduce the behavior |
| 114 | + -- Use `MiniDeps.add('user/repo')` to install another plugin from GitHub |
| 115 | + ``` |
| 116 | +
|
| 117 | + 3. Run `NVIM_APPNAME=nvim-repro nvim` (i.e. execute `nvim` with `NVIM_APPNAME` environment variable set to "nvim-repro"). |
| 118 | + Wait for all dependencies to install. |
| 119 | +
|
| 120 | + 4. Replace this with description of interactive reproduction steps along with the behavior you observe. |
| 121 | + Feel free to include images/videos/etc, this helps a lot. |
| 122 | +
|
| 123 | + Note: after reporting the issue, it is safe (and even recommended for cleaner possible future bug reports) to remove 'nvim-repro' config from the system: |
| 124 | + - Delete config directory ('~/.config/nvim-repro' on Unix). |
| 125 | + - Delete data directory ('~/.local/share/nvim-repro' on Unix). |
| 126 | + - Delete state directory ('~/.local/state/nvim-repro' on Unix). |
50 | 127 | validations: |
51 | 128 | required: true |
0 commit comments