-
Notifications
You must be signed in to change notification settings - Fork 123
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FSharp.Formatting error while using FSharp.Data's CsvProvider in ProjectScaffold. #797
Comments
FSharp.Formatting
error while using FSharp.Data
's CsvProvider in ProjectScaffold.
@oscarvarto Could you add this bug in the FSharp.Formatting repo please? thanks https://github.com/fsprojects/FSharp.Formatting |
@dsyme Sure, I added this because of a recommendation I got in the fsharp.slack.com #beginners channel. Thanks for your quick response! |
@dsyme Is this a |
@matthid It's possible FSharp.Formatting should be skipping provided types. Or else please provide a repro that involves direct calls to the FCS API - the code for FSharp.Formatting is really hard to follow |
Also, FSharp formatting NuGet is really old (over a year old) and is using really outdated version of FCS... so it's hard to know if error is on FCS side, or in F# formatting |
And I really hate it when FCS throws cryptic error messages when accessing properties ;). Repro is retrieving the FSharpEntity of Question is can we detect this before accessing the property and if yes: how? I can try to get a repro but not anytime soon, but I can tell you it's always straight forward for these kinds of issues ;) |
@Krzysztof-Cieslak is correct, please try to use latest alpha package from appveyor :) |
I created an issue fsprojects/FSharp.Formatting#450 following @dsyme instructions. @matthid https://github.com/oscarvarto/ProcessingData might be helpful to reproduce the problem. @Krzysztof-Cieslak I used F# 4.1 by @pblasucci 's recommendation here fsprojects/ProjectScaffold#309 (comment) (and I think that would make my ionide-vscode dev environment unusable, because of prerequisites here https://github.com/ionide/ionide-vscode-fsharp/#getting-started ) Thanks for your guidance. I will try to use latest alpha package for FSharp.Formatting from appveyor as soon as possible (I still don't know how to do it, but I'll figure it out :) |
I believe there is an |
Description
Adding
type Stocks = CsvProvider<"./data/MSFT.csv">
tohttps://github.com/fsprojects/ProjectScaffold/blob/master/src/FSharp.ProjectTemplate/Library.fs
causes a FSharp.Formatting ErrorRepro steps
Please provide the steps required to reproduce the problem
1.a Use
forge new scaffold
to create a new Scaffold.1.b Add
nuget FSharp.Data
togroup Build
inpaket.dependencies
: https://github.com/fsprojects/ProjectScaffold/blob/master/paket.dependencies#L181.c Modify
https://github.com/fsprojects/ProjectScaffold/blob/master/src/FSharp.ProjectTemplate/Library.fs
and call CsvProvider (something like this):1.d Add a
data
folder inside project folder (in my case [root project folder]/src/ProcessingData) and put http://fsharp.github.io/FSharp.Data/data/MSFT.csv inside it..\build.cmd
to run all the targets.Expected behavior
Build correctly.
Actual behavior
I am getting the following error for
GenerateReferenceDocs
target:Known workarounds
None yet :(
Related information
Operating system
Windows 10 Pro 64 bits (running on top of Parallels 12 for Mac).
Branch
.NET Runtime, CoreCLR or Mono Version
I have configured framework in Solutions's
paket.dependencies
to beI have already installed VS 2017 15.3.2
PATH
Environment variables:FSHARPINSTALLDIR
pointing toC:\Program Files (x86)\Microsoft SDKs\F#\4.1\Framework\v4.0\
(I guess VS 2017 installation added that).The text was updated successfully, but these errors were encountered: