ironmansoftware / powershell-universal

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

5.0.9 - 'Edit Code' for a local module displays empty code #3849

Open bt-ndollimount opened 1 week ago

bt-ndollimount commented 1 week ago

Version

5.0.9

Severity

Low

Environment

msi

Steps to Reproduce

When attempting to edit a custom module through the PSU interface, clicking 'Edit Code' displays empty code.

Expected behavior

The module code should be displayed to be edited.

Actual behavior

The code is empty.

Additional Environment data

No response

Screenshots/Animations

image

adamdriscoll commented 1 week ago

Can you share the layout of your module? I tried this myself and it works but it is a really simple, single file module.

image

image

The local module editor only supports this type of module.

bt-ndollimount commented 1 week ago

image

It's a module I initially created in PSU with that layout.

bt-ndollimount commented 1 week ago

A fun turn of events; it's now loading it. Probably one of the service restarts while trying to get the script back.

bt-ndollimount commented 1 day ago

@adamdriscoll This is happening again since yesterday. Is there anything you can think of for me to try for troubleshooting?

bt-ndollimount commented 1 day ago

When checking the browser console, this line, "Duplicate definition of module 'vs/basic-languages/powershell/powershell' pops up. I'm not sure if that's relevant.

image

adamdriscoll commented 1 day ago

I'm not sure. Let me play around with it a bit more to see if I can reproduce it.