PowerShell / PowerShell/vscode-powershell

Multiple PowerShell Editor Services in Output

Open
#2,909 9 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Area-Extension Terminal Issue-Bug
Dominant language
TypeScript
Stars
1.9k
Forks
547
PR merge metrics
No merged PRs in 30d

Description

Issue Description

I am experiencing a problem with...

image

The majority of them have:

[Error - 20:35:09] Request textDocument/documentSymbol failed.
Error: Connection got disposed.
	at Object.dispose (c:\Users\przemyslaw.klys\.vscode\extensions\ms-vscode.powershell-preview-2020.7.0\node_modules\vscode-jsonrpc\lib\main.js:904:25)
	at Object.dispose (c:\Users\przemyslaw.klys\.vscode\extensions\ms-vscode.powershell-preview-2020.7.0\node_modules\vscode-languageclient\lib\client.js:74:35)
	at c:\Users\przemyslaw.klys\.vscode\extensions\ms-vscode.powershell-preview-2020.7.0\node_modules\vscode-languageclient\lib\client.js:2208:28
[Error - 20:35:09] Request textDocument/documentSymbol failed.
Error: Connection got disposed.
	at Object.dispose (c:\Users\przemyslaw.klys\.vscode\extensions\ms-vscode.powershell-preview-2020.7.0\node_modules\vscode-jsonrpc\lib\main.js:904:25)
	at Object.dispose (c:\Users\przemyslaw.klys\.vscode\extensions\ms-vscode.powershell-preview-2020.7.0\node_modules\vscode-languageclient\lib\client.js:74:35)
	at c:\Users\przemyslaw.klys\.vscode\extensions\ms-vscode.powershell-preview-2020.7.0\node_modules\vscode-languageclient\lib\client.js:2208:28
[Error - 20:35:09] Request textDocument/codeAction failed.
Error: Connection got disposed.
	at Object.dispose (c:\Users\przemyslaw.klys\.vscode\extensions\ms-vscode.powershell-preview-2020.7.0\node_modules\vscode-jsonrpc\lib\main.js:904:25)
	at Object.dispose (c:\Users\przemyslaw.klys\.vscode\extensions\ms-vscode.powershell-preview-2020.7.0\node_modules\vscode-languageclient\lib\client.js:74:35)
	at c:\Users\przemyslaw.klys\.vscode\extensions\ms-vscode.powershell-preview-2020.7.0\node_modules\vscode-languageclient\lib\client.js:2208:28
[Error - 20:35:09] Request textDocument/codeAction failed.
Error: Connection got disposed.
	at Object.dispose (c:\Users\przemyslaw.klys\.vscode\extensions\ms-vscode.powershell-preview-2020.7.0\node_modules\vscode-jsonrpc\lib\main.js:904:25)
	at Object.dispose (c:\Users\przemyslaw.klys\.vscode\extensions\ms-vscode.powershell-preview-2020.7.0\node_modules\vscode-languageclient\lib\client.js:74:35)
	at c:\Users\przemyslaw.klys\.vscode\extensions\ms-vscode.powershell-preview-2020.7.0\node_modules\vscode-languageclient\lib\client.js:2208:28

Only the last one has data

1598194129-afdfd4de-6452-4c44-a771-59ce3569b53b1598107482495.zip

Attached Logs

Follow the instructions in the README about
capturing and sending logs.

Environment Information

Visual Studio Code

Name Version
Operating System Windows_NT x64 10.0.19042
VSCode 1.48.1
PowerShell Extension Version 2020.7.0

PowerShell Information

Name Value
PSVersion 5.1.19041.1
PSEdition Desktop
PSCompatibleVersions 1.0 2.0 3.0 4.0 5.0 5.1.19041.1
BuildVersion 10.0.19041.1
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1

Visual Studio Code Extensions

Visual Studio Code Extensions(Click to Expand)
Extension Author Version
better-toml bungcip 0.3.2
bracket-pair-colorizer-2 CoenraadS 0.2.0
errorlens usernamehw 3.2.0
format-selection-as-html adrianwilczynski 2.3.0
github-linker gimenete 0.2.3
gitlens eamodio 10.2.2
line-endings steditor 1.0.3
markdown-all-in-one yzhang 3.2.0
material-icon-theme PKief 4.2.0
open-in-browser techer 2.0.0
powershell-preview ms-vscode 2020.7.0
project-manager alefragnani 11.2.0
run-in-powershell tobysmith568 1.1.0
vscode-markdownlint DavidAnson 0.36.3
vscode-pull-request-github GitHub 0.19.0
vscode-toggle-quotes BriteSnow 0.3.3
vscode-wakatime WakaTime 4.0.0
vscode-yaml redhat 0.10.0
xml DotJoshJohnson 2.5.1

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Review the attached log archive and docs/troubleshooting.md first, then reproduce the issue with the listed VS Code, PowerShell extension, and Windows versions. Trace the repeated textDocument failures and disposed connections; done means identifying the cause of multiple PowerShell Editor Services outputs and verifying that the errors no longer recur.

Written by the indexing model from the issue text.

Assessment

Tech stack
powershell, typescript, vscode
Domain
devtools, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.