fslaborg / Deedle

Easy to use .NET library for data and time series manipulation and for scientific programming
http://fslab.org/Deedle/
BSD 2-Clause "Simplified" License
924 stars 196 forks source link

Unhandled Exception #477

Closed liugaocn closed 4 years ago

liugaocn commented 4 years ago

I always get this error, When I am trying to use it with C#. : Unhandled Exception: Cannot print exception string because Exception.ToString() failed.

FoggyFinder commented 4 years ago

Can you please provide minimal example that reproduce behaviour that you described?

liugaocn commented 4 years ago

Thanks.

For example, I used this code from https://fslab.org/Deedle/csharpseries.html

var numNames = new SeriesBuilder<int, string>() { { 1, "one" }, { 2, "two" }, { 3, "three" } }.Series; numNames.Print();

// Debugging... Unhandled Exception: Cannot print exception string because Exception.ToString() failed.

I don't know if it is because I am using Visual Studio 2019 and the newest version of .NetFrame or .NetCore.

FoggyFinder commented 4 years ago

Okay, I see. You have additionally to add package FSharp.Core 4.5 to your project:

    <PackageReference Include="FSharp.Core" Version="4.5.0" />
liugaocn commented 4 years ago

Thank you for the answer.

FoggyFinder commented 4 years ago

Sure. Anyway I think it should be explicit dependency

zyzhu commented 4 years ago

@FoggyFinder Thanks for pointing out the dependency. I’ll add it explicitly to nuget next time when we publish next version.

zyzhu commented 4 years ago

@liugaocn Deedle 2.1.0 has been published with explicit dependency on FSharp.Core. You do not need to add FSharp.Core manually anymore.