@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:
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: