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

one file change rebuilds whole project #1603

Open
deckydev opened this issue Sep 6, 2024 · 3 comments
Open

one file change rebuilds whole project #1603

deckydev opened this issue Sep 6, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@deckydev
Copy link

deckydev commented Sep 6, 2024

Extension Name: vscode-gradle
Extension Version: v3.16.2024082806 (pre-release)
OS Version: ubuntu 20 (dev container)
VSCode version: 1.92.1

After changing just one source file, the entire project is rebuilt taking a few minutes. I can see messages in the bottom bar traversing the whole code base. If I try the same with ./gradlew assemble it only compiles the changed file and takes just 7 seconds. I assume build cache should work the same in both places. Is there any way to see what gradle operations the build server is doing to help debug this?

@deckydev deckydev added the bug Something isn't working label Sep 6, 2024
@jdneo
Copy link
Member

jdneo commented Sep 9, 2024

Build server won't build the project on source file change events I think.

What messages did you see in the status bar?

@nonicknamelala
Copy link

Build server won't build the project on source file change events I think.

What messages did you see in the status bar?

Is there a way to set up the Gradle server to automatically update or compile to the build directory after resource and code changes please? Manually building every time is really cumbersome. Thank you!

@jdneo
Copy link
Member

jdneo commented Oct 21, 2024

@nonicknamelala Before launching the application or running the tests, gradle build server should be invoked to build the project. Could you let me know what's your case that this behavior is not enough?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants