Giter Club home page Giter Club logo

Comments (8)

Henry-Savary-Jackson avatar Henry-Savary-Jackson commented on July 30, 2024 1

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.

 avatar commented on July 30, 2024 1

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.

trev-dev avatar trev-dev commented on July 30, 2024 1

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.

ggascon avatar ggascon commented on July 30, 2024

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.

sify21 avatar sify21 commented on July 30, 2024

Then how to specify lombok location to coc-java?

from coc-java.

EvandroLG avatar EvandroLG commented on July 30, 2024

Wow! It worked out! o.O

from coc-java.

trev-dev avatar trev-dev commented on July 30, 2024

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.

medwards avatar medwards commented on July 30, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.