Skip to content

Conversation

@RedSkittleFox
Copy link

This change addresses item #4421

This fixes a bug which would always run clean rebuild instead of build

The following changes are proposed:

  • Update the findBuildTask function to properly account for the two existing templates.
  • Properly select the build task instead of clean rebuild task. The cleaning in the CMake: Clean Rebuild command is handled separately and currently is being done twice.

Other Notes/Information

The debugging process with code snippets and screenshots has been documented in the respective issue.

@hanniavalera
Copy link
Contributor

Hi @RedSkittleFox, thank you for working on fixing this bug!

Just wanted to let you know that the CI pipeline is failing due to linting issues in your changes. It may have to do with the spacing in front of the if and also the equality with == as opposed to ===.

Also, I noticed there might be some duplication in the logic. It looks like you have overlapping conditions for handling 2 tasks. The current change shows: First condition handles length === 1 || length === 2. Then immediately after, another condition handles length === 1 || length === 3. Could you clarify and elaborate on the intended logic here?

Once you fix the linting issues, the tests should pass. You can run yarn lint --fix locally to automatically fix some of these issues before pushing!

Thanks again for your contribution! Let me know if you need any help with these changes.

@RedSkittleFox RedSkittleFox force-pushed the fix-always-clean-rebuild branch from 55d868d to 9c4e578 Compare November 7, 2025 20:13
@RedSkittleFox
Copy link
Author

Hi @RedSkittleFox, thank you for working on fixing this bug!

Just wanted to let you know that the CI pipeline is failing due to linting issues in your changes. It may have to do with the spacing in front of the if and also the equality with == as opposed to ===.

Also, I noticed there might be some duplication in the logic. It looks like you have overlapping conditions for handling 2 tasks. The current change shows: First condition handles length === 1 || length === 2. Then immediately after, another condition handles length === 1 || length === 3. Could you clarify and elaborate on the intended logic here?

Once you fix the linting issues, the tests should pass. You can run yarn lint --fix locally to automatically fix some of these issues before pushing!

Thanks again for your contribution! Let me know if you need any help with these changes.

Hey, I've fixed the the formatting. The first condition only handles the case 2. The diff is a bit confusing.

@RedSkittleFox RedSkittleFox force-pushed the fix-always-clean-rebuild branch from 86fb142 to 81d0744 Compare November 7, 2025 20:24
@RedSkittleFox
Copy link
Author

Okay, this is embarrassing. Give me a moment, I wrongly assumed that running the vs-code's format command is going to resolve the issue. I need to look into that.

@RedSkittleFox RedSkittleFox force-pushed the fix-always-clean-rebuild branch from 81d0744 to 3b928b4 Compare November 7, 2025 20:36
@RedSkittleFox
Copy link
Author

Okay, now I've fixed it and confirmed it with yarn run lint. I've looked into the error and it turns out that the vs-code's formatter fixed my issue but caused another one that wasn't visible in the local diffs. Sorry for the confusion.

@hanniavalera hanniavalera force-pushed the fix-always-clean-rebuild branch from 3b928b4 to cd32647 Compare November 30, 2025 14:00
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

Successfully merging this pull request may close these issues.

2 participants