Skip to content

groovyls seems to only work in a git working directory? #96

Description

@dstromberg

Hi.

I tried this simple groovy program:
#!/usr/bin/env groovy

// This appears to be detected correctly as groovy anywhere, but it appears to only get the groovyls language server when the
// file is in a git repo.

class Example {
static void main(String[] args) {
// Using a simple println statement to print output to the console
println('Hello World');
}
}

...in a file named t.gp

It runs fine, and it is detected as "groovy" filetype by astronvim, likely irrespective of where the t.gp file is.

However, it seems that groovyls only engages when t.gp is in a git clone working directory. Outside of a git clone working directory, t.gp is detected as groovy filetype, but groovyls doesn't engage. I'm not changing t.gp at all, I'm just mv'ing it.

Is there by any chance a way of making groovyls work with *.gp files outside of a git hierarchy?

Thanks for the nice tool.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions