Wait-RsJob -State Completed with no input returns Attempted to divide by zero.
codykonior opened this issue · comments
PS C:\Windows\system32> Import-Module PoshRSJob
PS C:\Windows\system32> Wait-RSJob -State Completed
Attempted to divide by zero.
At C:\...\PowerShell\Modules\poshrsjob\Public\Wait-RSJob.ps1:180 char:42
+ Write-Verbose "Status: $($Completed/$TotalJobs)"
+ ~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], RuntimeException
+ FullyQualifiedErrorId : RuntimeException
PS C:\Windows\system32>
Thanks for the heads up! I'll look to get this fixed up.
@codykonior What version of PoshRSJob are you running? Just curious as I thought this was fixed in a recent version and I cannot reproduce on the current version (1.7.2.6)
I was on 1.7.2.4 which is the copy I got on the 19th.
Cody
On 26 Sep. 2016, at 9:38 am, Boe Prox notifications@github.com wrote:
What version of PoshRSJob are you running? Just curious as I thought this was fixed in a recent version and I cannot reproduce on the current version (1.7.2.6)
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
Ok. Try it with the latest version (1.7.2.7) and see if the issue is still happening.
PS C:\> Import-Module PoshRSJob
PS C:\> Get-Module PoshRSJob
ModuleType Version Name ExportedCommands
---------- ------- ---- ----------------
Script 1.7.2.7 PoshRSJob {Get-RSJob, Receive-RSJob, Remove-RSJob, Start-RSJob...}
PS C:\> Wait-RSJob -State Completed
Попытка деления на нуль.
At C:\USERS\MVKozlov\Documents\WindowsPowerShell\Modules\PoshRSJob\Public\Wait-RSJob.ps1:180 char:42
+ Write-Verbose "Status: $($Completed/$TotalJobs)"
+ ~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], RuntimeException
+ FullyQualifiedErrorId : RuntimeException
btw, here on github latest commit on Wait-RSJob was a month ago
Yep, I was looking at the wrong thing. This will be fixed in the next release.