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

Notification

Icon
Error

2 Pages12>
Unicode issues
kojoru
#1 Posted : Thursday, November 14, 2013 12:34:31 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 10/9/2013(UTC)
Posts: 4
Location: Russia

Was thanked: 1 time(s) in 1 post(s)
Hi,

NCrunch fails to display Russian text for me and shows weird symbols instead like this:
Unicode issue

What's more interesting, it I copy and paste the text it looks ok like this:
Quote:

Repositories\OrderRepositoryWith1C.cs (229)#0: "Quadra.Api.BusinessModels.Sku" не содержит определение для "InternalId". Не удалось найти метод расширения "InternalId", принимающий первый аргумент типа "Quadra.Api.BusinessModels.Sku" (пропущена директива using или ссылка на сборку?)
Repositories\OrderRepositoryWith1C.cs (239)#1: Наиболее подходящий перегруженный метод для "System.Collections.Generic.Dictionary<string,byte[]>.this[string]" имеет несколько недопустимых аргументов
Repositories\OrderRepositoryWith1C.cs (239)#2: Аргумент "1": преобразование типа из "QuadraAPI.ApiMembers.VATType" в "string" невозможно
Repositories\OrderRepositoryWith1C.cs (241)#3: Наиболее подходящий перегруженный метод для "Quadra.Datastore.Sql.Repositories.OrderRepositoryWith1C.ApplyVAT(decimal, string, string, int)" имеет несколько недопустимых аргументов
Repositories\OrderRepositoryWith1C.cs (241)#4: Аргумент "2": преобразование типа из "QuadraAPI.ApiMembers.VATType" в "string" невозможно
Repositories\OrderRepositoryWith1C.cs (269)#5: "Quadra.Api.BusinessModels.Sku" не содержит определение для "InternalId". Не удалось найти метод расширения "InternalId", принимающий первый аргумент типа "Quadra.Api.BusinessModels.Sku" (пропущена директива using или ссылка на сборку?)
Repositories\OrderRepositoryWith1C.cs (275)#6: Наиболее подходящий перегруженный метод для "System.Collections.Generic.Dictionary<string,byte[]>.this[string]" имеет несколько недопустимых аргументов
Repositories\OrderRepositoryWith1C.cs (275)#7: Аргумент "1": преобразование типа из "QuadraAPI.ApiMembers.VATType" в "string" невозможно
Repositories\OrderRepositoryWith1C.cs (277)#8: Наиболее подходящий перегруженный метод для "Quadra.Datastore.Sql.Repositories.OrderRepositoryWith1C.ApplyVAT(decimal, string, string, int)" имеет несколько недопустимых аргументов
Repositories\OrderRepositoryWith1C.cs (277)#9: Аргумент "2": преобразование типа из "QuadraAPI.ApiMembers.VATType" в "string" невозможно
:Repositories\OrderRepositoryWith1C.cs (281)#10 "Quadra.Api.BusinessModels.Sku" не содержит определение для "InternalId". Не удалось найти метод расширения "InternalId", принимающий первый аргумент типа "Quadra.Api.BusinessModels.Sku" (пропущена директива using или ссылка на сборку?)


If there anything I can do to see the characters properly?
1 user thanked kojoru for this useful post.
BohumilJanda on 1/23/2014(UTC)
Remco
#2 Posted : Thursday, November 14, 2013 10:31:02 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,123

Thanks: 957 times
Was thanked: 1286 time(s) in 1193 post(s)
Hi, thanks for sharing this issue!

This is a known issue with the richedit control used to display the output from the test. Sadly, the problem is internal to the control and can only be resolved by completely replacing it (a large piece of work). Hopefully we'll get space to resolve this soon. Meanwhile, I recommend copy/pasting if you need to read Russian output from the test.

Cheers,

Remco
kojoru
#3 Posted : Friday, November 15, 2013 12:52:59 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 10/9/2013(UTC)
Posts: 4
Location: Russia

Was thanked: 1 time(s) in 1 post(s)
Ok, I see. It's certainly not a major issue, just a little bit annoying.

On a related note, is there any way to see compiler messages in Visual Studio language, not system language like the VS itself does?
In my Russian Windows + English Visual Studio setup I see English errors on VS error screen and Russian errors in NCrunch build error view.
Remco
#4 Posted : Friday, November 15, 2013 10:20:17 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,123

Thanks: 957 times
Was thanked: 1286 time(s) in 1193 post(s)
Hi,

The NCrunch build process must be inheriting the current UI culture from your O/S, then using this to formulate the error messages output from the build process. This is interesting - I did not know that the build process could do this.

I'm afraid that there isn't a way to fix this yourself other than changing your O/S localization. This is something that will need to be fixed in NCrunch itself. I've made a note to look at this for future releases.


Cheers,

Remco
springjazzy
#5 Posted : Tuesday, January 21, 2014 9:26:15 AM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 6/6/2012(UTC)
Posts: 46

Hi!

I have also faced that issue two days ago and I'm also from Russia. What is interesting - issue appeared after some windows updates. Before that updates everything was ok!
Remco
#6 Posted : Tuesday, January 21, 2014 10:41:02 AM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,123

Thanks: 957 times
Was thanked: 1286 time(s) in 1193 post(s)
Hi! Sorry, I'm wondering if you could clarify the issue you've just had come up. Is this the issue with the Tests Window showing incorrect text, or is it the issue related to build errors being shown in the wrong language?


Thanks,

Remco
springjazzy
#7 Posted : Tuesday, January 21, 2014 11:04:13 AM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 6/6/2012(UTC)
Posts: 46

