@hansjoerg - are you using LINQ to SQL or EF Core? If you're not using LINQ-to-SQL, can you try with using this driver, with and without the option "Use external browser".
Thank you for the macOS version! It works really great. I noticed just one issue - when switching between applications, LINQPad, which was previously maximized (filling the screen but not in full-screen mode, just maximized without covering the Dock), restores to a smaller window size after switching back, and is no longer "maximized".
By the way, is there any chance PowerShell support might be added in the future?
It's worth noting that PowerShell doesn't really have a proper editor. PowerShell ISE is only available for the old "Windows PowerShell" and doesn't support the newer PowerShell 7+ versions. For the new PowerShell, there are plugins for VSCode and Rider, but for testing scripts, I’d much prefer to use LINQPad – if it had IntelliSense support, it would be an absolute game-changer.
As for the window maximization issue - I just tested it on another computer and the same problem occurs! However, I discovered that the way the window is maximized matters. The problem happens when the window is maximized by double-clicking. However, if the window is "pushed" to the top edge of the screen so that it gets maximized, then the issue does not occur.
I switch either by clicking the icon in the Dock, using Command-Tab, or even by clicking the application's window in Stage Manager. In every case, the effect is exactly the same.
In my opinion, the issue is not related to the system version, but to the way the window is maximized (as I mentioned in the previous post and showed in the videos – it depends on how the window is maximized. The problem only occurs only when maximizing via double-click).
I think the root cause should be looked for in Avalonia UI, but if you haven't been able to reproduce it yet ("double-click method" works on your end), then it's probably due to the fact that I'm using Stage Manager or have some system settings that affect this behavior.
Please let me know if you managed to reproduce the issue. If not, I’ll start digging into my system settings.
Love LINQPad on the Mac! My dream come true! One question I couldn't find the answer for, is where to install our custom extensions. I created an extension for common functions I wanted in every linq query, and it was an easy thing in Windows, I'm not sure where to install it for the Mac.
[UPDATED]
Nevermind, found it under File | My Extensions
I am trying to get my LINQPad driver (Aerospike) to run on LINQPad 8.0 on macOS but during the "Add Connection" I am getting an exception. The "LINQPad exception" dialog very briefly is displayed and closes. I think I am receiving a null reference exception...
If someone can suggest on how to get this exception logged (hopefully with a full stack) or a way to keep the dialog open for me to read the complete message. Also, any hints or tips on debugging this without having to install Avalonia XPF...
Also, you could try adding exception handling to your ShowConnectionDialog method, or use the trick suggested in the documentation, which is to add the following code into a static constructor in your driver class:
I can load the Aerospike driver as an LPX6 file successfully (everything works correctly). When I try to load it via NuGet/Manager, I get the below error:
Warning: No compatible assemblies found in package 'Aerospike.Database.LINQPadDriver'.
LINQPad 8 for macOS is now feature-complete except for charting and the lprun tool
@JoeAlbahari Sorry to harp on this again, but isn't the product missing the (ARM) assembly output too? I presume it's fairly niche and all that, but still.
Reading through these posts, it looks like there won't be an Apple Intel version? Can you confirm if that's true. Might just be the kick in the butt I need to get a new mac.
I just tried downloading LinqPad 8 and 9 for macos, but neither of them is working - I don't get any error message, window or anything, I try to launch it and nothing happens. Is this a known issue? I have a 2024 MBPro with an M4 Pro chip.
I love LinqPad on windows, looking forward to be able to use my license on my Mac aswell!
I ran the system console while trying to launc LinqPad, and something is definitely happening, just not sure why it is not starting up.
I attach the logs of the startup, it does not tell me much, but maybe it says something to you.
If you run /Applications/LINQPad 9 beta.app/Contents/MacOS/LINQPad9 from Terminal, is any message written to the terminal? And is anything written to ~/Library/Application Support/LINQPad/Logs.LINQPad9?
Well now I feel silly. I ran it from the terminal, and sure enough - that listed only dotnet 6 and 7 as installed 🤦♂️
It seems there is something I don't understand about dotnet on this machine, since I am using dotnet 8 and 9 in Rider - building and running projects daily, but from my terminal I can only see dotnet 6 and 7 when listing sdks 🤔
It starts up now, I will start enjoying LinqPad on Macos!
No problem. The long-term plan is to port the custom CLR host that I wrote for Windows that checks whether the right framework is installed and bootstraps its installation if necessary.
Comments
@hansjoerg - are you using LINQ to SQL or EF Core? If you're not using LINQ-to-SQL, can you try with using this driver, with and without the option "Use external browser".
Thank you for the macOS version! It works really great. I noticed just one issue - when switching between applications, LINQPad, which was previously maximized (filling the screen but not in full-screen mode, just maximized without covering the Dock), restores to a smaller window size after switching back, and is no longer "maximized".
By the way, is there any chance PowerShell support might be added in the future?
That's very odd behavior. Can you repro this on another machine?
Can anyone else repro this?
What do you have in mind regarding PowerShell?
Regarding PowerShell - I literally meant exactly this:
https://linqpad.uservoice.com/forums/18302-linqpad-feature-suggestions/suggestions/1412813-add-powershell-scripts-support-with-intellisense
It's worth noting that PowerShell doesn't really have a proper editor. PowerShell ISE is only available for the old "Windows PowerShell" and doesn't support the newer PowerShell 7+ versions. For the new PowerShell, there are plugins for VSCode and Rider, but for testing scripts, I’d much prefer to use LINQPad – if it had IntelliSense support, it would be an absolute game-changer.
As for the window maximization issue - I just tested it on another computer and the same problem occurs! However, I discovered that the way the window is maximized matters. The problem happens when the window is maximized by double-clicking. However, if the window is "pushed" to the top edge of the screen so that it gets maximized, then the issue does not occur.
Below, I’ve uploaded two videos that clearly show how it works:
https://drive.proton.me/urls/D6J4WQEHE0#ly6EfMa6Pumk
How are you switching between applications?
I switch either by clicking the icon in the Dock, using Command-Tab, or even by clicking the application's window in Stage Manager. In every case, the effect is exactly the same.
Are you able to reproduce this on another machine?
As I mentioned earlier, I tested it on another machine, and in the previous post I also included a link with videos showing exactly what happens
Sorry. What's your macOS version?
Sequoia 15.4.1 in both cases.
In my opinion, the issue is not related to the system version, but to the way the window is maximized (as I mentioned in the previous post and showed in the videos – it depends on how the window is maximized. The problem only occurs only when maximizing via double-click).
I think the root cause should be looked for in Avalonia UI, but if you haven't been able to reproduce it yet ("double-click method" works on your end), then it's probably due to the fact that I'm using Stage Manager or have some system settings that affect this behavior.
Please let me know if you managed to reproduce the issue. If not, I’ll start digging into my system settings.
Thank you!
This is it. It's an Avalonia issue. I'll raise it with the XPF team to see whether there's an easy fix.
Love LINQPad on the Mac! My dream come true! One question I couldn't find the answer for, is where to install our custom extensions. I created an extension for common functions I wanted in every linq query, and it was an easy thing in Windows, I'm not sure where to install it for the Mac.
[UPDATED]
Nevermind, found it under
File | My Extensions
I am trying to get my LINQPad driver (Aerospike) to run on LINQPad 8.0 on macOS but during the "Add Connection" I am getting an exception. The "LINQPad exception" dialog very briefly is displayed and closes. I think I am receiving a null reference exception...
If someone can suggest on how to get this exception logged (hopefully with a full stack) or a way to keep the dialog open for me to read the complete message. Also, any hints or tips on debugging this without having to install Avalonia XPF...
Check %localappdata%\LINQPad\Logs.LINQPad8
Also, you could try adding exception handling to your ShowConnectionDialog method, or use the trick suggested in the documentation, which is to add the following code into a static constructor in your driver class:
I can load the Aerospike driver as an LPX6 file successfully (everything works correctly). When I try to load it via NuGet/Manager, I get the below error:
Warning: No compatible assemblies found in package 'Aerospike.Database.LINQPadDriver'.
There is nothing in the LINQPad log file.
Any hints on the problem?
BTW, it does work correctly under windows...
@JoeAlbahari Sorry to harp on this again, but isn't the product missing the (ARM) assembly output too? I presume it's fairly niche and all that, but still.
Do you still plan to release this? Thanks!
Work on native disassembly was started but then suspended. It relies on ClrMD and right now this this library doesn't appear to be stable under macOS.
Reading through these posts, it looks like there won't be an Apple Intel version? Can you confirm if that's true. Might just be the kick in the butt I need to get a new mac.
An Intel build is unlikely: implementing this is more complex than in Windows, and there are not enough users to justify the initial and ongoing work.
I just tried downloading LinqPad 8 and 9 for macos, but neither of them is working - I don't get any error message, window or anything, I try to launch it and nothing happens. Is this a known issue? I have a 2024 MBPro with an M4 Pro chip.
I love LinqPad on windows, looking forward to be able to use my license on my Mac aswell!
I ran the system console while trying to launc LinqPad, and something is definitely happening, just not sure why it is not starting up.
I attach the logs of the startup, it does not tell me much, but maybe it says something to you.
I take it you have installed .NET 8 or .NET 9?
Yes they are both installed
If you run
/Applications/LINQPad 9 beta.app/Contents/MacOS/LINQPad9
from Terminal, is any message written to the terminal? And is anything written to~/Library/Application Support/LINQPad/Logs.LINQPad9
?Well now I feel silly. I ran it from the terminal, and sure enough - that listed only dotnet 6 and 7 as installed 🤦♂️
It seems there is something I don't understand about dotnet on this machine, since I am using dotnet 8 and 9 in Rider - building and running projects daily, but from my terminal I can only see dotnet 6 and 7 when listing sdks 🤔
It starts up now, I will start enjoying LinqPad on Macos!
Thanks for the great support Joe 🙏
No problem. The long-term plan is to port the custom CLR host that I wrote for Windows that checks whether the right framework is installed and bootstraps its installation if necessary.