Skip to content

Right-click paste with specific input results in a traceback #2112

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

Closed
chrisbcarl opened this issue Jan 8, 2021 · 3 comments
Closed

Right-click paste with specific input results in a traceback #2112

chrisbcarl opened this issue Jan 8, 2021 · 3 comments

Comments

@chrisbcarl
Copy link

Priority: p4-very low, non-blocking
Affects: Powershell when launched via VSCode

Versions:

  • winver: Windows Version 1909 (OS Build 18363.1256)
  • code --version: 1.52.1 ea3859d4ba2f3e577a159bc91e3074c5d85c0523 x64
  • $PSVersionTable:
    • PSVersion 5.1.18362.1171
    • PSEdition Desktop
    • PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
    • BuildVersion 10.0.18362.1171
    • CLRVersion 4.0.30319.42000
    • WSManStackVersion 3.0
    • PSRemotingProtocolVersion 2.3
    • SerializationVersion 1.1.0.1
  • ms-vscode.powershell extension: v2020.6.0

To Reproduce:

  • apply vscode global settings.json or maybe this'll work with a new project
  • open network-adapters.psm1 in vscode
  • open an integrated terminal (THIS MUST BE THE powershell VANILLA TERMINAL, not the weird vscode debug version of powershell that opens when the powershell language server load)
    • This does not produce a traceback launching powershell normally from desktop or cmd
  • ctrl+a, right-click in the terminal
  • Should see the traceback

exact upload of file which I selected and right-click pasted into vscode powershell - network-adapters.psm1.txt

visually what happened in editor / shell - visually-what happened

visual output of the results in full text - right-click-copy-of-code-powershell.txt

Start-Transcript Transcript: - 2021-01-08-12-28-21-powershell.log

vscode global user settings.json - global-user-settings.json.txt

project wide .vscode/settings.json - n/a

@ghost ghost added the Needs-Triage 🔍 It's a new issue that core contributor team needs to triage. label Jan 8, 2021
@chrisbcarl
Copy link
Author

might be related to #2074

@chrisbcarl
Copy link
Author

might be related to #1944

@daxian-dbw
Copy link
Member

This issue was already fixed (see #1306). Please upgrade to the 2.1.0 version of PSReadLine from PowerShell Gallery.
See the upgrading section for instructions. Please let us know if you run into the same issue with the latest version.

@ghost ghost removed the Needs-Triage 🔍 It's a new issue that core contributor team needs to triage. label Jan 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants