GroovyLanguageServer / groovy-language-server

A language server for Groovy — designed for Moonshine IDE, but may be useful in other environments
https://moonshine-ide.com/
Apache License 2.0
185 stars 61 forks source link

unclear how to use additional classpath #81

Closed GianniGiglio closed 1 year ago

GianniGiglio commented 1 year ago

Hi would it be possible to explain how I can add additional classpath entries form jars. It's unclear how this exactly works.

joshtynjala commented 1 year ago

You can pass .jar paths and directory paths to the groovy.classpath setting.

GianniGiglio commented 1 year ago

@joshtynjala That's what I don't understand how to set this setting. Could you explain that part?

joshtynjala commented 1 year ago

It's an array of file system paths. You set it with the same values that you might pass to the -cp/-classpath compiler option.

GianniGiglio commented 1 year ago

I am feeling pretty stupid I still don't understand your answer.

tried this but it didn't work

java -cp libs/ -jar groovy-lang-orignal-all.jar

himanshutripathi01 commented 1 year ago

if you are using visual studio code Open workspace settings In the json you can use "groovy.classpath" with array

image
GianniGiglio commented 1 year ago

@himanshutripathi01 not using vscode but codemirror languag server

GianniGiglio commented 1 year ago

I think it starts making sence now. Could it be I have to add this settings file to the workspace of the language server?

himanshutripathi01 commented 1 year ago

yes