Open IntegerMan opened 6 months ago
Also, @colombod and @jonsequitur I thought you would enjoy my temporary password for my short-lived demo database, showin in the connection string above.
@corivera can you help us out with this, is there an update to the tool we should migrate to?
I've tried looking at a few random versions of this package on NuGet and specifying those versions during the NuGet package and none of them seem to resolve successfully.
Is there a workaround I could try temporarily at least to get this working enough to get back SQL / KQL results for a brief demonstration?
The issue seems to be coming from the sql tool package closing the connection. @corivera or @Charles-Gagnon might be able to help
@IntegerMan We start up a backend process that handles the server connections, which is what is failing to start here. If you start that process by itself, do you see any errors? You can run "/home/matteland/.dotnet/tools/MicrosoftSqlToolsServiceLayer" from a terminal window. If it starts successfully then there won't be any output, and you can cancel it with Ctrl+C.
Most likely the issue is that .NET 7 isn't installed, since that's what the backend process is built against. The KQL kernel uses a similar backend process, so the fix for that will probably be the same.
As .NET7 is not LTS when should we see the tool dependency upgraded to .NET8?
I'll look into doing a version bump for that.
I'll look into doing a version bump for that.
That would be great, thank you @corivera
@corivera that's the confirmed issue. Running the service manually gave me the .NET 7 not installed message (as it should since I had a devil of a time getting .NET 8 installed awhile back and uninstalled everything else). Using the install script and installing .NET 7.0.407 resolved the issue both at running the service and in Polyglot Notebooks executing the #!connect
command. Also, nice to meet you. I'm writing a book on these tools and this greatly helps me keep to my schedule.
@colombod, thanks for the assist as always. I do think this issue highlights some of my concerns with learning curve for people getting into the tooling, though. It's not the first time I've seen versions get incompatible around major releases in gaps between different groups and the like and the way these things fail is not always evident to the user in a way they can easily resolve. Additionally, the version of .NET listed as required for Polyglots is not centrally documented on the GitHub repo and the version listed on the marketplace extension is wrong (See #3462 from a few weeks ago). These things are barriers to folks getting started with the tooling and I'd love to see a more centralized and updated list of requirements or supported library versions for common requirements and more visible output for some of the failures like this in VS Code.
That being said, you all are amazing and these capabilities are fantastic and getting better; I just want to make sure they're accessible to everyone - particularly those trying things out for the first time - and that dependency issues are caught and flagged as new versions come out of major components.
I'm good if you leave this issue open until the version bump occurs, I'm also good if you want to close this issue now that we have a workaround (Install .NET 7 and .NET 8 for full support). It's your call, but thank you all again.
same issue here. anyone?
@corivera is working on the real fix. At the present the sql and kql tool is still targeting .NET 7.0 and that would require users using those extensions to have both .NET 7 and .NET 8 sdk installed. This should address your issues too
Thanks, @colombod , it worked after I install .NET 7.0 SDK...
The main fix is underway here: https://github.com/microsoft/sqltoolsservice/pull/2346
@corivera is a new package published?
Describe the bug
Last night I encountered an issue with KQL that I believed was due to me using the tooling incorrectly, however I'm able to replicate it using SQL today.
I'm attempting to connect to an Azure SQL database from VS Code using .NET Interactive and the connect magic command as described at https://devblogs.microsoft.com/dotnet/net-interactive-with-sql-net-notebooks-in-visual-studio-code/ and as I've used before successfully.
My IP address is added to the allow list for my Azure SQL resource and connecting via connection string in Azure Data Studio works fine.
Attempting the
#!connect
call results in the following exception and call stack:I do not believe I'm using the commands inappropriately and know this type of connection functioned properly.
The KQL failure exhibits a nearly identical stack trace and can be found in my KQL question issue
Please complete the following:
.NET Interactive version 1.0.512901+07977b2f577c0c9a2bc47fc2ca1df2f59a14c825
Microsoft.DotNet.Interactive.SqlServer version 1.0.0-beta.24129.1
Screenshots
Relevant code for the NuGet Dependency:
Relevant code for the connect call:
This bug is a blocker for me authoring some learning content on .NET Interactive.