Skip to content

Oddities with vscode PS (sorry for the poor title) #988

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
swinster opened this issue Aug 9, 2017 · 5 comments
Closed

Oddities with vscode PS (sorry for the poor title) #988

swinster opened this issue Aug 9, 2017 · 5 comments
Labels

Comments

@swinster
Copy link

swinster commented Aug 9, 2017

System Details

  • Operating system name and version: Windows 10 16257
  • VS Code version: 1.14.2
  • PowerShell extension version:1.41
  • Output from $PSVersionTable:
C:\Users\swin.HPELITEBOOK> $PSVersionTable

Name                           Value
----                           -----
PSVersion                      5.1.16257.1000
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.16257.1000
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
Copy / paste the following commands into the PowerShell Integrated Console, and paste the output here:

code -v
1.14.2
cb82febafda0c8c199b9201ad274e25d9a76874e

$pseditor.EditorServicesVersion
(no result)

code --list-extensions --show-versions
C:\Users\swin.HPELITEBOOK> code --list-extensions --show-versions
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]

$PSVersionTable
See above

Issue Description

I am experiencing a problem with odd behaviour in PS Scripts. Initially, the debugger was throwing an error on a line of code that no longer existed, however this seem to have cleared, yet PS scripts no longer recognised matching brackets within the script (not sure if this should be reported to folding?), but I also often find that I need to close an restart VScode as the debugger is doing odd things, such as :

  • it remembers old brake points that have been set and removed
  • you can no long scroll in the integrated PS terminal.
  • Can no longer expand/contract element of code.

Attached Logs

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

@swinster
Copy link
Author

swinster commented Aug 9, 2017

Often, things fall over if I accidentally edit code when the debugger is still running, halted at a break point.

@DarkLite1
Copy link

Seems to be related to #950

@swinster
Copy link
Author

Albeit running 5.1 :(

@daviwil
Copy link
Contributor

daviwil commented Aug 14, 2017

@swinster unfortunately (as @DarkLite1 also figured out), VS Code doesn't lock the file that you run under the debugger so you might end up editing it by accident. I'll take a look at your logs and see whether there's something else causing the crash you saw.

@daviwil daviwil added Area-Debugging Issue-Bug A bug to squash. labels Aug 14, 2017
@daviwil daviwil added this to the August 2017 milestone Aug 14, 2017
@daviwil daviwil modified the milestones: August 2017, Future Oct 26, 2017
@JustinGrote
Copy link
Collaborator

@TylerLeonhardt @SydneyhSmith
This can be closed, the only still-relevant item I can find is a dupe of #2371

@ghost ghost added the Needs: Maintainer Attention Maintainer attention needed! label Apr 22, 2020
@SydneyhSmith SydneyhSmith added Community-Help and removed Needs: Maintainer Attention Maintainer attention needed! labels Apr 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants