azure-pipelines-vscode: Request initialize failed with message - scheme is missing

WORKAROUND

If you are experiencing this, try opening a folder first, then open the Azure Pipelines file you want to view.


Experiencing failure on YAML load. I am signed in with my @microsoft account. I have tried uninstalling, quit and restart but that has not helped.

Request initialize failed with message: [UriError]: Scheme is missing: {scheme: "", authority: "", path: "null", query: "", fragment: ""}

Version: 1.94.2 Commit: 384ff7382de624fb94dbaf6da11977bba1ecd427 Date: 2024-10-09T16:08:44.566Z (2 wks ago) Electron: 30.5.1 ElectronBuildId: 10262041 Chromium: 124.0.6367.243 Node.js: 20.16.0 V8: 12.4.254.20-electron.0 OS: Darwin arm64 23.6.0

Azure Pipelines plugin 1.247.2

About this issue

  • Original URL
  • State: open
  • Created 2 years ago
  • Reactions: 3
  • Comments: 21 (7 by maintainers)

Most upvoted comments

Excellent, thanks. Since we have a workaround now, I’ll target a fix for this in January to give some extra time for the current release to bake and to avoid the possibility of something going wrong with a holiday release.

I should also say this exposes a gap in our tests - all of them currently open a folder 😛.

Aha! I have a repro. Do you by any chance have a workspace folder open in VS Code? Or are you trying to open a file directly? (aka, does View: Show Explorer have a tree view, or does it say no folder opened)

I believe this was caused by this change: https://github.com/microsoft/azure-pipelines-language-server/commit/1e8432b22c8a789b43f33b18ec7b3ae9065abba7#diff-6ca8c5115f7d741691ab47c62cd9f0dedf4a4dd5cd137a264427c58da9ff9e51R90

Though I wonder why we didn’t get any reports on 1.237.0 which is when that change was released.

Confirmed! When a workspace folder is open in VS Code, the error does not occur, and the expected IntelliSense appears. When opening the same file directly, the error occurs.

Image

Wow, interesting, okay. I’ll dig deeper into this and see if I can add any logging that will help. Thank you for the detailed analysis!

FWIW, I polled six colleagues at work, and all six were able to reproduce the issue. We reproduced the issue on both Windows and macOS using both company-provided and personal machines.