Title: Gradle multi-module project breaks on reload, requires cleaning Java Language Server workspace every time · Issue #4317 · redhat-developer/vscode-java · GitHub
Open Graph Title: Gradle multi-module project breaks on reload, requires cleaning Java Language Server workspace every time · Issue #4317 · redhat-developer/vscode-java
X Title: Gradle multi-module project breaks on reload, requires cleaning Java Language Server workspace every time · Issue #4317 · redhat-developer/vscode-java
Description: Description I am working with a Java Gradle multi-module project in VS Code. On the first load, the project fails with an error like: The project was not built due to "xxx does not exist". Fix the problem, then try refreshing this projec...
Open Graph Description: Description I am working with a Java Gradle multi-module project in VS Code. On the first load, the project fails with an error like: The project was not built due to "xxx does not exist". Fix the ...
X Description: Description I am working with a Java Gradle multi-module project in VS Code. On the first load, the project fails with an error like: The project was not built due to "xxx does not exist"...
Opengraph URL: https://github.com/redhat-developer/vscode-java/issues/4317
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Gradle multi-module project breaks on reload, requires cleaning Java Language Server workspace every time","articleBody":"**Description**\nI am working with a Java Gradle **multi-module** project in VS Code.\nOn the first load, the project fails with an error like:\n\n\u003e *The project was not built due to \"xxx does not exist\". Fix the problem, then try refreshing this project and building it since it may be inconsistent.*\n\nThe suggested workaround is:\n\n* Disable **Gradle for Java** extension\n* Run **\"Java: Clean Java Language Server Workspace\"**\n* Reload the project\n\nThis workaround **does fix the problem**, but only temporarily.\n\n---\n\n**Problem**\nEvery time I:\n\n* reload the window, or\n* close and reopen the project\n\nI have to run **\"Java: Clean Java Language Server Workspace\" again**, otherwise the same error appears.\n\nThis makes working with the project very inconvenient.\n\n---\n\n**Expected behavior**\nOnce the project is cleaned and loaded successfully:\n\n* It should stay in a consistent state\n* Reloading or reopening the project should not require cleaning the Java Language Server workspace again\n\n---\n\n**Actual behavior**\n\n* Project breaks again after reload\n* Same error repeats\n* Manual workspace cleaning is required every time\n\n---\n\n**Environment**\n\n* VS Code\n* Java multi-module Gradle project\n* Java Language Server\n* Gradle for Java extension enabled\n\n---\n\n**Additional notes**\nThis looks like a workspace cache or Gradle project import inconsistency issue.\nIt seems the Java Language Server does not correctly persist the resolved multi-module Gradle state across reloads.\n","author":{"url":"https://github.com/michael-abdul","@type":"Person","name":"michael-abdul"},"datePublished":"2026-01-23T00:45:54.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/4317/vscode-java/issues/4317"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:49d41df8-5ecf-137f-386c-8706e92793c6 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C68C:1AEC3E:21B038C:2B26899:699011C6 |
| html-safe-nonce | 60b297ec5bc39057507320d1231eb5aedb949eaaa5f0add110ca65b9f26dbd69 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNjhDOjFBRUMzRToyMUIwMzhDOjJCMjY4OTk6Njk5MDExQzYiLCJ2aXNpdG9yX2lkIjoiNzcwMjEwNzYzMTgzODU2NDgwNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | b7ef66af83cc2fe9ebcca44eb144b4556a97f70185934b72440253f119e0c11f |
| hovercard-subject-tag | issue:3845344780 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/redhat-developer/vscode-java/4317/issue_layout |
| twitter:image | https://opengraph.githubassets.com/31b8d9817be83f5d1ee4008c283f47fea41055133aedb1a46722e077f26663ed/redhat-developer/vscode-java/issues/4317 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/31b8d9817be83f5d1ee4008c283f47fea41055133aedb1a46722e077f26663ed/redhat-developer/vscode-java/issues/4317 |
| og:image:alt | Description I am working with a Java Gradle multi-module project in VS Code. On the first load, the project fails with an error like: The project was not built due to "xxx does not exist". Fix the ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | michael-abdul |
| hostname | github.com |
| expected-hostname | github.com |
| None | 42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b |
| turbo-cache-control | no-preview |
| go-import | github.com/redhat-developer/vscode-java git https://github.com/redhat-developer/vscode-java.git |
| octolytics-dimension-user_id | 11033755 |
| octolytics-dimension-user_login | redhat-developer |
| octolytics-dimension-repository_id | 65561709 |
| octolytics-dimension-repository_nwo | redhat-developer/vscode-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 65561709 |
| octolytics-dimension-repository_network_root_nwo | redhat-developer/vscode-java |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 3b33c5aedc9808f45bc5fcf0b1e4404cf749dac7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width