Skip to content
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

referencedLibraries / classpath additions not working #146

Closed
vcavallo opened this issue Mar 9, 2021 · 3 comments
Closed

referencedLibraries / classpath additions not working #146

vcavallo opened this issue Mar 9, 2021 · 3 comments

Comments

@vcavallo
Copy link

vcavallo commented Mar 9, 2021

I'm not sure where I'm going wrong, I have

  "java.project.referencedLibraries": [
    "/home/something/a-file.jar",
    "/home/something/another-file.jar"
  ],

Set up in both a local and global coc-settings json (for good measure), but the referenced libraries are still "package xyz not found" in the editor.

I'm running Java 8 and successfully set up the language server by installing an older version (as mentioned in #99). Everything else seems to be working fine except for this additional classpath problem.

Any ideas? thanks.

@vcavallo
Copy link
Author

vcavallo commented Mar 9, 2021

I'm beginning to suspect that these files are ignored altogether. I have
"java.errors.incompleteClasspath.severity": "ignore"

Set (in fact, Coc created this setting itself when I responded to a prompt), but the errors are still shown.

@Ontonator
Copy link
Contributor

While I don't have a solution, you might be able to work around it by using the .classpath file instead: http://eclim.org/vim/java/classpath.html

@chemzqm
Copy link
Member

chemzqm commented Jan 29, 2023

Try command

`java.project.addToSourcePath.command: Add Folder to Java Source Path`: adds the selected folder to its project source path.

@chemzqm chemzqm closed this as completed Jan 29, 2023
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

3 participants