Open safield opened 4 years ago
Does this project import in Eclipse, with BuildShip (Gradle integration plugin) installed?
Can you move the jar dependency inside the project folder?
Also having this problem. gradle build
works fine, but it still complains that one of the libs is missing
@sudofox Could you, please, attach a sample project reproducing the error?
Hi @snjeza I'm experiencing similar problems in this project if that helps? It's become worse since I renamed a bunch of modules in the root settings.gradle.kts in order to customise the artifact names.
Loading my project I went into the same error. Gradle worked fine but VS Code showed include errors for my sub-projects. I however found that touching my settings.gradle.kts and accepting to sync the classpath fixes the error with next [ctrl+shift+b] workspace build.
"A build file was modified. Do you want to synchronize the Java classpath/configuration?" -> Yes
Whenever I recreate my workspace or rename the file, the error is back. So it is reproducable. Interestingly when I selected to "Always" update the classpath the error stopped to vanish. So in workspace settings I changed it back to "Interactive mode" and with next accepted popup sync the error is gone again.
The "Java: Reload Projects" command reliably fixes the error for me as well: { "key": "shift+alt+u", "command": "java.projectConfiguration.update", "when": "editorFocus" }
Hope that helps.
Edit: On another note, like DavidGregory084 I'm using Kotlin for the build files ( build.gradle.kts ).
I am using the vsocde-java extension with a gradle java project.
Receiving error "Project 'java_server' is missing required Java project: 'chesslib'
Commit: f359dd69833dd8800b54d458f6d37ab7c78df520 Date: 2019-11-25T14:54:40.719Z Electron: 6.1.5 Chrome: 76.0.3809.146 Node.js: 12.4.0 V8: 7.6.303.31-electron.0 OS: Linux x64 4.15.0-72-generic
My gradle configuration builds and runs fine, but the plugin complains still.
My build.gradle is as follows....
My settings.gradle is as follows...