Open oscarvarto opened 6 years ago
So, here are my initial thoughts:
This is almost certainly not an issue with ProjectScaffold (that having been said...)
Have you tried deleting the FAKE cache (it's the .fake
folder at the root of your local repository)?
Have you tried pinning (in Paket) the versions of FSharp.Compiler.Service and/or FSharp.Formatting (note: you may have to play around with going up or down a version or two in each project)?
Also, I'm pretty sure you do want to be using F# 4.1. But I agree the MSBuild versions are... troubling.
Oh, also, what version of the runtime are you targeting (e.g. .NET Framework 4.6.1, .NET Stanard 2.0, et cetera)?
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 Addnuget FSharp.Data
togroup Build
inpaket.dependencies
: https://github.com/fsprojects/ProjectScaffold/blob/master/paket.dependencies#L18 1.c Modifyhttps://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
** Verifying the fsc version:
I have already installed VS 2017 15.3.2
PATH
Environment variables:MSBUILD_PATH
environment variable following instructions from https://github.com/ionide/ionide-vscode-fsharp/ pointing toC:\Program Files (x86)\MSBuild\14.0\Bin
I think my installation is not respecting/using this variable, because at the top of the build, I get a message saying that version 15.3.409.57025 of MSBuild is being used:
FSHARPINSTALLDIR
pointing toC:\Program Files (x86)\Microsoft SDKs\F#\4.1\Framework\v4.0\
(I guess VS 2017 installation added that).Maybe this variable is messing with my build, because I am also getting a message about F# 4.1 being used:
https://github.com/fsprojects/FSharp.Formatting/issues/423 https://github.com/fsprojects/FSharp.Formatting/issues/325