[Bug] "com.crt.config" not robust across platfoms

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

[Bug] "com.crt.config" not robust across platfoms

3,046件の閲覧回数
jd-soc
Contributor II

Hi,


I'm using MCUXpresso 10.3, importing the provided LPC1769 examples.


lpc_chip_175x_6x for instance has the following section at the bottom of its .cproject file :

<storageModule moduleId="com.crt.config">
        <projectStorage>&lt;?xml version="1.0" encoding="UTF-8"?&gt;&#13;
&lt;TargetConfig&gt;&#13;
&lt;Properties property_0="" property_2="LPC175x_6x_512.cfx" property_3="NXP" property_4="LPC1769"

[....]

&lt;link href="nxp_lpcxxxx_peripheral.xme" show="embed" type="simple"/&gt;&#13;
&lt;/info&gt;&#13;
&lt;/infoList&gt;&#13;
&lt;/TargetConfig&gt;</projectStorage>
    </storageModule>

Depending on the OS, the IDE will automatically add or remove those &#13; independently from the chosen line ending and/or git attributes.

This is really annoying when trying to properly track changes on the projects configuration.

タグ(2)
11 返答(返信)

941件の閲覧回数
robinwillis
Contributor I

I have this issue too, exactly as described, using MCUXpresso 11.7.1. Looking forward to a fix!

0 件の賞賛
返信

2,767件の閲覧回数
lpcxpresso_supp
NXP Employee
NXP Employee

Julien,

Thank you for your report - we've logged this issue and will look into it for a future IDE release.

Regards,

MCUXpresso IDE Support

2,767件の閲覧回数
paschaef
Contributor I

Hi, I am using MCUXpresso IDE v11.1.1 and encountering the same issue com.crt.config section in .cproject file.

Was this issue really fixed?

0 件の賞賛
返信

2,767件の閲覧回数
ZhangJennie
NXP TechSupport
NXP TechSupport

Thank you!

0 件の賞賛
返信

2,767件の閲覧回数
ZhangJennie
NXP TechSupport
NXP TechSupport

Hi Julien Delbergue

Thank you for contacting us.

.cproject file contains project settings, such as building tools to be used, various compiler options, and so on.

Can you please upload your demo project to let us check the problem directly?

Besides, please also mention how we can reproduce your issue with your code.

Thanks.

Best Regards,

0 件の賞賛
返信

2,767件の閲覧回数
jd-soc
Contributor II

Hi ZhangJennie,

It should be quite easy to reproduce, independently from any specific project.

Here a detailed example:
1) On a Windows system
- Open MCUXpresso 10.3 (new/clean workspace)
- "Import project from file system" in the Quickstart panel
- Select "lpcopen_2_10_lpcxpresso_nxp_lpcxpresso_1769.zip" from the provided LPCOpen examples
- Select "lpc_chip_175x_6x" from the available projects
- Close MCUXpresso, and commit the imported "lpc_chip_175x_6x" project folder to a git repository

2) On a Linux system
- Clone the project repository, observe the clean git status
- Open MCUXpresso 10.3 (new/clean workspace)
- "Import project from file system" in the Quickstart panel
- Select the directory (unpacked) of the freshly cloned project
- Once the import is successful, close MCUXpresso
- git diff will show you the unwished modification of the .cproject file

The result is the same if going from Linux to Windows.


Thanks for your support.

0 件の賞賛
返信

2,767件の閲覧回数
ZhangJennie
NXP TechSupport
NXP TechSupport

HI

I current don't have a linux computer to test it.

Is the problem ( automatically add or remove those &#13 ) the same if not using GIT?

Jennie Zhang

0 件の賞賛
返信

2,767件の閲覧回数
jd-soc
Contributor II

Hi,
Yes this has nothing to do with Git.

You could also use a virtual machine to run Linux on any computer.
Cheers,
Julien

0 件の賞賛
返信

2,767件の閲覧回数
ZhangJennie
NXP TechSupport
NXP TechSupport

Thanks. Can you please upload both versions(windows,linux) of the .cproject files?

0 件の賞賛
返信

1,746件の閲覧回数
Kenzimatic
Contributor II

Any progress on this issue? I'm on MCUXpresso IDE 11.8.

I'm having the same problem, 4 years later. When I, a Windows user, save my project, the HTML code "&#13;" is added to every newline in the <projectStorage> tag of the .cproject file.

When Linux/Mac users save, the "#&13;" is then removed. It makes for some messy commits.

Unfortunately, it can't be resolved by git because it's not really newlines, but the HTML code for newlines.

0 件の賞賛
返信

2,767件の閲覧回数
jd-soc
Contributor II

Here attached the requested files.

0 件の賞賛
返信