We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When running on systems (in this cause a Debian distro) where $env:USERPROFILE is null this cryptic exception pops us.
`OperationStopped`: The type initalizer for `ScubaConfig` threw an exception`
Had to run this below to see this source error in ScubaConfig.psm1.
ScubaConfig.psm1
try { Initialize-SCuBA } catch { $_.Exception.InnerExecption }
Fix is to add error handling to the DefaultOPAPath assignment line.
DefaultOPAPath
Original line.
The fix.
Run Initialize-SCuBA or Invoke-SCuBA on Linux and/or Macs with PowerShell 7.
Initialize-SCuBA
Invoke-SCuBA
For ScubaGear not to throw a cryptic exception on initially running.
The text was updated successfully, but these errors were encountered:
buidav
Successfully merging a pull request may close this issue.
🐛 Summary
When running on systems (in this cause a Debian distro) where $env:USERPROFILE is null this cryptic exception pops us.
Had to run this below to see this source error in
ScubaConfig.psm1
.Fix is to add error handling to the
DefaultOPAPath
assignment line.Original line.
The fix.
To reproduce
Run
Initialize-SCuBA
orInvoke-SCuBA
on Linux and/or Macs with PowerShell 7.Expected behavior
For ScubaGear not to throw a cryptic exception on initially running.
The text was updated successfully, but these errors were encountered: