LINQPad 9 doesn't shelve properly in LINQPad 8 is also used

I have LINQPad verisons 7, 8 and 9 running on my machine. I was restarting my machine and had shut down 9, then 8, then 7. When I came back, I started 7, then 8, then 9. 9 was missing all my shelved files so I thought they were gone for good. A little while later, I was looking at 8 and noticed that my files from 9 were there instead. Looking into my AppData\Local\LINQPad\Sessions directory, I noticed there is a LINQPad7 and a LINQPad8 directory, but no LINQPad 9 directory. I believe this is why LINQPad 8 had my 9's files and why 9 opened with nothing.

Of note, though, it does seem to shelve right if you close LINQPad 9 and then reopen it (and it doesn't open LINQPad 8's files when doing so). This probably only happens if you close 9, then 8, and then open 8, then 9.

Comments

  • LINQPad 8 and 9 share the same shelf, because their formats are compatible.

    This means that if you close one and then open the other, you'll transfer files from one to the other.

    While this can create counterintuitive scenarios (as you experienced), I believe it's beneficial overall, because it significantly reduces the chance of conflicts if the same file is edited in both.