mmanela / diffplex

DiffPlex is Netstandard 1.0+ C# library to generate textual diffs.
Apache License 2.0
1.01k stars 183 forks source link

LineNumberWidth error occured #85

Open kykm1307 opened 3 years ago

kykm1307 commented 3 years ago

I had use diffplex.wpf from nuget to implement into my windows form project. However it prompt this error. Annotation 2021-09-02 134435 and when I run as single view it wont show words as screenshot below Annotation 2021-09-02 134630

mmanela commented 3 years ago

@kingcean can you take a look?

kingcean commented 3 years ago

Hi @kykm1307 could you please share your code about it to me if you don't mind? Or compare it with the one in demo?

I have tested it by modifying the demo code, but it looks good in my dev environment. It initializes an instance of DiffPlex.WindowsForms.Controls.DiffViewer control class and sets LineNumberWidth as an Int32 value.

Screenshot 2021-09-04 224954

The binary of the original demo is here (net5.0-windows\DiffPlex.WindowsForms.Demo.exe).