[jbosstools-issues] [JBoss JIRA] (JBIDE-13035) Mave Repositories : TextMerge Preview always shows whitespace changes on Windows

Snjezana Peco (JIRA) jira-events at lists.jboss.org
Tue Nov 13 08:25:18 EST 2012


    [ https://issues.jboss.org/browse/JBIDE-13035?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12733714#comment-12733714 ] 

Snjezana Peco commented on JBIDE-13035:
---------------------------------------

The issue is caused by a non-system line delimiter. You see an invalid leading space character, but the real issue is the result of a line ending character(s).
The issue can easily be fixed if you convert the settings.xml by editing it on Windows or using the unix2dos utility.
Changing the line delimiter in the Eclipse preferences won't help for already created files.
The mentioned workaround can't be used for git because it invalidates files again when committing/pushing.


                
> Mave Repositories : TextMerge Preview always shows whitespace changes on Windows
> --------------------------------------------------------------------------------
>
>                 Key: JBIDE-13035
>                 URL: https://issues.jboss.org/browse/JBIDE-13035
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: maven
>    Affects Versions: 4.0.0.Beta2
>         Environment: Windows 7 pro 64
>            Reporter: Fred Bricon
>            Assignee: Max Rydahl Andersen
>             Fix For: 4.0.0.CR1
>
>         Attachments: Text_Merge_preview_show_whitespace_changes.png
>
>
> On Windows, the Maven Repositories wizard's preview pane always shows whitespace changes, diminishing the preview usefulness.
> !Text_Merge_preview_show_whitespace_changes.png!
> I tried to mess with the code a bit but to no avail. I suspected some line endings weirdness, but it seems to be really a problem with white spaces. I tried to compare the contents of my original settings.xml, to the contents in both panels, using an hex editor, they really are identical. 
> I don't have any issue on linux.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jbosstools-issues mailing list