Search found 5913 matches

by davidc
Mon Jul 01, 2019 1:16 pm
Forum: PowerShell Studio
Topic: Not stopping at ANY breakpoints Win10 (1809) PowerShell v 5.1
Replies: 20
Views: 4407

Re: Not stopping at ANY breakpoints Win10 (1809) PowerShell v 5.1

I will ask the Dev team to investigate what might be triggering the error. In the meantime, can you verify that the Output Panel does in fact shows V5? It is possible that the platform can be redirected to another platform setting. Especially if you have a %ForcePlatform% comment or a requires state...
by davidc
Mon Jul 01, 2019 10:40 am
Forum: PowerShell Studio
Topic: Code Signing Fails with "ASN1 bad tag value met"
Replies: 5
Views: 1400

Re: Code Signing Fails with "ASN1 bad tag value met"

You can get this error when: 1. The certificate is expired. 2. The password is incorrect. PowerShell Studio requires the certificate to be in the store and thus doesn't supply a password field. The solution here is to use the External signing tool field in Options->PowerShell: External Signing Tool....
by davidc
Mon Jul 01, 2019 8:17 am
Forum: PowerShell GUIs
Topic: Importing Modules
Replies: 4
Views: 280

Re: Importing Modules

For the Windows 10 machines, I recommend generating a package executable engine targets V5 and see if that works. I also recommend using the PassThru parameter to verify that the module was indeed loaded: $module = Import-Module ActiveDirectory -PassThru if (-not $module) { #Show error message }
by davidc
Mon Jul 01, 2019 8:12 am
Forum: PowerShell GUIs
Topic: Importing Modules
Replies: 4
Views: 280

Re: Importing Modules

[TOPIC MOVED TO POWERSHELL GUIS FORUM BY MODERATOR]
by davidc
Thu Jun 27, 2019 2:22 pm
Forum: Wish List and Feature Requests
Topic: The diff's of .psf files are unreadable
Replies: 3
Views: 833

Re: The diff's of .psf files are unreadable

At this time, all the content is located with the single file psf. Could you post a feature request here?

https://www.sapien.com/requests

Thank you for your feedback.
by davidc
Thu Jun 27, 2019 1:12 pm
Forum: PowerShell GUIs
Topic: $openfiledialog1.InitialDirectory not opening in correct folder
Replies: 7
Views: 483

Re: $openfiledialog1.InitialDirectory not opening in correct folder

Get-Location will only give you the working directory which isn't necessarily the directory of the executable.

I recommend using the either:

Get-ScriptDirectory function (snippet: getscriptdirectory)
Or if you are using the latest version of PowerShell Studio 2019, the $PSScriptRoot variable.
by davidc
Thu Jun 27, 2019 12:59 pm
Forum: PowerShell GUIs
Topic: $openfiledialog1.InitialDirectory not opening in correct folder
Replies: 7
Views: 483

Re: $openfiledialog1.InitialDirectory not opening in correct folder

Yes, that will cause the problem. You will have to trim that portion out.
by davidc
Thu Jun 27, 2019 12:56 pm
Forum: PowerShell GUIs
Topic: GUI and Format List - Assistance
Replies: 2
Views: 286

Re: GUI and Format List - Assistance

You will need to use a fixed-point font, so that the text aligns correctly. 1. You can set the TextBox's Font property using the Properties panel. You can use the Courier New font. 2. Or select the TextBox in the designer and press [Ctrl + L] to apply a property set. Select Apply Console Font from l...
by davidc
Thu Jun 27, 2019 12:33 pm
Forum: PowerShell Studio
Topic: Find and Search and Replace nothing like is PrimalScript
Replies: 6
Views: 1982

Re: Find and Search and Replace nothing like is PrimalScript

We certainly will look at improving the Find/Replace dialog. Your candid feedback is very much appreciated.

Quick Tip: If you wrap the experimental code with in a function, the refactoring will only be applied within the function's body.
by davidc
Thu Jun 27, 2019 8:26 am
Forum: PowerShell Studio
Topic: Find and Search and Replace nothing like is PrimalScript
Replies: 6
Views: 1982

Re: Find and Search and Replace nothing like is PrimalScript

PowerShell Studio has a rename refactoring feature:
Rename Refactor.png
Rename Refactor.png (25.8 KiB) Viewed 1892 times
This feature will update functions, parameters and variables. It will even update references across files within a project.