You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use VS Code for most Java work. Usually things work out of the box whether I'm using Maven, Gradle, or no build tool at all. For this plugin, running the Gradle commands after setting up worked fine. It generated Java source code under build/... and my code code was able to reference this generated source code to complete a build. However, it only worked if I was running Gradle commands.
VS Code itself didn't work right. It didn't seem to be aware of the generated source code. If I tried to import it, VS Code displayed error messages (even though the Gradle build worked fine). Example:
Here's what I want to know... Is this the way the plugin is supposed to work? That it supports Gradle, and nothing else? And it's up to other tools to add config to detect the source code? If this is the case, perhaps the solution is to add documentation to the plugin repo's README file to describe to VS Code users how to make VS Code aware of the generated source code. Or, if this is not the way the plugin is supposed to work, should there be some change to how it works to make tools like VS Code detect the generated source code and add it to their class path automatically (if that's even possible)?
The text was updated successfully, but these errors were encountered:
@ejona86 Cool. In order to test this, I'd want to keep an eye on releases for this repo to see when the PR you link to gets included in a release right? The fix wouldn't yet be in v0.8.19 (latest version right now)?
I use VS Code for most Java work. Usually things work out of the box whether I'm using Maven, Gradle, or no build tool at all. For this plugin, running the Gradle commands after setting up worked fine. It generated Java source code under
build/...
and my code code was able to reference this generated source code to complete a build. However, it only worked if I was running Gradle commands.VS Code itself didn't work right. It didn't seem to be aware of the generated source code. If I tried to import it, VS Code displayed error messages (even though the Gradle build worked fine). Example:
I describe the issue in detail here: https://stackoverflow.com/questions/72440517/how-do-i-configure-vs-code-and-gradle-to-use-generated-java-code-with-the-gradle
Here's what I want to know... Is this the way the plugin is supposed to work? That it supports Gradle, and nothing else? And it's up to other tools to add config to detect the source code? If this is the case, perhaps the solution is to add documentation to the plugin repo's README file to describe to VS Code users how to make VS Code aware of the generated source code. Or, if this is not the way the plugin is supposed to work, should there be some change to how it works to make tools like VS Code detect the generated source code and add it to their class path automatically (if that's even possible)?
The text was updated successfully, but these errors were encountered: