Undesired changes to the .cyprj file

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
MiAr_4610906
Level 1
Level 1

When a project is built, the .cyprj file often ends up with a change such as this, even though the project was not modified:

-<current_generation v="263" />

+<current_generation v="267" />

That creates confusion when using source control, because it's not clear whether there was any substantive change to the file that requires it to be committed. So we end up polluting the commits as well as creating confusion over whether someone changed something in the project.

It appears that a similar problem occurs with the .cyfit file.

How can we disable that behavior?

0 Likes
1 Solution
DheerajK_81
Moderator
Moderator
Moderator
First comment on KBA First comment on blog 5 questions asked

This is a known issue with PSoC Creator which was reported but there was no project attached. The software team has been evaluating this query but it would help if you could attach your project.

The tag you mentioned is used to keep track of when code generation has been done for the components, telling the system when we are in need of regenerating code. It's an int counter.

The .cyfit file can be part of the .gitignore. It gets generated every time the project is built. Please check what files need to be checked in to version control here: Revision Control for PSoC® Creator™ Projects - KBA86358

Looking forward to your reply!

Regards,

Dheeraj

View solution in original post

0 Likes
1 Reply
DheerajK_81
Moderator
Moderator
Moderator
First comment on KBA First comment on blog 5 questions asked

This is a known issue with PSoC Creator which was reported but there was no project attached. The software team has been evaluating this query but it would help if you could attach your project.

The tag you mentioned is used to keep track of when code generation has been done for the components, telling the system when we are in need of regenerating code. It's an int counter.

The .cyfit file can be part of the .gitignore. It gets generated every time the project is built. Please check what files need to be checked in to version control here: Revision Control for PSoC® Creator™ Projects - KBA86358

Looking forward to your reply!

Regards,

Dheeraj

0 Likes