Search found 14 matches

by sean@midnightdba.com
Fri Apr 29, 2022 4:44 pm
Forum: PowerShell
Topic: Module Manifest
Replies: 9
Views: 5461

Re: Module Manifest

Well the reason I'm here is cause I had the both in the same file and it didn't work. When I wrote the psm1 originally I got the same error. Then I read that PS loads the classes first, and then the other stmts. So the type def has to be loaded into the session before the classes. And I just tried i...
by sean@midnightdba.com
Thu Apr 28, 2022 7:12 pm
Forum: PowerShell
Topic: Module Manifest
Replies: 9
Views: 5461

Re: Module Manifest

So you're telling me that the manifest isn't processed unless I use import-module? The docs I've seen say that the diff between import-module and using module is that using module exports classes and import-module doesn't. Is that not true? And I'm not sure how I have a circular dependency. I ended ...
by sean@midnightdba.com
Thu Apr 28, 2022 7:11 am
Forum: PowerShell
Topic: Module Manifest
Replies: 9
Views: 5461

Re: Module Manifest

Sorry it took so long to reply, I didn't see the checkbox for reply emails. Well, the point is that I want to be able to run the script and have the script load everything for me. This will be part of an automated process so I won't be able to separately load the module like that. Besides, this is w...
by sean@midnightdba.com
Mon Apr 25, 2022 10:30 am
Forum: PowerShell
Topic: Module Manifest
Replies: 9
Views: 5461

Re: Module Manifest

Here's what I get when I run it.
InterfaceError.png
InterfaceError.png (28.33 KiB) Viewed 5344 times
by sean@midnightdba.com
Sat Apr 23, 2022 12:34 pm
Forum: PowerShell
Topic: Module Manifest
Replies: 9
Views: 5461

Module Manifest

I'm trying to add a file to the module manifest but I can't get it to work. I've got a file with a custom type and while I can add it as an include, I should be able to put it in the manifest under ScriptsToProcess. This section is supposed to load files under the session scope. But it doesn't see t...
by sean@midnightdba.com
Fri Dec 03, 2021 6:59 pm
Forum: Wish List and Feature Requests
Topic: Shortcuts to close panels
Replies: 1
Views: 47122

Shortcuts to close panels

It would be nice to be able to have a shortcut to close all the panels so I can get back to coding w/o using the mouse. For example: I run a script, and the output window comes up, along with anything else I might have configured. But those panels take up a lot of space so before I can work on the s...
by sean@midnightdba.com
Fri Dec 03, 2021 5:48 pm
Forum: Wish List and Feature Requests
Topic: Function References
Replies: 0
Views: 9406

Function References

I would be nice if we could see function references like in Visual Studio.
Image is attached.
by sean@midnightdba.com
Thu Nov 11, 2021 12:45 pm
Forum: Wish List and Feature Requests
Topic: Batch Deploy Scripts
Replies: 1
Views: 5028

Batch Deploy Scripts

Presently you can only build one script at a time. It would be nice to be able to select many scripts and build them in batch. Even better would be to build all scripts in a folder or project that have been changed since a certain time. As part of this it would also be nice to be able to set the dep...
by sean@midnightdba.com
Wed Sep 27, 2017 11:16 am
Forum: PowerShell Studio
Topic: Performance Problem with Compiled Scripts
Replies: 2
Views: 1624

Re: Performance Problem with Compiled Scripts

Thanks, I found the issue. There was an include that had a hidden invoke-sqlcmd call in there. The query was very simple, but loading that cmdlet was taking a long time. I don't understand why it's taking so much longer when the script is compiled, but when I replaced it with the function call, the ...
by sean@midnightdba.com
Wed Sep 27, 2017 8:33 am
Forum: PowerShell Studio
Topic: Performance Problem with Compiled Scripts
Replies: 2
Views: 1624

Performance Problem with Compiled Scripts

I've seen this before with scripts I write and compile into an exe. I've got severe performance issues with the compiled versions. I usually write a ps1 and then compile it in PowerShell Studio. When I do, the runtime goes from 2-3secs to like 30secs. The weird thing is that if I call the exe on its...