You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In release 0.10.2 when running refreshenv from powershell, several errors are output.
What is Expected?
The expected result would be that no errors are output.
How Did You Get This To Happen? (Steps to Reproduce)
Upgrade to chocolatey 0.10.2 and run refreshenv from powershell.
The Reason
The chocolateyProfile.psm1 uses the function Get-EnvironmentVariable. This function in turn uses Write-FunctionCallLogMessage, but Write-FunctionCallLogMessage.psm1 is not imported in the profile and therefore errors occur.
With the new call to Write-FunctionCallLogMessage.ps1, the profile was
not updated to use that call. So it fails with lots of red text on the
screen as you attempt to run things like `refreshenv` from PowerShell.
Add the function to be loaded so there are no issues running
`refreshenv`.
Be able to pass the before modify action to the ISourceRunner service
so it can choose the best time to make the call to the before modify
action (typically before anything other work is completed).
ferventcoder
changed the title
The refreshenv command throws an error about Write-FunctionCallLogMessage when ran in powershell on 0.10.2.
The refreshenv command throws an error about Write-FunctionCallLogMessage when ran in PowerShell on 0.10.2.
Oct 6, 2016
What You Are Seeing?
In release 0.10.2 when running refreshenv from powershell, several errors are output.
What is Expected?
The expected result would be that no errors are output.
How Did You Get This To Happen? (Steps to Reproduce)
Upgrade to chocolatey 0.10.2 and run refreshenv from powershell.
The Reason
The chocolateyProfile.psm1 uses the function Get-EnvironmentVariable. This function in turn uses Write-FunctionCallLogMessage, but Write-FunctionCallLogMessage.psm1 is not imported in the profile and therefore errors occur.
chocolateyProfile.psm1#L20
Get-EnvironmentVariable.ps1#L65
Write-FunctionCallLogMessage.ps1
Output Log
There is no log generated with the refreshenv command, but here is the console output.
Chocolatey Veriosn: 0.10.2
OS: Windows 10 Enterprise x64
PS Version: 5.1.14393.206
https://gist.github.com/jesseconnr/37e5d78d008fd5bb9fa8b9dbb6e5f08c
The text was updated successfully, but these errors were encountered: