Comments (8)
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.
Hope this helps! :)
from 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. Hope this helps! :)
This is insane. It works.
from coc-java.
Hey so easy workaround, set this: "java.jdt.ls.lombokSupport.enabled": true
- and remove the javaagent flag from the vmargs. I don't remember this working well for myself in the past, but it works now.
Also, if you want to use your own version of lombok, this works: #240 (comment)
from coc-java.
A workaround is to comment this line:
"java.jdt.ls.vmargs": "-javaagent:/home/sify/.config/coc-lsp/lombok.jar",
in coc-settings.json
from coc-java.
Then how to specify lombok location to coc-java?
from coc-java.
Wow! It worked out! o.O
from coc-java.
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.
from coc-java.
Same as trev-dev, I get this error when my settings are:
"java.jdt.ls.lombokSupport.enabled": true,
"java.jdt.ls.vmargs": "-javaagent:/home/medwards/.local/share/lombok/lombok.1.18.24.jar"
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 ~/.config/coc/extensions/node_modules/coc-java/lombok/
from coc-java.
Related Issues (20)
- JDTLS fails to start, missing dynamic libs
- Support for apache ant HOT 1
- when override method, how do i select these checkboxes.
- coc-codeaction-refactor Error on notification "codeAction": TypeError: import_coc26.workspace.asRelativePath is not a function HOT 3
- Auto completion is not working
- java.autobuild.enabled is not supported without documented.
- CPU Spikes, OOM errors, Race Conditions, source file corruption when `organizeImports` is true 10+ second delays
- Gradle wrapper seems not working as went to use a old gradle wrapper. HOT 2
- cannot jump to .proto file if symbols is generated from a protobuf file HOT 2
- Fail to download Coc-java HOT 2
- How to multi-select in "Generate Constructors" popup-menu HOT 3
- Error choosing `show errors` action on workspace import HOT 1
- Embedded JRE and NixOS HOT 3
- [Feature Request] Support java.cleanup.actions HOT 3
- always download jre
- Project picker: duplicate entries in case of multiple projects loaded to workspace
- Publish 1.22.4 to npmjs HOT 2
- [Feature] Populate quickfix with workspace.compile & build errors / results
- JavaSE-19 Error
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from coc-java.