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

[Bug] Azure Pipelines Language server crashed 5 times in the last 3 minutes #544

Closed
wsmelton opened this issue Sep 2, 2023 · 2 comments
Closed
Labels
Area: VsCodeExtension bug Something isn't working

Comments

@wsmelton
Copy link

wsmelton commented Sep 2, 2023

Not sure if this project is still active since no release has occurred in a long while...

This occurs opening any pipeline file in a workspace in VS Code Insiders. No errors showing in the file and the pipelines are all in use/running in Azure DevOps.

[Error - 3:03:37 PM] Request textDocument/documentSymbol failed.
  Message: Request textDocument/documentSymbol failed with message: Cannot read properties of undefined (reading 'startsWith')
  Code: -32603 
/Users/smelton/.vscode-insiders/extensions/ms-azure-devops.azure-pipelines-1.208.0/dist/server.js:1876
        if (property.key.value.startsWith("${{") && property.key.value.endsWith("}}")) {
                               ^

TypeError: Cannot read properties of undefined (reading 'startsWith')
    at addPropertiesToObjectNode (/Users/smelton/.vscode-insiders/extensions/ms-azure-devops.azure-pipelines-1.208.0/dist/server.js:1876:32)
    at recursivelyBuildAst (/Users/smelton/.vscode-insiders/extensions/ms-azure-devops.azure-pipelines-1.208.0/dist/server.js:1794:13)
    at recursivelyBuildAst (/Users/smelton/.vscode-insiders/extensions/ms-azure-devops.azure-pipelines-1.208.0/dist/server.js:1806:48)
    at addPropertiesToObjectNode (/Users/smelton/.vscode-insiders/extensions/ms-azure-devops.azure-pipelines-1.208.0/dist/server.js:1883:30)
    at recursivelyBuildAst (/Users/smelton/.vscode-insiders/extensions/ms-azure-devops.azure-pipelines-1.208.0/dist/server.js:1794:13)
    at recursivelyBuildAst (/Users/smelton/.vscode-insiders/extensions/ms-azure-devops.azure-pipelines-1.208.0/dist/server.js:1806:48)
    at addPropertiesToObjectNode (/Users/smelton/.vscode-insiders/extensions/ms-azure-devops.azure-pipelines-1.208.0/dist/server.js:1883:30)
    at recursivelyBuildAst (/Users/smelton/.vscode-insiders/extensions/ms-azure-devops.azure-pipelines-1.208.0/dist/server.js:1794:13)
    at addItemsToArrayNode (/Users/smelton/.vscode-insiders/extensions/ms-azure-devops.azure-pipelines-1.208.0/dist/server.js:1929:28)
    at recursivelyBuildAst (/Users/smelton/.vscode-insiders/extensions/ms-azure-devops.azure-pipelines-1.208.0/dist/server.js:1814:13)

Node.js v18.15.0
[Info  - 3:03:38 PM] Connection to server got closed. Server will restart.
[Error - 3:03:38 PM] Request textDocument/documentSymbol failed.
  Message: Request textDocument/documentSymbol failed with message: Cannot read properties of undefined (reading 'startsWith')
  Code: -32603 
/Users/smelton/.vscode-insiders/extensions/ms-azure-devops.azure-pipelines-1.208.0/dist/server.js:1876
        if (property.key.value.startsWith("${{") && property.key.value.endsWith("}}")) {
                               ^

TypeError: Cannot read properties of undefined (reading 'startsWith')
    at addPropertiesToObjectNode (/Users/smelton/.vscode-insiders/extensions/ms-azure-devops.azure-pipelines-1.208.0/dist/server.js:1876:32)
    at recursivelyBuildAst (/Users/smelton/.vscode-insiders/extensions/ms-azure-devops.azure-pipelines-1.208.0/dist/server.js:1794:13)
    at recursivelyBuildAst (/Users/smelton/.vscode-insiders/extensions/ms-azure-devops.azure-pipelines-1.208.0/dist/server.js:1806:48)
    at addPropertiesToObjectNode (/Users/smelton/.vscode-insiders/extensions/ms-azure-devops.azure-pipelines-1.208.0/dist/server.js:1883:30)
    at recursivelyBuildAst (/Users/smelton/.vscode-insiders/extensions/ms-azure-devops.azure-pipelines-1.208.0/dist/server.js:1794:13)
    at recursivelyBuildAst (/Users/smelton/.vscode-insiders/extensions/ms-azure-devops.azure-pipelines-1.208.0/dist/server.js:1806:48)
    at addPropertiesToObjectNode (/Users/smelton/.vscode-insiders/extensions/ms-azure-devops.azure-pipelines-1.208.0/dist/server.js:1883:30)
    at recursivelyBuildAst (/Users/smelton/.vscode-insiders/extensions/ms-azure-devops.azure-pipelines-1.208.0/dist/server.js:1794:13)
    at addItemsToArrayNode (/Users/smelton/.vscode-insiders/extensions/ms-azure-devops.azure-pipelines-1.208.0/dist/server.js:1929:28)
    at recursivelyBuildAst (/Users/smelton/.vscode-insiders/extensions/ms-azure-devops.azure-pipelines-1.208.0/dist/server.js:1814:13)

Node.js v18.15.0
[Info  - 3:03:38 PM] Connection to server got closed. Server will restart.
[Error - 3:03:38 PM] Request textDocument/documentSymbol failed.
  Message: Request textDocument/documentSymbol failed with message: Cannot read properties of undefined (reading 'startsWith')
  Code: -32603 
/Users/smelton/.vscode-insiders/extensions/ms-azure-devops.azure-pipelines-1.208.0/dist/server.js:1876
        if (property.key.value.startsWith("${{") && property.key.value.endsWith("}}")) {
                               ^

TypeError: Cannot read properties of undefined (reading 'startsWith')
    at addPropertiesToObjectNode (/Users/smelton/.vscode-insiders/extensions/ms-azure-devops.azure-pipelines-1.208.0/dist/server.js:1876:32)
    at recursivelyBuildAst (/Users/smelton/.vscode-insiders/extensions/ms-azure-devops.azure-pipelines-1.208.0/dist/server.js:1794:13)
    at recursivelyBuildAst (/Users/smelton/.vscode-insiders/extensions/ms-azure-devops.azure-pipelines-1.208.0/dist/server.js:1806:48)
    at addPropertiesToObjectNode (/Users/smelton/.vscode-insiders/extensions/ms-azure-devops.azure-pipelines-1.208.0/dist/server.js:1883:30)
    at recursivelyBuildAst (/Users/smelton/.vscode-insiders/extensions/ms-azure-devops.azure-pipelines-1.208.0/dist/server.js:1794:13)
    at recursivelyBuildAst (/Users/smelton/.vscode-insiders/extensions/ms-azure-devops.azure-pipelines-1.208.0/dist/server.js:1806:48)
    at addPropertiesToObjectNode (/Users/smelton/.vscode-insiders/extensions/ms-azure-devops.azure-pipelines-1.208.0/dist/server.js:1883:30)
    at recursivelyBuildAst (/Users/smelton/.vscode-insiders/extensions/ms-azure-devops.azure-pipelines-1.208.0/dist/server.js:1794:13)
    at addItemsToArrayNode (/Users/smelton/.vscode-insiders/extensions/ms-azure-devops.azure-pipelines-1.208.0/dist/server.js:1929:28)
    at recursivelyBuildAst (/Users/smelton/.vscode-insiders/extensions/ms-azure-devops.azure-pipelines-1.208.0/dist/server.js:1814:13)

Node.js v18.15.0
[Info  - 3:03:38 PM] Connection to server got closed. Server will restart.
[Error - 3:03:38 PM] Request textDocument/documentSymbol failed.
  Message: Request textDocument/documentSymbol failed with message: Cannot read properties of undefined (reading 'startsWith')
  Code: -32603 
/Users/smelton/.vscode-insiders/extensions/ms-azure-devops.azure-pipelines-1.208.0/dist/server.js:1876
        if (property.key.value.startsWith("${{") && property.key.value.endsWith("}}")) {
                               ^

TypeError: Cannot read properties of undefined (reading 'startsWith')
    at addPropertiesToObjectNode (/Users/smelton/.vscode-insiders/extensions/ms-azure-devops.azure-pipelines-1.208.0/dist/server.js:1876:32)
    at recursivelyBuildAst (/Users/smelton/.vscode-insiders/extensions/ms-azure-devops.azure-pipelines-1.208.0/dist/server.js:1794:13)
    at recursivelyBuildAst (/Users/smelton/.vscode-insiders/extensions/ms-azure-devops.azure-pipelines-1.208.0/dist/server.js:1806:48)
    at addPropertiesToObjectNode (/Users/smelton/.vscode-insiders/extensions/ms-azure-devops.azure-pipelines-1.208.0/dist/server.js:1883:30)
    at recursivelyBuildAst (/Users/smelton/.vscode-insiders/extensions/ms-azure-devops.azure-pipelines-1.208.0/dist/server.js:1794:13)
    at recursivelyBuildAst (/Users/smelton/.vscode-insiders/extensions/ms-azure-devops.azure-pipelines-1.208.0/dist/server.js:1806:48)
    at addPropertiesToObjectNode (/Users/smelton/.vscode-insiders/extensions/ms-azure-devops.azure-pipelines-1.208.0/dist/server.js:1883:30)
    at recursivelyBuildAst (/Users/smelton/.vscode-insiders/extensions/ms-azure-devops.azure-pipelines-1.208.0/dist/server.js:1794:13)
    at addItemsToArrayNode (/Users/smelton/.vscode-insiders/extensions/ms-azure-devops.azure-pipelines-1.208.0/dist/server.js:1929:28)
    at recursivelyBuildAst (/Users/smelton/.vscode-insiders/extensions/ms-azure-devops.azure-pipelines-1.208.0/dist/server.js:1814:13)

Node.js v18.15.0
[Info  - 3:03:39 PM] Connection to server got closed. Server will restart.
[Error - 3:03:39 PM] Request textDocument/documentSymbol failed.
  Message: Request textDocument/documentSymbol failed with message: Cannot read properties of undefined (reading 'startsWith')
  Code: -32603 
/Users/smelton/.vscode-insiders/extensions/ms-azure-devops.azure-pipelines-1.208.0/dist/server.js:1876
        if (property.key.value.startsWith("${{") && property.key.value.endsWith("}}")) {
                               ^

TypeError: Cannot read properties of undefined (reading 'startsWith')
    at addPropertiesToObjectNode (/Users/smelton/.vscode-insiders/extensions/ms-azure-devops.azure-pipelines-1.208.0/dist/server.js:1876:32)
    at recursivelyBuildAst (/Users/smelton/.vscode-insiders/extensions/ms-azure-devops.azure-pipelines-1.208.0/dist/server.js:1794:13)
    at recursivelyBuildAst (/Users/smelton/.vscode-insiders/extensions/ms-azure-devops.azure-pipelines-1.208.0/dist/server.js:1806:48)
    at addPropertiesToObjectNode (/Users/smelton/.vscode-insiders/extensions/ms-azure-devops.azure-pipelines-1.208.0/dist/server.js:1883:30)
    at recursivelyBuildAst (/Users/smelton/.vscode-insiders/extensions/ms-azure-devops.azure-pipelines-1.208.0/dist/server.js:1794:13)
    at recursivelyBuildAst (/Users/smelton/.vscode-insiders/extensions/ms-azure-devops.azure-pipelines-1.208.0/dist/server.js:1806:48)
    at addPropertiesToObjectNode (/Users/smelton/.vscode-insiders/extensions/ms-azure-devops.azure-pipelines-1.208.0/dist/server.js:1883:30)
    at recursivelyBuildAst (/Users/smelton/.vscode-insiders/extensions/ms-azure-devops.azure-pipelines-1.208.0/dist/server.js:1794:13)
    at addItemsToArrayNode (/Users/smelton/.vscode-insiders/extensions/ms-azure-devops.azure-pipelines-1.208.0/dist/server.js:1929:28)
    at recursivelyBuildAst (/Users/smelton/.vscode-insiders/extensions/ms-azure-devops.azure-pipelines-1.208.0/dist/server.js:1814:13)

Node.js v18.15.0
[Error - 3:03:39 PM] Connection to server got closed. Server will not be restarted.
@KonstantinTyukalov
Copy link
Contributor

Hi @wsmelton, thanks for reporting. We’ll have a look. As a workaround, could you try switching to basic VSCode temporarily?

@KonstantinTyukalov KonstantinTyukalov added bug Something isn't working and removed triage labels Sep 4, 2023
@winstliu
Copy link
Member

Good news, I believe this should be fixed in 1.228.0 :). Please give it a try and let us know if that's not the case!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: VsCodeExtension bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants