Daily Usage Issues

Unicode issues

Started by kojoru on 24,997 views

Hi,

NCrunch fails to display Russian text for me and shows weird symbols instead like this:
[img=http://i.imgur.com/RumWjQO.png]Unicode issue[/img]

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

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?

Edited

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
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.
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
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!

Edited

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
In my case all build errors or test errors contain weird symbols instead of Russian characters.
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.
Will it be resolved in NCrunch ver.1 and not only in ver.2?
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.
I second the wish for fix in V1, as I'm affected too (Czech characters).
Good news everyone!

Issue was self-resolved somehow on my PC after some windows updates. So.. never mind )
No.. it was broken again after some windows updates ((
I wonder about the relationship here to Windows Updates. Are you certain there isn't a different pattern of occurrence, perhaps something intermittent?
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.

External image

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.

Edited

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

Yes nothing happens
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
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?
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.

Post a reply

Log in to reply.