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

System.Exception: Operation could not be completed due to earlier error #362

Open FaguiCurtain opened 7 years ago

FaguiCurtain commented 7 years ago

I'm running Deedle 1.2.5 after installing FSLab on Xamarin 6.3 on MacOS Sierra

in FSI, i'm trying to go through the tutorial http://bluemountaincapital.github.io/Deedle/frame.html

people.Columns?Age;;
 val it : ObjectSeries<string> =
 Joe     -> 51 
 Tomas   -> 28 
 Eve     -> 2  
 Suzanne -> 15 

people.Columns?Age.As<int>;;
 Stopped due to error
 System.Exception: Operation could not be completed due to earlier error
 Lookup on object of indeterminate type based on information prior to this program point. A type annotation may be 

people.Columns?Age.TryAs<string>();;
 Stopped due to error
 System.Exception: Operation could not be completed due to earlier error
 Lookup on object of indeterminate type based on information prior to this program point. A type annotation may be needed prior to this program point to constrain the type of the object. This may allow the lookup to be resolved. at 3,0
dsyme commented 7 years ago

@tpetricek Looks like a Mono/OSX-specific bug?

tpetricek commented 7 years ago

It might be mono-related, but I'm really puzzled by what can lead to "Operation could not be completed due to earlier error" or "Lookup on object of indeterminate type" in this context.

Could this be caused by how Xamarin sends things to F# Interactive? /cc @nosami