LINQPad 9 - Early Preview now available

1235»

Comments

  • @drocx - I think I've found the issue. Let me know if it's not fixed in 9.3.12.

    @JeffMercado - This will be fixed in 9.3.12.

  • JeffMercado
    edited November 8

    The unhandled error happened again and checked the event log, nothing terribly useful for me, maybe helps find a cause?

    To be clear, LP9 continued to run normally. This only stopped the script from running the first time after an update to the code. Rerunning again (with no further changes) runs as expected.

    Source: .NET Runtime

    Application: LINQPad9.exe
    CoreCLR Version: 9.0.1025.47515
    .NET Version: 9.0.10
    Description: The process was terminated due to an unhandled exception.
    Exception Info: exception code c0000008, exception address 00007FFD48C45CEA
    Stack:
    

    Source: Application Error

    Faulting application name: LINQPad9.exe, version: 1.0.8.0, time stamp: 0x68524449
    Faulting module name: ntdll.dll, version: 10.0.26100.6899, time stamp: 0x234c0f50
    Exception code: 0xc0000008
    Fault offset: 0x0000000000165cea
    Faulting process id: 0x43FC
    Faulting application start time: 0x1DC500FE9B40307
    Faulting application path: C:\Program Files\LINQPad9\LINQPad9.exe
    Faulting module path: C:\WINDOWS\SYSTEM32\ntdll.dll
    Report Id: 88ad5cb6-e961-4a89-9797-a1bbca24f2c9
    Faulting package full name: 
    Faulting package-relative application ID: 
    

    This might indicate an issue with my OS files, ran a scan and it made some repairs... we'll see if it happens again.

  • Convert to class/Convert to record.

    Sometimes you slip in new features with just a casual little mention and I almost missed this one.

    That will get used a lot!

    Thanks (yet again).

  • Hegi
    edited November 11

    There seems to be some lag with copy-paste in the new version. The paste part works just as expected, but both copy and cut freezes the app for a second or so. Check the gif for an example. (It's the same behavior with shortcuts, however you can see it more clearly with the
    context menu)

    P.S. Sorry if this is the wrong place to post it. I haven't found an explicit >>report-a-bug-here<< place for LinqPad 9.

  • When this delay occurs, does the clipboard operation succeed? Can you paste the text into another application besides LINQPad?

  • FYI - The new sample "Demo - Using Mermaid to draw diagrams.linq" contains a connection to your "Licensing database"

    Sample runs fine when I remove the connection.

  • Thanks - will clean this up.

  • Got a different error this time:

    Script ended unexpectedly.

    Nothing in the event logs. Only other thing I could find is the exit status for the script process:

    Script process ended with exit code -1073741816.


    I've also seen a third variation of the unknown error. Nothing in the logs still, but "Script successful" in the status bar.

    Script ended because an uncatchable exception was thrown. To debug, press Ctrl+U to enable breaking on exceptions.

    Rerunning again runs normally. In this case, I had just logged back in after taking a lunch break and there was likely a background scan while I was out.

  • Do you have third-party antivirus software installed?

  • Yes, work laptop so I don't have much control over that. Trend Micro. Scans are scheduled to run Mondays at noon so it wouldn't have been running at the time. But I do have the LINQPad install directories to be excluded from scans, I'm not sure if that includes its realtime scanner.

  • The entire codebase is now WPF/XPF.

    @JoeAlbahari is it Avalonia XPF (as for linqpad 8 macos)? If so - any chance you provide a Linux version as this is now supported with latest Avalonia/net10?

    Thanks

  • @Winlin There are a couple of blocking issues for Linux support:

    • Low demand
    • No embedded web browser support yet in XPF/Avalonia
    • No embedded web browser support yet in XPF/Avalonia

    wasn't aware that parts are running in the webview ... but yes, that is currently not working well on linux. Thanks for your answer

  • I seem to have lost most of my autosaved files and they appear to be really gone (not just in another session folder)

    I got prompted to restart to installed a new version (9.3.21) and on restart was immediately told me that there was another new version (9.3.22) and I restarted to install it.

    The log for today has a lot of errors.

    9.3.21 (X64) 2025-11-18T08:02:32.4546043+00:00 ArgumentException - You must specify a file path if includeHeader is null

    Source=LINQPad.Runtime

    -LINQPad.QueryCore Boolean WriteTo(System.IO.StreamWriter, System.String, System.Nullable`1[System.Boolean], Boolean, System.String[], LINQPad.NuGetPackageRef[], Boolean) offset: 0x22
    -LINQPad.AutoBackup+AutoBackupToken Void Save(Boolean, Boolean, Int32, Int32) offset: 0x129

    9.3.21 (X64) 2025-11-18T08:02:32.4757967+00:00 ArgumentException - You must specify a file path if includeHeader is null

    Source=LINQPad.Runtime

    -LINQPad.QueryCore Boolean WriteTo(System.IO.StreamWriter, System.String, System.Nullable`1[System.Boolean], Boolean, System.String[], LINQPad.NuGetPackageRef[], Boolean) offset: 0x22
    -LINQPad.AutoBackup+AutoBackupToken Void Save(Boolean, Boolean, Int32, Int32) offset: 0x129

    9.3.21 (X64) 2025-11-18T08:02:32.5422438+00:00 About to call PatchCaller

    Plus about 25 more of the ArgumentException error and finally

    9.3.22 (X64) 2025-11-18T08:03:58.6653150+00:00 About to call PatchCaller

  • My apologies. There was a glitch in 9.3.21 that could cause this. It's been fixed in the subsequent build.

  • @JoeAlbahari said:
    When this delay occurs, does the clipboard operation succeed? Can you paste the text into another application besides LINQPad?

    Sorry for the late reply; I got side-tracked somewhat. While the delay is happening I can't paste anything; anywhere. Like if I copy bbbb to my clipboard, then I type in aaaa to LinqPad and I cut that to the clipboard, I can't paste anything (neither bbbb nor aaaa) in any application. After the cut/copy completes in LinqPad and the delay is done; I can paste the text from LinqPad.

    Very odd experience. I was able to capture it with notepad and the context menu. Note how the paste option in notepad is blank when I right click there a second time:

  • craig04
    edited December 3

    There are a couple of blocking issues for Linux support ... Low demand

    Well then allow me to express my vehement support of a full Linux version of this great software. I'm currently a paid customer, and I'd GLADLY pay an extra fee to get a Linux version, as I am currently switching to being a full-time Linux user (having been a devout Windows user ever since I got my first computer as a teen in 1996, I am NOT happy with the direction Microsoft is taking Windows in these days, and I no longer feel I can trust that my files and personal data are safe with them). Problem is, I still need to support many LINQPad scripts, both for myself personally and for work. Thx.

    Edit: Heck, I'd pay for a whole new license; in advance, if you want to crowdfund it.