-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[coc.nvim]: UnhandledRejection: TypeError: Cannot read properties of null (reading '0') #267
Comments
A workaround is to comment this line: |
Then how to specify lombok location to coc-java? |
Try adding the version number of lombok to the actual lombok jar filename. For example changing "lombok.jar" to "lombok-1.18.28.jar". Make sure to follow to format precisely. |
This is insane. It works. |
Wow! It worked out! o.O |
https://github.com/neoclide/coc-java/blob/master/src/lombokSupport.ts#L24 We're using regex to "validate" the lombok version. Funny thing is I used nix to supply the lombok, and this regex parsed my javaagent and found the version tag in the path, rather than the filename, and said it was the wrong version. I think there must be a better way to validate (or not validate) the lombok version. |
Hey so easy workaround, set this: Also, if you want to use your own version of lombok, this works: #240 (comment) |
Same as trev-dev, I get this error when my settings are:
Disabling Lombok support ends up working fine. Removing vmargs will not crash the LSP anymore, but it will not process the lombok annotations either - I have to add the lombok jar to |
os
:CocInfo
java-related coc-settings.json
The text was updated successfully, but these errors were encountered: