Skip to content
This repository was archived by the owner on Jan 12, 2024. It is now read-only.
This repository was archived by the owner on Jan 12, 2024. It is now read-only.

VS Code extension attempts to launch Windows language server when remoted to Linux #323

Open
@cgranade

Description

@cgranade

Describe the bug

When using remote development from VS Code (win10-x64) to use a VS Online environment hosted on Linux, the Q# extension for VS Code still attempts to launch the Windows version of the language server. Notably the Linux version is still correctly downloaded.

To Reproduce

Create a VS Online environment and connect to it from VS Code running on Windows. Install the QDK extension into the environment.

Console log

console.ts:137 [Extension Host] [qsharp-lsp] Downloading https://msquantumpublic.blob.core.windows.net/qsharp-compiler/LanguageServer-linux-x64-0.10.2001.2831.zip to /tmp/tmp-1088YojjYKUnt6wi.zip.
console.ts:137 [Extension Host] [qsharp-lsp] Done downloading. Got expected SHA256 sum: 2f79448b7ce6195b7a7c9e19efa6efff4574f32c90bfab7c48b9ee96292a8616.
console.ts:137 [Extension Host] [qsharp-lsp] Decompressing /tmp/tmp-1088YojjYKUnt6wi.zip.
console.ts:137 [Extension Host]% Array(322)
console.ts:137 [Extension Host] [qsharp-lsp] Results from setting /home/vsonline/.vscode-remote/data/User/globalStorage/quantum.quantum-devkit-vscode/server/Microsoft.Quantum.QsLanguageServer as executable:stderr:
console.ts:137 [Extension Host] [qsharp-lsp] Done decompressing, language server should be there.
console.ts:137 [Extension Host] [qsharp-lsp] Removing downloaded ZIP.
console.ts:137 [Extension Host] [qsharp-lsp] State stopped -> starting
console.ts:137 [Extension Host] [qsharp-lsp] Started LanguageClient object.
console.ts:137 [Extension Host] [qsharp-lsp] Found port at 8091.
console.ts:137 [Extension Host] [qsharp-lsp] Successfully listening on port 8091, spawning server.
2console.ts:137 [Extension Host] [qsharp-lsp] "C:\Users\Chris\Source\Repos\qsharp-compiler\src\QsCompiler\LanguageServer\bin\Debug\netcoreapp3.0\win10-x64\publish\Microsoft.Quantum.QsLanguageServer.exe" is not executable. Proceed to download Q# language server.
console.ts:137 [Extension Host] [qsharp-lsp] Could not open an unused port: Error: Could not find language server executable to spawn..
console.ts:137 [Extension Host] [qsharp-lsp] State starting -> stopped
notificationsAlerts.ts:40 Couldn't start client Q# Language Extension

System information

  • Client:
    • VS Code version 1.42.1
    • Windows 10 x64
  • Host
    • Visual Studio Online, default settings, using the devcontainer.json provided with microsoft/quantumlibraries.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: editorExtensions for Visual Studio and Visual Studio CodebugSomething isn't workinggood first issueGood for newcomers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions