lsp_bug_report.yml 3.1 KB

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