ironmansoftware / powershell-universal

Issue tracker for PowerShell Universal
https://powershelluniversal.com
35 stars 3 forks source link

Changing folder in script editor, does not reload the script #2666

Open galegleasonJHA opened 1 year ago

galegleasonJHA commented 1 year ago

Version

4.0.9

Severity

Low

Steps to Reproduce

Moved a script to a new folder via the editor. clicking the run button on the script makes it try to find it at the old path.

Expected behavior

Successful run

Actual behavior

Script not found
[error] The term 'C:\ProgramData\UniversalAutomation\Repository\Development\Machine_Query_for_Splunk.ps1' is not recognized as a name of a cmdlet, function, script file, or executable program.

Additional Environment data

IIS

Visuals

image

Workaround

Recycle the AppPool

Omzig commented 1 year ago

Dude, this is such a pain, also if you rename it, and then cancel your changes, it leaves an artifact in the new place and does not delete the new file when you cancel. "Cancel changes" might be yet another/different kind of bug ;)