FSharp.Data icon indicating copy to clipboard operation
FSharp.Data copied to clipboard

CsvProvider does not work with single column

Open MikaelUmaN opened this issue 5 years ago • 1 comments

Yes, a seldom used feature supposedly. Still, it doesn't work and sometimes I just want to read/write a single column.

Reproduce:

  • Using VS 2019
  • Using netcore sdk 2.2.x

type ExampleCsv = CsvProvider<Schema = "MyInt (int)", HasHeaders = false>

When adding a second column:

type ExampleCsv = CsvProvider<Schema = "MyInt (int), MyString (string)", HasHeaders = false>

it works.

MikaelUmaN avatar Jul 15 '19 13:07 MikaelUmaN

Hi, @MikaelUmaN I try to reproduce your problem at first by creating test cases that proves a problem. But all of them passes. Could you give some more information on how to reproduce a problem (or maybe I screwed up the test cases :()?

MNie avatar Aug 11 '19 21:08 MNie