Skip to content
This repository has been archived by the owner on Oct 18, 2024. It is now read-only.

[Bug] Files are not saved if I click the sync button #1259

Closed
2 tasks done
Rafael2616 opened this issue Sep 2, 2023 · 3 comments
Closed
2 tasks done

[Bug] Files are not saved if I click the sync button #1259

Rafael2616 opened this issue Sep 2, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@Rafael2616
Copy link
Contributor

What happened?

By clicking the sync project button if I am in a Gradle file that I just changed for example, and click to sync the project the files are not saved, I know that I just click on save first, but a behavior similar to this occurs if I have a file being edited and click on build. It saves automatically.

What's the expected behavior?

Save file by clicking sync project if there are unsaved files

What version of AndroidIDE you're using?

v2.5.2 (debug builds)

Relevant log output

No response

Duplicate issues

  • This issue has not been reported yet.

Code of Conduct

  • I agree to follow this project's Code of Conduct
@Rafael2616 Rafael2616 added the bug Something isn't working label Sep 2, 2023
@gituser1000000
Copy link

gituser1000000 commented Sep 2, 2023

I usually do builds frequently to test out to see the results right away. Every time seeing the message "All files saved" I thought, "Oh boy, I'm going to make the device's flash memory die so soon." I hope only the changed files are saved and not all.

With all the thousands and thousands of cache files written for every project, it's already hard on the flash. If synching and building are done back to back, it causes unnecesary file writting.

So, maybe it could be a preference for users who wouldn't mind wearing out the device too quickly and would like to enable it anyway.

EDIT:
Saving only the gradle file could be another solution.

@itsaky
Copy link
Member

itsaky commented Sep 2, 2023

I usually do builds frequently to test out to see the results right away. Every time seeing the message "All files saved" I thought, "Oh boy, I'm going to make the device's flash memory die so soon." I hope only the changed files are saved and not all.

With all the thousands and thousands of cache files written for every project, it's already hard on the flash. If synching and building are done back to back, it causes unnecesary file writting.

So, maybe it could be a preference for users who wouldn't mind wearing out the device too quickly and would like to enable it anyway.

EDIT: Saving only the gradle file could be another solution.

Only the files that have been modified since the last save operation are saved.

@Rafael2616
Copy link
Contributor Author

Thanks for fixing this inconvenience 👍🙂

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

No branches or pull requests

3 participants