In my case all build errors or test errors contain weird symbols instead of Russian characters.
Remco
#8 Posted : Tuesday, January 21, 2014 11:38:42 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,123

Thanks: 957 times
Was thanked: 1286 time(s) in 1193 post(s)
Thanks. This would be the same issue tied back to bugs in the richedit control. We really need to get rid of this thing.

The fact that it appeared for you after Windows updates is particularly interesting. I wonder if this could have been an update related to the Russian language pack? Regardless, the component needs to go. It performs poorly and is lacking in some necessary features. Unfortunately, its a big job, which makes it quite hard to promise how soon I'll be able to do it.
springjazzy
#9 Posted : Wednesday, January 22, 2014 6:16:55 AM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 6/6/2012(UTC)
Posts: 46

Will it be resolved in NCrunch ver.1 and not only in ver.2?
Remco
#10 Posted : Wednesday, January 22, 2014 9:07:17 AM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,123

Thanks: 957 times
Was thanked: 1286 time(s) in 1193 post(s)
I'm hoping to fix this in a minor release in V2. V1 is being wound down at the moment as the V2 RTM is very close.
BohumilJanda
#11 Posted : Thursday, January 23, 2014 8:37:00 AM(UTC)
Rank: Member

Groups: Registered
Joined: 5/16/2012(UTC)
Posts: 13
Location: Litoměřice

Thanks: 5 times
Was thanked: 1 time(s) in 1 post(s)
I second the wish for fix in V1, as I'm affected too (Czech characters).
1 user thanked BohumilJanda for this useful post.
Remco on 1/23/2014(UTC)
springjazzy
#12 Posted : Monday, January 27, 2014 6:15:32 AM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 6/6/2012(UTC)
Posts: 46

Good news everyone!

Issue was self-resolved somehow on my PC after some windows updates. So.. never mind )
springjazzy
#13 Posted : Tuesday, February 4, 2014 12:16:57 PM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 6/6/2012(UTC)
Posts: 46

No.. it was broken again after some windows updates ((
Remco
#14 Posted : Tuesday, February 4, 2014 12:39:02 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,123

Thanks: 957 times
Was thanked: 1286 time(s) in 1193 post(s)
I wonder about the relationship here to Windows Updates. Are you certain there isn't a different pattern of occurrence, perhaps something intermittent?
springjazzy
#15 Posted : Tuesday, February 4, 2014 1:24:58 PM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 6/6/2012(UTC)
Posts: 46

Can't say for sure. All i know is that at Monday everything worked fine in different solutions. in Tuesday everything was broken and I know there were updates.

What is most inconvenient here is that "quick go to error line" feature is broken is that case.



Remco
#16 Posted : Wednesday, February 5, 2014 12:46:14 AM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,123

Thanks: 957 times
Was thanked: 1286 time(s) in 1193 post(s)
How does the line navigation behave? Is it that you click it and nothing happens?

I'm trying to reproduce this issue again in the hope I can find a workaround without massive amounts of development required. Which O/S are you running? Is it Windows 7?

Also - noticing that you're still running on Version 1. Does the problem appear on Version 2? The component is the same, but it doesn't hurt to try. V2 has some nice features that make it worthwhile upgrading to anyway.
springjazzy
#17 Posted : Wednesday, February 5, 2014 4:58:53 AM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 6/6/2012(UTC)
Posts: 46

> How does the line navigation behave? Is it that you click it and nothing happens?

Yes nothing happens
Remco
#18 Posted : Tuesday, February 25, 2014 7:47:21 AM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,123

Thanks: 957 times
Was thanked: 1286 time(s) in 1193 post(s)
Hi -

I've finally managed to replace the RichEdit control that's been responsible for all of this mess.

The new control is currently in a development build. I'm hoping to push it out with the next minor release of NCrunch (v2.5). Would you be interested in giving it a try? I'm very interested in whether this solves the display corruption issues you've been seeing:

http://downloads.ncrunch.net/NCrunch_GridNodeServer_2.5.0.8.msi
http://downloads.ncrunch.net/NCrunch_GridNodeServer_2.5.0.8.zip
http://downloads.ncrunch.net/NCrunch_VS2008_2.5.0.8.msi
http://downloads.ncrunch.net/NCrunch_VS2010_2.5.0.8.msi
http://downloads.ncrunch.net/NCrunch_VS2010_2.5.0.8.zip
http://downloads.ncrunch.net/NCrunch_VS2012_2.5.0.8.msi
http://downloads.ncrunch.net/NCrunch_VS2012_2.5.0.8.zip
http://downloads.ncrunch.net/NCrunch_VS2013_2.5.0.8.msi
http://downloads.ncrunch.net/NCrunch_VS2013_2.5.0.8.zip

Thanks!

Remco
BohumilJanda
#19 Posted : Tuesday, February 25, 2014 12:21:43 PM(UTC)
Rank: Member

Groups: Registered
Joined: 5/16/2012(UTC)
Posts: 13
Location: Litoměřice

Thanks: 5 times
Was thanked: 1 time(s) in 1 post(s)
I checked it with VS2010 and it looks that encoding is fixed at least on my win7 box. I also tried to emit Chinese characters and they look to me to be same as the ones in the unicoded source.

If I understand it correctly, that backport to version 1 is not going to happen or is it?
Remco
#20 Posted : Tuesday, February 25, 2014 10:48:22 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,123

Thanks: 957 times
Was thanked: 1286 time(s) in 1193 post(s)
Thanks for checking this out. I'm glad the issue is finally fixed.

I'm really sorry but there's no way I can back port this to V1. It was a massive piece of work, and pushing it backwards would likely destabilise V1.
Users browsing this topic
Guest
2 Pages12>
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.120 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download