Can we get feedback when compiling, about what FSC version is being used?
See original GitHub issueThis may be more relevant to people working with developing the compiler itself, but I often find myself wondering what compiler is being configured from my Visual Studio. Having both VS 2022, older version and VS 2022 Preview, plus the one compiled by the F# repo, I’m often not 100% sure what version I’m using.
This is even more relevant when reporting bugs. People tend to be behind on updates, so having the FSC (or VS or whatever) dump the version of FSC just before compiling helps identifying where they’re at.
Another use case is in CI, which can have slightly different versions of FSC. As such, dumping the version for comparison may help analyse spurious bugs.
Proposed solution
Instead of this:
Build started...
1>------ Build started: Project: My.Extensions.Actions, Configuration: Debug Any CPU ------
2>------ Build started: Project: My.Extensions.Security, Configuration: Debug Any CPU ------
I’d like to see this instead:
Build started using fsc version 6.0.12345-beta45678...
1>------ Build started: Project: My.Extensions.Actions, Configuration: Debug Any CPU ------
2>------ Build started: Project: My.Extensions.Security, Configuration: Debug Any CPU ------
It may also be reported on each individual project, if that makes more sense.
Describe alternatives you’ve considered
Well, I tried using --version
on fsc
but that crashed Visual Studio (https://github.com/dotnet/fsharp/issues/13549). This has meanwhile been fixed (https://github.com/dotnet/fsharp/pull/13702), but the solution suppresses the version output, as opposed to showing it.
Issue Analytics
- State:
- Created a year ago
- Comments:6 (6 by maintainers)
Top GitHub Comments
Thanks, @psfinaki. If you need help with this, like testing something or whatnot, let me know!
@dsyme For a while now, this has always shown a beta version of F#, even though you are in a normal (non pre-release) VS 2022. I’ve reported it a few years back, but it is still there. That version has no semblance whatsoever with the FSC version (you cannot even figure out here whether you’re on F# 5, 6 or 6.0.6 etc).
Of all the Microsoft compilers in the About-window, it is the only one that always shows the wrong version.
Also, the concrete FSC executable used is very hard to figure out. So if there’s some way of getting this info, it would be so, so helpful. Since output of FSC is shown in the output window, I’d guess just dumping the current version as part of it shouldn’t be too hard.