-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dotnet-sdk-6.0 version 6.0.301 on Ubuntu LTS 22.04 breaks the Q# Language Extension in Visual Studio Code #26065
Comments
(Not sure whether this bug should be reported here, or over at the https://github.com/microsoft/qsharp-compiler repo) |
This is a perfectly reasonable place for it, thank you for reporting. We'll triage and get back to you as soon as possible! |
I did some digging and I think this does need to be moved to/reopened at the qsharp-compiler repo. The root of the issue is that the Q# language services bundle a reference to NuGet that isn't compatible with the version of NuGet shipped in the 6.0.301 SDK (in this case it's lower than the SDK version). This is a common problem of tools that use libraries that overlap with the libraries bundled in the SDK. In order to fix this, the Q# language services should:
In the meantime, users should be able to delete the nuget dll from the extension's language server download location. This differs by OS, but on Linuxes I think it's |
I raised a matching issue over on the Q# repo, so I'm going to close this one. Thanks for the report! |
Describe the bug
IntelliSense is no longer working on .qs files in Visual Studio Code version 1.68.1, running on Ubuntu LTS 22.04. For example, all open statements such as "open Microsoft.Quantum.Canon;" have a red squiggly line stating "No namespace with the name "Microsoft.Quantum.Canon" exists."
Version 6.0.301 of the dotnet SDK seemingly breaks the Intellisense portion of the extension "Microsoft Quantum Development Kit for Visual Studio Code v0.24.210930". The output of the Q# Language Extension produces the following:
This did not happen with version 6.0.106.
To Reproduce
Install the dotnet-sdk-6.0 version 6.0.301 on Ubuntu 22.04 LTS.
Install the latest version of VS Code with the QDK extension.
Open any .qs file and wait for the Q# Language Extension to load.
I can reproduce this issue following these steps on a completely fresh install of Ubuntu.
Exceptions (if any)
Further technical details
dotnet --info
:The text was updated successfully, but these errors were encountered: