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

Multiple PowerShell Editor Services in Output #2909

Open
PrzemyslawKlys opened this issue Aug 23, 2020 · 9 comments
Open

Multiple PowerShell Editor Services in Output #2909

PrzemyslawKlys opened this issue Aug 23, 2020 · 9 comments

Comments

@PrzemyslawKlys
Copy link
Contributor

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
@ghost ghost added the Needs: Triage Maintainer attention needed! label Aug 23, 2020
@SydneyhSmith
Copy link
Collaborator

Thanks @PrzemyslawKlys two other things that might be useful to help debug this:

  • Open the command pallet and find "Developer: Toggle Developer Tools" and then copy the output from the "console" tab
  • Choose the Output pane and then use the drop down to select "Log (Extension Host)" and copy the output

@SydneyhSmith SydneyhSmith added Needs-Repro-Info and removed Needs: Triage Maintainer attention needed! labels Aug 25, 2020
@PrzemyslawKlys
Copy link
Contributor Author

Closing until I replicate it. Unfortunately it happened only once.

@ghost ghost added the Needs: Maintainer Attention Maintainer attention needed! label Sep 2, 2020
@TylerLeonhardt TylerLeonhardt removed the Needs: Maintainer Attention Maintainer attention needed! label Sep 2, 2020
@PrzemyslawKlys
Copy link
Contributor Author

PrzemyslawKlys commented Oct 1, 2020

image

consoletab.txt

Found it again, this time two sessions. More logs at: #2982

@PrzemyslawKlys PrzemyslawKlys reopened this Oct 1, 2020
@ghost ghost added the Needs: Maintainer Attention Maintainer attention needed! label Oct 1, 2020
@SydneyhSmith
Copy link
Collaborator

Thanks again @PrzemyslawKlys we will give this another look...outside of the cosmetic issue of having multiple EditorServices I am curious how this impacts the functionality of the extension (we are trying to understand the severity of the issue)?

@SydneyhSmith SydneyhSmith removed the Needs: Maintainer Attention Maintainer attention needed! label Oct 1, 2020
@PrzemyslawKlys
Copy link
Contributor Author

Zero impact. Just thinking it may have unexpected consequences. I am not able to tell whether it matters or not.

@ghost ghost added the Needs: Maintainer Attention Maintainer attention needed! label Oct 1, 2020
@corbob
Copy link
Contributor

corbob commented Oct 1, 2020

Is it possible that the PowerShell extension updated after it started and so you restarted it possibly resulting in a second entry?

@PrzemyslawKlys
Copy link
Contributor Author

@corbob no. I've not updated for a while. But if you take a look at logs you will see added instances have only this in their logs:

[Error - 22:06:25] Request codeLens/resolve failed.
Error: Connection got disposed.
	at Object.dispose (c:\Users\przemyslaw.klys\.vscode\extensions\ms-vscode.powershell-preview-2020.9.0\node_modules\vscode-jsonrpc\lib\common\connection.js:1009:27)
	at Object.dispose (c:\Users\przemyslaw.klys\.vscode\extensions\ms-vscode.powershell-preview-2020.9.0\node_modules\vscode-languageclient\lib\common\client.js:71:35)
	at c:\Users\przemyslaw.klys\.vscode\extensions\ms-vscode.powershell-preview-2020.9.0\node_modules\vscode-languageclient\lib\common\client.js:2211:28

So most likely some error that just pushes second entry or more entries (I once had 9 of them). I restart PowerShell instance a lot because of IntelliSense dying on me every X minutes so most likely related to that in some way. I would say I restart 10+ times over short amount of time, but it doesn't happen on every restart.

@SydneyhSmith SydneyhSmith added Area-Extension Terminal Issue-Bug A bug to squash. and removed Needs: Maintainer Attention Maintainer attention needed! labels Oct 6, 2020
@ghost
Copy link

ghost commented Aug 19, 2021

This issue was closed automatically as repro info was indicated as needed, but there has been no activity in over a week. Please feel free to reopen with any available information!

@ghost ghost closed this as completed Aug 19, 2021
@andyleejordan
Copy link
Member

I've actually seen this issue and it seems to happen in my experience whenever the PowerShell session is restarted. Re-opening because since I've seen it then I can repro it.

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