ironmansoftware / universal-automation

Universal Automation is the PowerShell-first automation platform.
https://ironmansoftware.com/universal-automation/
MIT License
24 stars 4 forks source link

A $profile breaks different tabs in the dashboard of UA. #73

Closed pminnebach closed 4 years ago

pminnebach commented 4 years ago

Describe the Issue

I have a powershell $profile that imports custom functions. This somehow breaks the following tabs in UA: Running Jobs, Past Jobs and Tags with the following error:

Cannot bind parameter 'Script'. Cannot convert the "D:\OneDrive - xxx\Source\PowerShell Functions\Write-Header.ps1" value of type "System.IO.FileInfo" to type "UniversalAutomation.Script".

The contents of my pscore 6 $profile is a dotsource of my regular windows powershell profile.

To Reproduce

Steps to reproduce the behavior: I removed my $profile

Expected behavior

It should show the correct information about the jobs etc w/o breaking over the presence of a $profile.

Screenshots

With a $profile: image

Without a $profile (or empty): image

Script Sample

Attempt to attach sample code that will allow others to reproduce the issue. NOTE: Generally speaking this is the MOST EFFECTIVE way to have your issue resolved.

Version Information

adamdriscoll commented 4 years ago

Fixed in 0.0.3-beta3