"Unsupported type" exception with TypeSafe sample type
See original GitHub issueDescription
“Unsupported type” exception when using TypeSafe.
Repro steps
Please provide the steps required to reproduce the problem
-
Create a console app or an FSX script.
-
Use sample class for value printer (as published on the front page of this repo)
-
Place a statement let p = mkPrinter<TestType>()
Expected behavior
Should create a value printer for the type TestType.
Actual behavior
The statement above causes exception:
Unhandled Exception: System.Exception: unsupported type 'System.Tuple3[Microsoft.FSharp.Collections.FSharpList
1[System.Int32],Microsoft.FSharp.Core.FSharpOption1[System.String],System.String]' at Microsoft.FSharp.Core.PrintfModule.PrintFormatToStringThenFail@1360.Invoke(String message) at Program.mkPrinter[T]() in C:\Projects\Temp\TypeShapeTest\TypeShapeTest\Program.fs:line 54 at Program.mkPrinter@22-8.TypeShape-ITuple2Visitor
1-Visitt1,t2 in C:\Project\Temp\TypeShapeTest\TypeShapeTest\Program.fs:line 25
at TypeShape.ShapeTuple22.TypeShape-IShapeTuple2-Accept[a](ITuple2Visitor
1v) in C:\Projects\Temp\TypeShapeTest\TypeShapeTest\TypeShape.fs:line 288
at Program.mkPrinterT in C:\Projects\Temp\TypeShapeTest\TypeShapeTest\Program.fs:line 22
at Program.main(String[] argv) in C:\Projects\Temp\TypeShapeTest\TypeShapeTest\Program.fs:line 68
Known workarounds
No workaround.
Related information
- Windows 8.1
- Visual Studio 2015
- Branch
- .NET Runtime, CoreCLR or Mono Version
- Performance information, links to performance testing scripts
Issue Analytics
- State:
- Created 7 years ago
- Comments:10 (4 by maintainers)
Top GitHub Comments
This issue seems to be closable ?
Sorry, my bad. All works.