Skip to content
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

Request initialize failed with message - scheme is missing #602

Open
clarkbreyman opened this issue Oct 28, 2024 · 21 comments
Open

Request initialize failed with message - scheme is missing #602

clarkbreyman opened this issue Oct 28, 2024 · 21 comments

Comments

@clarkbreyman
Copy link

clarkbreyman commented Oct 28, 2024

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

@clarkbreyman
Copy link
Author

Granting full disk access to VSCode did not resolve.

@sharpjs
Copy link

sharpjs commented Oct 30, 2024

Same issue here.
Image

Interestingly, the Output panel has two entries for Azure Pipelines Language.
Image

@HunterAhlquist
Copy link

Same problem here for me too.
Windows 10

@winstliu winstliu added bug Something isn't working and removed triage labels Nov 1, 2024
@winstliu
Copy link
Member

winstliu commented Nov 1, 2024

Other than the message popping up, what else happens? Do you still have IntelliSense/auto-completion?

@HunterAhlquist
Copy link

Other than the message popping up, what else happens? Do you still have IntelliSense/auto-completion?

No, I do not.

@vikukush
Copy link

Same issue here

@sharpjs
Copy link

sharpjs commented Nov 23, 2024

Other than the message popping up, what else happens? Do you still have IntelliSense/auto-completion?

No IntelliSense. The only completions offered are words that already exist in the file.

@winstliu
Copy link
Member

winstliu commented Dec 4, 2024

For those who are seeing this, what OS are you using?

@vikukush
Copy link

vikukush commented Dec 4, 2024

For those who are seeing this, what OS are you using?

Windows 11 [Version 10.0.26100.2314]

@sharpjs
Copy link

sharpjs commented Dec 5, 2024

For those who are seeing this, what OS are you using?

Windows 11 Pro for Workstations, version 24H2, build 26100.2314.

@winstliu
Copy link
Member

winstliu commented Dec 6, 2024

And can I also get the output from the Azure Pipelines channel? (Ctrl+Shift+U, switch to Azure Pipelines)

@sharpjs
Copy link

sharpjs commented Dec 6, 2024

With this minimal pipeline:

steps:
- pwsh: Write-Host "Hello, world."

With all extensions disabled except:

  • Azure Pipelines 1.247.2
  • Azure Resources 0.9.9

I get the error every time VS Code launches.
Image

Note regarding my Azure tenants and subscriptions

Not sure if this matters, but just in case. Entra tenants:

  • Main corporate tenant.

    • I'm some sort of contributor here.
    • VS Code, Teams, Az module, Azure CLI, etc. are signed in to this tenant.
    • WAM is signed in to this tenant.
    • Computer is not domain-joined.
    • Has Azure subscriptions, but I don't touch them.
    • Signing in does MFA dance with Okta.
  • My business unit's test/dev tenant.

    • Trusts the main corporate tenant.
    • My corporate identity is an owner here.
    • Has one subscription. Azure DevOps and I manage resources here.
    • Touching this does separate MFA dance with Entra via its 'security defaults'.
  • My business unit's production tenant.

    • Trusts the main corporate tenant.
    • My corporate identity is an owner here.
    • Has two subscriptions. Azure DevOps and I manage resources here.
    • Touching this does separate MFA dance with Entra via its 'security defaults'.
VS Code About Dialog
Version: 1.95.3 (system setup)
Commit: f1a4fb101478ce6ec82fe9627c43efbf9e98c813
Date: 2024-11-13T14:50:04.152Z
Electron: 32.2.1
ElectronBuildId: 10427718
Chromium: 128.0.6613.186
Node.js: 20.18.0
V8: 12.8.374.38-electron.0
OS: Windows_NT x64 10.0.26100
Output Channels List

Image

❌ Channel: Azure Pipelines — no output

❌ Channel: Azure Pipelines Language (the first) — no output

❌ Channel: Azure Pipelines Language (the second) — no output

❌ Channel: Azure Resource Groups — no output

Channel: Git
2024-12-06 10:05:45.874 [info] [main] Log level: Info
2024-12-06 10:05:45.874 [info] [main] Validating found git in: "C:\Program Files\Git\cmd\git.exe"
2024-12-06 10:05:45.885 [info] [main] Using git "2.47.1.windows.1" from "C:\Program Files\Git\cmd\git.exe"
2024-12-06 10:05:45.885 [info] [Model][doInitialScan] Initial repository scan started
2024-12-06 10:05:45.927 [info] > git rev-parse --show-toplevel [32ms]
2024-12-06 10:05:45.929 [info] [Model][doInitialScan] Initial repository scan completed - repositories (0), closed repositories (0), parent repositories (1), unsafe repositories (0)
Channel: GitHub
2024-12-06 10:05:45.895 [info] Log level: Info
Channel: Cloud Changes
2024-12-06 10:05:45.903 [info] Prompting to enable cloud changes, has application previously launched from Continue On flow: false
Channel: Extension Host
2024-12-06 10:05:45.513 [info] Extension host with pid 83360 started
2024-12-06 10:05:45.544 [info] ExtensionService#_doActivateExtension vscode.emmet, startup: false, activationEvent: 'onLanguage'
2024-12-06 10:05:45.555 [info] ExtensionService#_doActivateExtension ms-azure-devops.azure-pipelines, startup: false, activationEvent: 'onLanguage:azure-pipelines'
2024-12-06 10:05:45.749 [error] Activating extension ms-azure-devops.azure-pipelines failed due to an error:
2024-12-06 10:05:45.749 [error] Error: Request initialize failed with message: [UriError]: Scheme is missing: {scheme: "", authority: "", path: "null", query: "", fragment: ""}
	at c:\Users\Jeff\.vscode\extensions\ms-azure-devops.azure-pipelines-1.247.2\dist\extension.js:1:1249943
	at c:\Users\Jeff\.vscode\extensions\ms-azure-devops.azure-pipelines-1.247.2\dist\extension.js:1:1250237
	at Immediate.<anonymous> (c:\Users\Jeff\.vscode\extensions\ms-azure-devops.azure-pipelines-1.247.2\dist\extension.js:1:1250602)
	at process.processImmediate (node:internal/timers:483:21)
2024-12-06 10:05:45.757 [info] ExtensionService#_doActivateExtension vscode.git-base, startup: true, activationEvent: '*', root cause: vscode.git
2024-12-06 10:05:45.787 [info] ExtensionService#_doActivateExtension vscode.git, startup: true, activationEvent: '*'
2024-12-06 10:05:45.826 [info] ExtensionService#_doActivateExtension vscode.github, startup: true, activationEvent: '*'
2024-12-06 10:05:45.887 [info] Eager extensions activated
2024-12-06 10:05:45.896 [info] ExtensionService#_doActivateExtension vscode.debug-auto-launch, startup: false, activationEvent: 'onStartupFinished'
2024-12-06 10:05:45.898 [info] ExtensionService#_doActivateExtension vscode.merge-conflict, startup: false, activationEvent: 'onStartupFinished'
2024-12-06 10:15:53.441 [info] ExtensionService#_doActivateExtension ms-azuretools.vscode-azureresourcegroups, startup: false, activationEvent: 'onView:azureActivityLog'
Channel: Main
2024-12-06 10:05:44.835 [info] update#setState idle
2024-12-06 10:06:14.803 [info] update#setState checking for updates
2024-12-06 10:06:14.825 [info] update#setState idle

❌ Channel: Notebook — no output

❌ Channel: Pty Host (the first) — no output

Channel: Remote Tunnel Service
2024-12-06 10:05:46.065 [info] No other tunnel running
Channel: Settings Sync
2024-12-06 10:05:45.424 [info] Using settings sync service https://vscode-sync.trafficmanager.net/
2024-12-06 10:05:45.424 [info] Auto Sync is disabled.

❌ Channel: Shared — no output

❌ Channel: Tasks (the first) — no output

Dev Tools Console

Image

@winstliu
Copy link
Member

winstliu commented Dec 11, 2024

1.249.0 was released last night. I'm curious if any of you are still seeing this error - mostly because we didn't introduce any changes in this area for the previous 1.247.1 release, so I'm wondering if it'll just "fix itself" for this release :D.

If not, I'll keep investigating (specifically, the double "Azure Pipelines Language Server" output looks suspicious).

@sharpjs
Copy link

sharpjs commented Dec 11, 2024

After the update to extension 1.249.0, the problem persists. I believe I've been experiencing this error for quite some time — in fact, ever since #583 was resolved. That is at least consistent with there having been no work in that area for the current release.

The error message now is slightly different:

Image

Initially, there was no duplicate Azure Pipelines Language output channel after updating the extension.

Image

However, I was able to recreate the duplicate channel:

  • Press CTRL-SHIFT-P.
  • Choose "Developer: Restart Extensions Host".
  • Receive "A request has failed. See the output for more information. Source: Azure Pipelines" error.
  • Click "Go to output" button.
  • Check whether the channel is duplicated.
  • Repeat process until duplicated. Most times the result is one channel. Occasionally (say, after 2 to 10 tries) there are duplicate channels. Smells like a race condition. It is suspicious, but it might be unrelated to the issue at hand.

Image

@sharpjs
Copy link

sharpjs commented Dec 11, 2024

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.

@winstliu
Copy link
Member

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!

@winstliu
Copy link
Member

winstliu commented Dec 13, 2024

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: microsoft/azure-pipelines-language-server@1e8432b#diff-6ca8c5115f7d741691ab47c62cd9f0dedf4a4dd5cd137a264427c58da9ff9e51R90

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

@sharpjs
Copy link

sharpjs commented Dec 13, 2024

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

@sharpjs
Copy link

sharpjs commented Dec 13, 2024

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

At least in my case, I might not have edited any pipelines at that time. More generally, I suspect a lot of us users had the initial reaction of hoping the problem self-resolves or gets reported by someone else.

@winstliu
Copy link
Member

winstliu commented Dec 13, 2024

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 :P.

@sharpjs
Copy link

sharpjs commented Dec 13, 2024

Thanks for your attention on this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants