Possible output bug with F# program query type
Hi,
I've just encountered this in the latest beta (5.22.09). I'm running on Windows 10 Pro 64 bit version 1703 (build 15063.483).
When I create a new F# Program query which uses Dump to generate output, the output seems to be permanently cached after I've run the query once.
Here's a short video clip illustrating the problem: https://dl.dropboxusercontent.com/u/768836/LINQPad 5 26_07_2017 10_28_53.mp4
If I set the Always use Fresh Process Per Execution option to True in the preferences dialog, this problem goes away and the output is refreshed after every query run again.
This does not happen with C# Program queries.
Is this a bug, or is there something else going on?
I've just encountered this in the latest beta (5.22.09). I'm running on Windows 10 Pro 64 bit version 1703 (build 15063.483).
When I create a new F# Program query which uses Dump to generate output, the output seems to be permanently cached after I've run the query once.
Here's a short video clip illustrating the problem: https://dl.dropboxusercontent.com/u/768836/LINQPad 5 26_07_2017 10_28_53.mp4
If I set the Always use Fresh Process Per Execution option to True in the preferences dialog, this problem goes away and the output is refreshed after every query run again.
This does not happen with C# Program queries.
Is this a bug, or is there something else going on?
Comments
Changing the code seems to result in a recompilation and the output changes accordingly as I'd expect.
I will try something which saves to a file on my work PC (the one which is exhibiting the problem) tomorrow and update this thread.
https://dl.dropboxusercontent.com/u/768836/LINQPad 5 28_07_2017 09_51_21.mp4
The contents of the file are not changed by the second execution of the query.
Again, if I do this in a C# Program query the file is updated as I'd expect, so it seems like this is something to do with the F# compiler in particular?
When I disable this setting, the caching behaviour no longer happens.
Why might that be?
I presume you switched on "Allow LinqPad to access internal types of other assemblies" in the first place for the benefit of C# queries, right? (I don't think this has ever been supported correctly with F#.)
http://www.linqpad.net/download.aspx#beta