dansomething / coc-groovy Goto Github PK
View Code? Open in Web Editor NEWGroovy language extension for coc.nvim
License: Eclipse Public License 2.0
Groovy language extension for coc.nvim
License: Eclipse Public License 2.0
it seems to be not included in the features of coc-groovy
. So I was wondering what would be the best way to set up auto formatting on save?
Hi, thanks for this plugin!
Is there any way I can configure my own formatter that will be invoked with <Plug>(coc-format)
?
Thanks.
Hi,
I'm using openjdk@18 on aarch64 (Apple M1).
~/.config/coc/extensions/node_modules/coc-groovy/utils/gradle-classpath/bin/gradle-classpath Error! startup failed: General error during conversion: Unsupported class file major version 62
I strongly assume this is related to the used gradle version 7.0 that only supports Java Version 16. Java 16 isn't available for M1, so this is a showstopper for me.
Command
~/.config/coc/extensions/node_modules/coc-groovy/utils/gradle-classpath/bin/gradle-classpath --path-separator=: --output-file=~/.config/coc/extensions/coc-groovy-data/groovy_ws_c3dcb2b17f4244c8ba399bf909779121/.groovy-classpath --regenerate-file=false
execute failed with response: Error! Broken pipe
, which cause the extension start failed. How should i slove it?
Java version 11
Gradle wrapper 7.1
I've been getting this error opening a .groovy file, those files like gradle-calsspath and groovy_ws_ are not present in theit paths any ideia on how to solve this?
[coc.nvim] Groovy Language Server classpath command failed "cd /home/leorr/moskit-back && /home /leorr/.config/coc/extensions/node_modules/coc-groovy/utils/gradle-classpath/bin/gradle-classpa th --path-separator=: --output-file=/home/leorr/.config/coc/extensions/coc-groovy-data/groovy_w s_6c9c93286599772df54e8eb19d084f32/.groovy-classpath --regenerate-file=false"
Hi,
after open groovy file in nvim. I'm getting an error
2024-05-10T08:57:15.437 ERROR (pid:8536) [extension:coc-groovy] - findMvnCmnd: Maven version check failed. Error [{}]
2024-05-10T08:57:15.437 WARN (pid:8536) [extension:coc-groovy] - buildClassPath: Failed to find build command for [mvn] [path/to/my/project]
2024-05-10T08:57:19.601 INFO (pid:8536) [attach] - receive notification: showInfo []
How to fix that ?
I'm open a groovy file in maven project, (In Eclipse it runs good and code highlights normally) but in nvim i see warnings "Unable to resolve class"
Is there any configuration to specify where is my mvn repo ?
Hey,
I'm on Ubuntu linux. My java home is set in my .bashrc like export JAVA_HOME="/usr/lib/jvm/java-11-openjdk-amd64"
However, whenever I open a groovy file the pop up says "The JAVA_HOME environment variable does not point to a JDK". The rest of the message is cut off by the length of the pop up box.
From there, if I select either yes or no it doesn't seem to do anything.
Am I doing something wrong here?
coc-groovy is not starting and I'm getting the following error when opening the CocOpenLog
2022-05-03T20:44:09.750 ERROR (pid:12996) [extensions] - Error on createExtension coc-groovy from /home/MYNAME/.config/coc/extensions/node_modules/coc-groovy/lib/index.js Error: Cannot find module 'node:fs'
Require stack:
- /home/MYNAME/.config/coc/extensions/node_modules/coc-groovy/lib/index.js
- /home/lMYNAME/.config/coc/extensions/node_modules/coc-groovy/lib/index.js
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:815:15)
at Function.Module._load (internal/modules/cjs/loader.js:667:27)
at Module.require (internal/modules/cjs/loader.js:887:19)
at i (/home/MYNAME/.vim/plugged/coc.nvim/build/index.js:226:42120)
at Object.e.exports (/home/MYNAME/.config/coc/extensions/node_modules/coc-groovy/lib/index.js:1:123381)
at n (/home/MYNAME/.config/coc/extensions/node_modules/coc-groovy/lib/index.js:1:156664)
at Module.<anonymous> (/home/MYNAME/.config/coc/extensions/node_modules/coc-groovy/lib/index.js:1:123209)
at n (/home/MYNAME/.config/coc/extensions/node_modules/coc-groovy/lib/index.js:1:156664)
at Object.<anonymous> (/home/MYNAME/.config/coc/extensions/node_modules/coc-groovy/lib/index.js:1:108623)
at n (/home/MYNAME/.config/coc/extensions/node_modules/coc-groovy/lib/index.js:1:156664) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'/home/MYNAME/.config/coc/extensions/node_modules/coc-groovy/lib/index.js',
'/home/MYNAME/.config/coc/extensions/node_modules/coc-groovy/lib/index.js'
]
}
I just installed Groovy with pacman (version 3.0.7) and installed coc-groovy. I start trying println
but get no completion. When I trigger completion with nothing typed, I only see run
and main
. The extension says language server started when I open Neovim. Running my script with groovy foo.groovy
is fine.
support gradle ?
I have a big gradle project, but many of the internal modules as well as grails modules are not resolved, therefore the plugin doesn't work.
How could i debug this? :)
Hey there, im trying to add gradle support to coc-groovy and I added the operations to generate the groovy classpath folowing the same convention as you do in maven
https://github.com/joshzcold/coc-groovy/blob/master/src/classpath.ts
generated this file:
/home/joshua/.config/coc/extensions/coc-groovy-data/groovy_ws_03593d465d7c807b6c208582f2979b90/.groovy-classpath
contents summary:
...
/home/joshua/.gradle/caches/modules-2/files-2.1/org.seleniumhq.selenium/selenium-java/3.141.59/e8e20b741299cb8ffedbd2925a3ab69d08b41063/selenium-java-3.141.59.jar:/home/joshua/.gradle/caches/modules-2/files-2.1/org.codehaus.groovy/groovy-all/2.4.4/b22748
b6cf9a38c9777792175507a679043cdd64/groovy-all-2.4.4.jar
...etc
coc-groovy seems to create and sync the file sucessfully.
unfortunatley im still getting unfound errors from groovy-language-server it seems like
My question is
/home/user/.m2/
?groovy-language-server supplied jar is from coc-groovy
launching coc-groovy via Plug 'joshzcold/coc-groovy', {'do': 'yarn install --frozen-lockfile'}
thank you.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.