Closed abelbraaksma closed 2 years ago
Yep, latest preview is needed for now unfortunately. We had to update packages to support some latest scenarios. We should've done it in 17.4 branch, but unfortunately did it in main.
I don't really mind having to download latest preview, but can that not be enforced? It's kind of surprising this way (even more so for newcomers to F# compiler & tools). Something like "Hey, you need VS 2099 for running these features"?
At the very least I can update the devguide.md
, didn't find this there.
I'll try with latest preview.
PS: we are talking about this, right? https://visualstudio.microsoft.com/vs/preview/.
I don't really mind having to download latest preview, but can that not be enforced? It's kind of surprising this way (even more so for newcomers to F# compiler & tools). Something like "Hey, you need VS 2099 for running these features"?
At the very least I can update the
devguide.md
, didn't find this there.
We hoped to "stabilize" requirements after we released .NET 7, since now they will be changing rapidly - we need to be testing new framework and VS quite often till release in the autumn.
PS: we are talking about this, right? visualstudio.microsoft.com/vs/preview.
Yep, latest 17.4 preview
Separately, I just got these errors on a clean build of main with the MS internal preview
C:\Program Files\Microsoft Visual Studio\2022\Internal Preview\Common7\IDE\CommonExtensions\Microsoft\NuGet\NuGe
t.targets(132,5): error : The folder 'C:\Users\dsyme\.nuget\packages\fscheck\lib' contains an invalid version. [
C:\GitHub\dsyme\fsharp\VisualFSharp.sln]
C:\GitHub\dsyme\fsharp\tests\FSharp.Core.UnitTests\FSharp.Core.UnitTests.fsproj : error Undefined: The folder 'C
:\Users\dsyme\.nuget\packages\fscheck\lib' contains an invalid version.
C:\GitHub\dsyme\fsharp\tests\FSharp.Core.UnitTests\FSharp.Core.UnitTests.fsproj : error Undefined: The folder 'C
:\Users\dsyme\.nuget\packages\fscheck\lib' contains an invalid version.
C:\GitHub\dsyme\fsharp\tests\FSharp.Core.UnitTests\FSharp.Core.UnitTests.fsproj : error Undefined: The folder 'C
:\Users\dsyme\.nuget\packages\fscheck\lib' contains an invalid version.
C:\GitHub\dsyme\fsharp\tests\FSharp.Core.UnitTests\FSharp.Core.UnitTests.fsproj : error Undefined: The folder 'C
:\Users\dsyme\.nuget\packages\fscheck\lib' contains an invalid version.
0 Warning(s)
5 Error(s)
Hm, seems like related to this PR: https://github.com/dotnet/fsharp/pull/13687, let me see if I can reproduce it. @dsyme out of curiosity, if you remove the FsCheck from the nuget cache - will it build?
It seems to be working on the latest preview for me. But I didn't have this version of the FsCheck installed before. Interesting.
Both VisualFSharpFull and VisualFSharpDebug work for me in the latest 17.4
Yeah, works for me again as well. From time to time, it appears I need to update the dotnet SDK and/or the CLR or something, which makes sense, I guess. Not sure that was the cause here, but either way, all's well that ends well :).
It's been over a year that I tried this, but, at least for me, it doesn't work out of the box. Before I'm going to try to debug what's going on, let me first ask the simple question: is running / debugging from
VisualFSharpFull
in theVisualFSharp.sln
still supported?Repro steps
main
git clean -xdf
)build.cmd
VisualFSharp.sln
Release
, then BuildExpected behavior
It should "just work".
Actual behavior
Receiving a couple of those:
And after clicking each away, it shows this on top, clicking
Reload projects
has no effect:Known workarounds
I'd like to hear them!
Related information
Also tried:
Each of the above leads to load errors.
Log
The
Activity Log
shows a bunch of warnings like this:This:
This:
Errors on IntelliCode and
FSharp.Editor.dll
:And this big one, suggesting there's an assembly load error with LanguageServices for F#:
The VS load log shows many of the following errors repeated (probably once for each project in the solution I'm trying to open):