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

Invoke-DSCResource requires to exit powershell session to read any changes to powershell resource #68

Open
bagajjal opened this issue Sep 14, 2021 · 0 comments

Comments

@bagajjal
Copy link
Collaborator

bagajjal commented Sep 14, 2021

I'm using 7.2.0-preview.6.

Repro steps -

  1. Have a test powershell resource that's working fine.
  2. inside powershell session, run invoke-dscresource
  3. Now add a write-verbose / write-host / write-debug statement in the execution flow.
  4. in the same powershell session, run invoke-dscresource again.
  5. You wouldn't see the log added in step 3

To see the log added in step 3, you need to completely exit the powershell session and launch powershell session again.

Invoke-DscResource doesn't see the latest changes unless I completely exit the powershell session. This makes developer life very difficult to debug.

As far as I remember, this scenario worked before DSC code is pulled from powershell repository.

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

1 participant