Skip to content

lib modules are not detected leading to not defined issue #94

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
VasLem opened this issue Jan 14, 2025 · 1 comment
Open

lib modules are not detected leading to not defined issue #94

VasLem opened this issue Jan 14, 2025 · 1 comment

Comments

@VasLem
Copy link

VasLem commented Jan 14, 2025

Inside lib folder I have added commons-text-1.12.0.jar , so that to be able to use LevenshteinDistance from org.apache.commons.text.similarity . I receive a language server error message whenever I am trying to use an instance of it. Example code:

def levenshtein(str1, str2){
    def obj = new org.apache.commons.text.similarity.LevenshteinDistance()
    obj.apply(str1, str2)
}

Output:

`org.apache.commons.text.similarity.LevenshteinDistance` is not defined

(The code runs just fine)

@bentsherman
Copy link
Member

The language server currently doesn't recognize JARs in the lib directory. I haven't decided whether it will be supported it or not

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants