lsp_bug_report.yml 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. name: Language server (LSP) client bug
  2. description: Report an issue with Nvim LSP
  3. title: "LSP: "
  4. labels: [bug, lsp]
  5. body:
  6. - type: markdown
  7. attributes:
  8. value: |
  9. _Before reporting:_ search [existing issues](https://github.com/neovim/neovim/issues?q=is%3Aissue+is%3Aopen+label%3Abug) and check the [FAQ](https://neovim.io/doc/user/faq.html). Usage questions or "Why isn't X language server/feature working?" belong on [stackoverflow](https://vi.stackexchange.com/) and will be closed.
  10. - type: textarea
  11. attributes:
  12. label: "Problem"
  13. description: "Describe the bug caused by the Nvim LSP client."
  14. validations:
  15. required: true
  16. - type: textarea
  17. attributes:
  18. label: 'Steps to reproduce using "nvim -u minimal_init.lua"'
  19. description: |
  20. - Create a minimal_init.lua using vim.lsp.start:
  21. ```lua
  22. --- CHANGE THESE
  23. local pattern = 'the-filetype'
  24. local cmd = {'name-of-language-server-executable'}
  25. -- Add files/folders here that indicate the root of a project
  26. local root_markers = {'.git', '.editorconfig'}
  27. -- Change to table with settings if required
  28. local settings = vim.empty_dict()
  29. vim.api.nvim_create_autocmd('FileType', {
  30. pattern = pattern,
  31. callback = function(args)
  32. local match = vim.fs.find(root_markers, { path = args.file, upward = true })[1]
  33. local root_dir = match and vim.fn.fnamemodify(match, ':p:h') or nil
  34. vim.lsp.start({
  35. name = 'bugged-ls',
  36. cmd = cmd,
  37. root_dir = root_dir,
  38. settings = settings
  39. })
  40. end
  41. })
  42. ```
  43. See `:h lsp-quickstart` and `:h vim.lsp.start` for more information
  44. - Provide a short code example and describe the folder layout
  45. - Describe how to trigger the issue. E.g. using `:lua vim.lsp.buf.*` commands
  46. _Note_: if the issue is with an autocompletion or other LSP plugin, report to that plugin's issue tracker.
  47. validations:
  48. required: true
  49. - type: textarea
  50. attributes:
  51. label: "Expected behavior"
  52. description: "Describe the behavior you expect. May include logs, images, or videos."
  53. - type: input
  54. attributes:
  55. label: "Nvim version (nvim -v)"
  56. placeholder: "0.6.0 commit db1b0ee3b30f"
  57. validations:
  58. required: true
  59. - type: input
  60. attributes:
  61. label: "Language server name/version"
  62. placeholder: "rls 0.5.2"
  63. validations:
  64. required: true
  65. - type: input
  66. attributes:
  67. label: "Operating system/version"
  68. placeholder: "emacs 23"
  69. validations:
  70. required: true
  71. - type: input
  72. attributes:
  73. label: "Log file"
  74. placeholder: "https://gist.github.com/prakhar1989/1b0a2c9849b2e1e912fb"
  75. description: |
  76. - Upload `lsp.log` before and after the problem in a [secret gist](https://gist.github.com/). Paste the URL to the gist.
  77. - You can set the log level by adding `vim.lsp.set_log_level("debug")` after setting up LSP in your config.
  78. - You can find the location of the log with `:lua print(vim.lsp.get_log_path())`