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

Incremental build is not working correctly with external builder #945

Open
ghentschke opened this issue Nov 21, 2024 · 2 comments
Open

Incremental build is not working correctly with external builder #945

ghentschke opened this issue Nov 21, 2024 · 2 comments

Comments

@ghentschke
Copy link
Contributor

ghentschke commented Nov 21, 2024

Describe the bug
Small changes in a source file should trigger an incremental build. Instead make performs a full build. See also this old CDT forum entry: https://www.eclipse.org/forums/index.php/t/1108303/

To Reproduce
Steps to reproduce the behavior:

  1. Create a managed build project with an external make builder.

  2. Show a projects resource in the Device Shell. E.g. right click on a projects folder Show In -> Device Shell

  3. Try to rename the project. The rename should fail due to missing (write) access on the projects folder.
    image

  4. Make a small change in a source file.

  5. Build the project.

  6. A full build will be performed instead of only compiling the changed resource.

Expected behavior
The rename should not be performed when not all resources in a project can be accessed for writing.

Screenshots
A failed rename can lead to a not renamed refresh policy setting:
image

This can cause random behavior of the incremental build. See also this failure/solution description from 2015: https://mcuoneclipse.com/2015/06/06/eclipse-project-refresh-policy-broken-incremental-build-with-external-make/

Version Information (please complete the following information):

  • OS and OS Version/extra details: Windows 11
  • Eclipse Version from Help -> 2024-09
  • CDT Version 11.x.x
@ghentschke
Copy link
Contributor Author

Not sure, maybe the fix has to be done not in CDT. This has to be invetigated.

@ghentschke ghentschke changed the title Incremental build is not working properly with external builder Incremental build is not working correctly with external builder Nov 21, 2024
@ghentschke
Copy link
Contributor Author

Maybe we can add a check prior to the incremental build that the resource in the refresh policy does not match the current project and give a warning to the user.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant