Losing settings in source control

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Losing settings in source control

Jump to solution
1,857 Views
randyhermes
Contributor III

I am working with KDS 3.0.

I am using a product called Vault for source control.

I am working with a working set with 4 librarie projects and 1 application project.

 

When I perform the following actions I am seeing loss of some project settings.

1. Check in my changes (project, source, workspace).

2. Remove local copy

3. Get a new copy from source control.

 

Two things seem to happen regularly.

1. the project build log path reverts to the default workspace location. (I have them all set to a location in the project directory).

2. Debugger configurations disappear.  I have to re-create them.

 

Neither issue is a project stopper - but they are annoying.

 

Anyone have any ideas on why this is happening?

 

Thank You,

 

Randy Hermes

Labels (1)
1 Solution
1,618 Views
Carlos_Mendoza
NXP Employee
NXP Employee

Hi Randy,

Thanks for your response.

Please make sure that your connection has the "Shared file:" option enabled, please take a look to the following post for more information:

Sharing Debug Configuration with Eclipse | MCU on Eclipse

Hope it helps!

Best Regards,

Carlos Mendoza

Technical Support Engineer

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

View solution in original post

0 Kudos
Reply
8 Replies
1,618 Views
Carlos_Mendoza
NXP Employee
NXP Employee

Hi Randy,

The debug connection information is stored on the *.launch files located at "{ProjDirPath}/Project_Settings/Debugger":

pastedImage_0.png

There is a file for each of the run configurations, are you keeping these files under your version control system?

Regarding the build log path, could you post a screenshot of this setting?

Hope it helps!

Best Regards,

Carlos Mendoza

Technical Support Engineer

0 Kudos
Reply
1,618 Views
randyhermes
Contributor III

Hi Carlos,

My projects are outside of the workspace folder.  The .launch files are in the <project>\build directory.

Yes they are saved in source control.

When I retrieve a clean version from source control no configurations are listed under debug configurations even though .launch files are there.

I end up having to re-create them each time.

Sorry for taking so long to respond.  Been busy developing code.

Randy

launch.png

0 Kudos
Reply
1,619 Views
Carlos_Mendoza
NXP Employee
NXP Employee

Hi Randy,

Thanks for your response.

Please make sure that your connection has the "Shared file:" option enabled, please take a look to the following post for more information:

Sharing Debug Configuration with Eclipse | MCU on Eclipse

Hope it helps!

Best Regards,

Carlos Mendoza

Technical Support Engineer

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

0 Kudos
Reply
1,618 Views
randyhermes
Contributor III

Thanks Carlos,

This fixed the debug config issue.

Still resetting log files to workspace folder when I retrieve from source control.

NOTE: We are not saving workspace folder everytime we check in.

Thanks,

Randy,

1,618 Views
Carlos_Mendoza
NXP Employee
NXP Employee

Hi Randy,

Is good to hear that the debug config issue was fixed.

Could you tell me which log paths are resetting? or post a screenshot of where do you modify them?

Best Regards,

Carlos Mendoza

Technical Support Engineer

0 Kudos
Reply
1,618 Views
randyhermes
Contributor III

Hi Carlos,

Here is where I'm setting the logging path.

After round trip through source control it reverts back to the workspace.

NOTE: we are not archiving the workspace everytime.

Thanks - Randy

logging.png

0 Kudos
Reply
1,618 Views
Carlos_Mendoza
NXP Employee
NXP Employee

Hi Randy,

Apologies for the delay, the logging path property is saved on the file named "org.eclipse.cdt.ui.prj-{project name}.prefs" located in the folder "{workspace location}\.metadata\.plugins\org.eclipse.core.runtime\.settings".

Hope it helps!

Best Regards,

Carlos Mendoza

Technical Support Engineer

0 Kudos
Reply
1,618 Views
randyhermes
Contributor III

Thank you Carlos,

That answer the final issue, explains why we keep losing the logging settings since we don't check in the workspace very often.

Randy