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

"Debug tests" auto-fills wrong test name #852

Closed
rebro-msft opened this issue Jun 9, 2017 · 1 comment
Closed

"Debug tests" auto-fills wrong test name #852

rebro-msft opened this issue Jun 9, 2017 · 1 comment
Labels
Area-Pester Issue-Bug A bug to squash.
Milestone

Comments

@rebro-msft
Copy link

System Details

  • Operating system name and version: Windows 10 Enterprise
  • VS Code version: 1.13.0
  • PowerShell extension version: 1.3.0
  • Output from $PSVersionTable:
Name                           Value
----                           -----
PSVersion                      5.1.15063.296
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.15063.296
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
Copy / paste the below commands into the PowerShell Integrated Terminal, and paste the output here

PS C:\ > code -v
1.13.0
376c52b955428d205459bea6619fc161fc8faacf

PS C:\ >$pseditor.EditorServicesVersion
Major  Minor  Build  Revision
-----  -----  -----  --------
1      3      0      0

PS C:\ > code --list-extensions --show-versions
DavidAnson.vscode-markdownlint@0.9.1
dbankier.vscode-instant-markdown@1.1.0
ms-vscode.csharp@1.10.0
ms-vscode.PowerShell@1.3.0
ms-vscode.Theme-MarkdownKit@0.1.4
ms-vscode.wordcount@0.1.0
seanmcbreen.MDTools@1.0.1
streetsidesoftware.code-spell-checker@1.1.0

PS C:\ > $PSVersionTable
Name                           Value
----                           -----
PSVersion                      5.1.15063.296
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.15063.296
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1

Issue Description

I am experiencing a problem with debugging Pester tests using the "Debug tests" link above a Describe block. It is auto-filling in the wrong TestName:

debug-tests-testname-issue

If I put the Describe name in quotes, I get a different error:

debug-tests-testname-issue2

Attached Logs

Follow the instructions in the README
about capturing and sending logs.
I will send them to David directly.

@daviwil
Copy link
Contributor

daviwil commented Jun 9, 2017

Thanks for sending this! I'm about to ship an update with a couple fixes, will get this one in too.

@daviwil daviwil added this to the 1.3.1 milestone Jun 9, 2017
daviwil added a commit to daviwil/PowerShellEditorServices that referenced this issue Jun 9, 2017
This change fixes a couple of issues with the new Pester CodeLens
feature.  One is that the "Describe" function is not recognized when it
is not cased exactly like that and the other is that the language server
has an internal error that causes it to hang when typing Describe blocks
into a script.

Resolves PowerShell/vscode-powershell#850
Resolves PowerShell/vscode-powershell#851
Resolves PowerShell/vscode-powershell#852
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Pester Issue-Bug A bug to squash.
Projects
None yet
Development

No branches or pull requests

2 participants