Best Of
MissingMethodException when trying to print a string in F#
Hi,
When I try to do a basic printfn
call in F#, I get a MissingMethodException
: Method not found: 'Void Microsoft.FSharp.Core.PrintfFormat`5..ctor(System.String)'.
The code to repro is simple:
printfn "%s" "Hi"
Any ideas on how to fix this?
Thanks,
Jon
Environment:
LINQPad 6.5.5 (x64)
Windows 10
VS 2019 16.4.1
❯ dotnet --list-sdks
1.1.8 [C:\Program Files\dotnet\sdk]
2.2.109 [C:\Program Files\dotnet\sdk]
2.2.402 [C:\Program Files\dotnet\sdk]
3.0.101 [C:\Program Files\dotnet\sdk]
3.1.100 [C:\Program Files\dotnet\sdk]

Re: Why does this work sometime and not others?
Define "it just won't work" - is the program not responding? Is there unexpected output? Is there no output? An exception thrown?
Perhaps something is cached in the application domain - you can refresh (unload) the domain by pressing SHIFT-F5 ("Query Process Unloaded" should appear in status bar)

Re: Licence activation MacOS/Crossover error
Any chance I could get some help with activation as well? I'd love to help test and fix some of the main issues. If we can get this working, the last remnant of my perfect dev environment will be available to me without parallels.

Re: Roadmap for cross platform (ubuntu/linux)?
Really excited about this! I just need to be able to register for premium features.

Re: Query Sorts Differently Depending on Selected .Net Version
You didn't provided any details on what kind of sort you use, so I can only suspect that it is caused by .net 5 migration to ICU: https://docs.microsoft.com/en-us/dotnet/standard/base-types/string-comparison-net-5-plus

Re: Save cache when switching between connections
If you're sure that the two data models are equal, you can create another instance of the typed data context (or user query) to the staging environment.
var conn1 = this; using var conn2 = new TypedDataContext( new SqlConnectionStringBuilder(Connection.ConnectionString) { DataSource = @"sql2\MSSQLSERVER" }.ConnectionString); Util.Dif(conn1.Products, conn2.Products).Dump();

Re: Roadmap for cross platform (ubuntu/linux)?
@urza - Assuming MAUI delivers the x-platform desktop UI features needed for LINQPad, support for macOS is likely to come before Linux.
@wocar and @Dluk - I've added an exception handler around the call to the QueryIdleProcessorCycleTime method - this will appear in the next beta build in a few days.

Can no longer type closing brace
I've just installed version 6.11.11.
If I try to type a closing brace '}', nothing happens. As far I have tried so far, no other characters have been impacted.
Please note that I use the Italian keyboard layout, where the keystrokes to accomplish '}' are Ctrl + Alt + Shift + ']' (in terms of US keyboard layout) or AltGr + Shift + ']'.
If I switch to the US keyboard layout, everything works.
Could this be related to a newly-added keyboard shortcut, together with the non-US keyboard layout?
Thank you.

Re: XmlSerializer gives NotSupportedException
Don't quite understand what this is all about, but you could try the new beta as it has an option relating to 'non-collectiible' in advanced query properties (see screenshot)
