Code Monkey home page Code Monkey logo

coc-groovy's People

Contributors

dansomething avatar dependabot[bot] avatar joshzcold avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

coc-groovy's Issues

Set custom formatter

Hi, thanks for this plugin!
Is there any way I can configure my own formatter that will be invoked with <Plug>(coc-format)?
Thanks.

Unsupported class file major version

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.

Broken pipe Error

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

Groovy Language Server classpath command failed

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"

Problem with maven

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 ?

JAVA_HOME does not point to a JDK

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?

Error: Cannot find module 'node:fs'

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'
  ]
}

Getting no completion

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.

Unable to resolve grails.convertors.JSON

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? :)

Need some help debugging classPath to add gradle support to coc-groovy

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
image

My question is

  1. what would be the best way to debug this
  2. does groovy-language-server only need the classpath string[] to resolve the dependencies or am I missing something? Is there anything else coc-groovy would have to send to the server?
  3. At this point should I get in contact with the groovy-language-server devs?
  4. maybe groovy-language-server is hardcoded to /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.

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.