Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Xaml files with german Umlaute äöüÄÖÜ don't compile
slieser
#1 Posted : Wednesday, May 25, 2011 7:34:09 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 5/19/2011(UTC)
Posts: 5
Location: Cologne, Germany

Xaml file with german Umlaute gives the following error:

[09:31:38.579-BuildTask-15] Error 'Compilation': fahrkartenautomat.gui.app: C:\Users\slieser\AppData\Local\NCrunch\5504\15\MainWindow.xaml (16): 'Invalid character in the given encoding. Line 16, position 143.' XML is not valid.

Build fine under VS2010 and even R# has no problem with this ;-)


Regards
Stefan Lieser
Remco
#2 Posted : Wednesday, May 25, 2011 12:20:04 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 6,976

Thanks: 931 times
Was thanked: 1257 time(s) in 1170 post(s)
Interesting. Is there anything you can tell me about the encoding of the file? UTF/Unicode?

Also - can you punch through a bug report after it fails to build? I'll take a look at the log file :)
slieser
#3 Posted : Wednesday, May 25, 2011 12:53:40 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 5/19/2011(UTC)
Posts: 5
Location: Cologne, Germany

The file was created with VS2010 and is UTF-8 encoded without BOM.

Bug Report is on the way...
Remco
#4 Posted : Wednesday, May 25, 2011 6:34:24 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 6,976

Thanks: 931 times
Was thanked: 1257 time(s) in 1170 post(s)
Awesome, thanks. I'll check it out :)
Remco
#5 Posted : Monday, May 30, 2011 5:40:10 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 6,976

Thanks: 931 times
Was thanked: 1257 time(s) in 1170 post(s)
Hi Slieser,

Thanks again for posting this. I've successfully reproduced and fixed the problem in the upcoming 1.32b release.

The issue is caused by NCrunch losing knowledge of the XAML file's original encoding when modifications are being passed through by the IDE. Therefore you'll only experience this problem if you modify the encoded .XAML file while NCrunch is running in the background. As a workaround, closing the editor window containing the XAML file and doing a disable/enable on NCrunch should allow the issue to correct itself after you've made a change. Alternatively you could restart your IDE.

I hope this helps.


Cheers,

Remco
Remco
#6 Posted : Thursday, June 16, 2011 6:10:08 AM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 6,976

Thanks: 931 times
Was thanked: 1257 time(s) in 1170 post(s)
For anyone interested, a proper fix for this issue has now been released as part of 1.32b.
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAF | YAF © 2003-2011, Yet Another Forum.NET
This page was generated in 0.037 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download