Skip to content

Commit

Permalink
Modify reflection-config.json so that binary works in coc.nvim
Browse files Browse the repository at this point in the history
coc.nvim is one of the implementations of LSP for vim/neovim.
There's an existing configuration for running the Java build of LemMinX,
but a reflection exception occurs when trying to run the binary build.
This PR registers the class for reflection so the binary works in
coc.nvim.

To test:
  *  Build the LemMinX binary, put in on your PATH
  *  Install coc.nvim: https:/neoclide/coc.nvim/wiki/Install-coc.nvim
  *  If you have the existing XML support `coc-xml` already set up,
     uninstall with `:CocUninstall coc-xml`
  *  Open the configuration file with `:CocConfig`
  *  Add the following configuration:
```json
{
  "languageserver": {
    "xml": {
      "command": "lemminx",
      "trace.server": "verbose",
      "initializationOptions": {},
      "filetypes": [
        "xml"
      ]
    }
  }
}
```
  *  Save and quit
  *  Open an XML file, check if syntax errors appear

Signed-off-by: David Thompson <[email protected]>
  • Loading branch information
datho7561 committed Apr 26, 2021
1 parent ba5afc0 commit c2d1f58
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -405,6 +405,14 @@
"parameterTypes": []
}]
},
{
"name": "org.eclipse.lsp4j.ClientInfo",
"allDeclaredFields": true,
"methods": [{
"name": "<init>",
"parameterTypes": []
}]
},
{
"name": "org.eclipse.lsp4j.CodeAction",
"allDeclaredFields": true,
Expand Down

0 comments on commit c2d1f58

Please sign in to comment.