LINQPad 9 - Early Preview now available
Comments
-
The new code fix process seems annoying.
I click in a line with red wavy underline, it highlights a word in yellow and shows a lightbulb on the left-hand side. I click the lightbulb and a menu pops up near the highlighted word, halfway across the screen from the mouse position. In the old system, the little blue arrow drop-down icon also showed up right next to the word so if you clicked the near the wavy line, then clicked the drop-down, the menu was right next to the mouse cursor.
-
@NetMage - is there any reason that you don't just press Alt+Enter?
-
Thanks for the feedback folks. In response to the recent bug reports:
@DualXraY - the bug with self-nested collections has been addressed in 9.3.5. Let me know if there's still an issue.
@sgmoore - SQLite associations should appear correctly in 9.3.5.
@NetMage - the auto-formatting on paste should now be working properly in 9.3.5. Let me know if there are any ongoing issues. I haven't experienced any problems with tooltips appearing when they shouldn't - can you provide a repro for this please? Regarding implementing an abstract class in My Extensions, this can sometimes fail if there are preprocessor directives such as #if or #region nearby. Is this the case, or is there another cause?
-
@JoeAlbahari When the github copilot support arrived?
-
In latest version,
File, New..., Pythonthrows IndexOutOfRangeException, maybe caused by new file-based C# update in list. -
Thanks - will fix in today's build.
-
There is a minor issue when creating a new EF Typed DataContext from your own assembly.
When you click on the option Via a constructor that accepts a string, the Test and OK buttons are disabled and are not re-enabled until you enter something in the Friendly name for this connection (optional) textbox (although they do stay enabled if you clear this text box again).
-
The Find/Replace dialog has a wierd behavior. I copied some text from the script, pressed Ctrl-H to open Find/Replace, then pressed Ctrl-V to paste in the text. The editor highlighted all the matches and the Find/Replace dialog faded but the text fields were still clickable to put in the insertion point, and the buttons still worked, but the dialog was barely visible. Also, clicking on the dialog in a blank area just sent the click to the editor, it wasn't possible to focus the dialog itself.
-
-
I'm not sure what triggers this but, when trying to run a script after making changes, every once in a while, an "uncatchable error" will happen unrelated to my script (with no error dialog) and the script fails to run. Trying again immediately after will work fine.
I used to see this before if there is a stack overflow or something. In these cases however, the script is totally fine and I'm noticing more in v9. Is this happening for anyone else? Any tips on how to diagnose it?
-
Look in the Windows Event Log. It should tell you why the process failed.
-
Ah ok. I see this a lot and I'm fairly certain this is the instance that came from trying to run the script (the only one today).
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event"> <System> <Provider Name=".NET Runtime" /> <EventID Qualifiers="0">1022</EventID> <Version>0</Version> <Level>2</Level> <Task>0</Task> <Opcode>0</Opcode> <Keywords>0x80000000000000</Keywords> <TimeCreated SystemTime="2025-10-28T17:28:07.7439617Z" /> <EventRecordID>26494</EventRecordID> <Correlation /> <Execution ProcessID="42560" ThreadID="0" /> <Channel>Application</Channel> <Computer>...</Computer> <Security /> </System> <EventData> <Data>.NET Runtime version 4.0.30319.0 - There was a failure initializing profiling API attach infrastructure. This process will not allow a profiler to attach. HRESULT: 0x80004005. Process ID (decimal): 42560. Message ID: [0x2509].</Data> </EventData> </Event>I guess it might be related to a background scanner preventing it to run? I am on Win11 and do have the dev drive enabled. I thought that would have prevented it from being scanned.
-
I don't think this is it: It mentions .NET Runtime version 4.0.30319.0. And LINQPad uses the profiling API only on macOS.
Is there anything else?
-
I haven't seen it happen in a while, but I'll update if it happens again.
-
Hi,
thanks for this wonderful tool, can it be a thing that you implement a "move line" functionality (Alt+Up key / Alt+Down key). I'm using it a lot in VS and code but every time I used LINQPad, I miss it a lot
In the same way, I'm using RoslynPad (as well as Roslynator in VS) which allows quick actions (among others):
- Introduce local variable
- Inline variable
- Convert to interpolated string
- Convert to verbatim strings.
For now, my workflow is as follow, I work on my script in LINQPad, copy it to RoslynPad to get roslyn analysers, fix according to the proposals, then copy back to LP.
Regards
-
I forgot a small one,
can you add a formatting option to align the "else if" line with the previous closing brace ?
Expected:
var value = 1; if (value == 1) { } else if (value == 2) { // <-- here }LINQPad:
var value = 1; if (value == 1) { } else if (value == 2) { // <-- here } -
Move line up/down is supported in LINQPad (with different shortcuts). Use the omnisearch (Ctrl+Q) to see the shortcuts for any command. You can also customize the shortcuts by clicking the link provided.
-
Thanks a lot, did not see it before> @JoeAlbahari said:
Move line up/down is supported in LINQPad (with different shortcuts). Use the omnisearch (Ctrl+Q) to see the shortcuts for any command. You can also customize the shortcuts by clicking the link provided.
Thanks a lot, did I not see it before, 10x better now.
Any comments on the other points ?
-
Regarding the option to place an else/catch/finally on the same line, good spot. Somehow this didn't make it from LINQPad 8 to 9 in the code formatting settings page. This should be easy to fix.
Unlocking all Roslyn code fixes & refactorings has been on the LINQPad 9 TODO list for a while. The sticking point is resolving an issue with indentation. I'll see if this can be done soon.

