question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can we get feedback when compiling, about what FSC version is being used?

See original GitHub issue

This 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:open
  • Created a year ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
abelbraaksmacommented, Sep 12, 2022

Thanks, @psfinaki. If you need help with this, like testing something or whatnot, let me know!

0reactions
abelbraaksmacommented, Sep 26, 2022

Plus the version of F# tooling being used is available for the Help --> About menu?

@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).

Visual F# Tools 17.1.0-beta.22363.4+1b94f89d4d1f41f20f9be73c76f4b229d4e49078

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Demonstrating Impacts - FSC Connect
We are dedicated to compiling evidence to demonstrate outcomes and impacts of FSC certification. Currently, the two main sources of evidence are internally ......
Read more >
Passing FSC credit to the End User - LEEDuser - BuildingGreen
Our company is working to obtain FSC certification. This is new to us so I'm trying to figure how to pass along the...
Read more >
Digital Audit Reporting - FSC Connect
Yes, these statistics will be publicly available. With the successful scaling up of FSC digital audit reporting, all relevant information, which is currently ......
Read more >
FSC claims go digital: how will this affect business?
The platform is currently under development and industry feedback will be essential if the online system is to meet the needs of businesses....
Read more >
FSC® Chain of Custody
FSC Chain of Custody Certification for wood, paper, packaging, forest-based products for supply chains worldwide with bundled certification to SFI and PEFC ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found