groovy-language-server icon indicating copy to clipboard operation
groovy-language-server copied to clipboard

When using this with grails project it keeps complaining about duplicate definition as below

Open xqliu opened this issue 4 years ago • 4 comments

Hi there,

thanks for this plugin, this makes work with grails in emacs possible.

But there's one issue that, it keeps warning about follow

Invalid duplicate class definition of class LogicType : The sources /Users/.../Dropbox/Codes/grails-docker/grails-platform/grails-app/domain/LogicType.groovy and /Users/.../Dropbox/Codes/grails-docker/grails-platform/bin/default/grails-app/domain/LogicType.groovy each contain a class with the name LogicType.

Seems it just copy all the files from project root folder to <projectRoot>/bin/default folder, so caused the above issue happens

Is there anything I can check or configure to avoid this warning happens? when it happens, basically lsp related features will not be available and I have to manually delete the <projectRoot>/bin folder and restart the lsp server for it to work again.

Thanks.

xqliu avatar Mar 25 '21 02:03 xqliu

For what it's worth, I'm seeing similar issues with Jenkins groovy scripts (pipeline, jobs DSL, etc.) in a larger repository.

bgshacklett avatar Sep 22 '21 13:09 bgshacklett

Same issue in Visual Studio Code

pedrevans avatar Jul 22 '22 16:07 pedrevans

Same in NeoVim.

madelaney avatar Feb 10 '23 14:02 madelaney

same in emacs., waiting for any solution

triHims avatar Jul 13 '23 06:07 triHims