-
Notifications
You must be signed in to change notification settings - Fork 513
Test-DscConfiguration not returning value in Powershell Integrated Console #2953
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
Comments
@marvelcz89 thanks for the info-- I wonder if you assign it to a variable if you are able to retrieve a result i.e. maybe the command is being returned but not printed properly? |
@SydneyhSmith I have added some additional information to EDIT1. |
Thanks @marvelcz89 that is very helpful-- it would be great if you tried this one again with a slight variation: Saving to a variable does not provide result: https://gyazo.com/8564392a43a0fb6d977da0cb5d14cef1
|
Hello @SydneyhSmith Additional example 1 code: Additional example 1 result: Additional example 2 code:
Additional example 2 result: Additional example 3 code:
Additional example 3 result: Additional example 4 code:
Additional example 4 result: Additional example 5 code:
Additional example 5 result: |
@marvelcz89 thanks so much for taking the time to test all these examples, they are very helpful for us! I do want to confirm that these were all done using F8 (rather than being pasted into the terminal), is that correct? |
@SydneyhSmith The issue occurs in F8 selective execution, F5 script execution, and also when manually typing and executing in PS integrated console. Many thanks for information! |
DSC is supported, but is currently buggy due to deeper issues in the extension as described in #2745. Because DSC features only get used by some users (compared to features like intellisense), we don't hear about bugs in it as often as we probably should. I don't know if you can fix the intellisense issue with reconfiguration (the hidden integrated console you describe is just the state of the PowerShell process -- without that, you have no intellisense). We're working on fixing the intellisense issue, but we're not quite there yet. |
Hello @SydneyhSmith, Commenting here to let everyone know. |
Uh oh!
There was an error while loading. Please reload this page.
Issue Description
Invoking Test-DscConfiguration does not return value when invoked for the first time in session in Powershell Integrated Console and also a few seconds afterwards.
The functionality is restored after several seconds after first Test-DscConfiguration call but the initial queries are already faulty..
Here is the screenshot of the behavior: https://gyazo.com/4e3696d65e3e0de34cb2cdf6a9680bf6
No faults when used in regular VS Code terminal, ISE, or directly invoking the .EXE
I was able to replicate the issue on a freshly installed VM both W10 1909 and WS 2016 1909 + VS Code 1.49 and Powershell Extension 2020.6.0 for PS versions 5.1 and 7.0.3
EDIT1: Additional information
EDIT2: Additional information
I have added additional behaviour examples in posts below.
Workaround
I added following configuration to avoid using Integrated console:
or
Attached Logs
The issue not occuring with Diagnostics mode for some reason :(
Environment Information
Visual Studio Code
PowerShell Information
Visual Studio Code Extensions
Visual Studio Code Extensions(Click to Expand)
The text was updated successfully, but these errors were encountered: