Search found 11 matches

by gareth.jacobs
Sun Feb 10, 2019 9:38 pm
Forum: PowerShell Studio
Topic: Watch Window Not Showing Variable Content; Run to Cursor not working
Replies: 1
Views: 753

Watch Window Not Showing Variable Content; Run to Cursor not working

2019-02-11_14-36-47.jpg Product: PowerShell Studio 2019 (64 Bit) Build: v5.6.158 OS: Windows 10 Enterprise (64 Bit) Build: v10.0.17763.0 When debugging, the Watch window is not showing the content of variables. Closing and reopening PSS didn't help. Also - Run to Cursor doesn't work. It runs past t...
by gareth.jacobs
Wed Dec 12, 2018 1:52 pm
Forum: PowerShell Studio
Topic: Unhandled Exception Error
Replies: 1
Views: 879

Unhandled Exception Error

Product, version and build: Product: PowerShell Studio 2019 (64 Bit) Build: v5.6.156 OS: Windows 10 Enterprise (64 Bit) Build: v10.0.18290.0 Operating system: Microsoft Windows 10 Enterprise Insider Preview 10.0.18290 (64-bit) The attached activity screenshot generated an Unhandled Exception Error: ...
by gareth.jacobs
Mon Aug 20, 2018 2:23 pm
Forum: PowerShell Studio
Topic: [Parameter(DontShow)] Parameter
Replies: 1
Views: 597

[Parameter(DontShow)] Parameter

Product, version and build: PowerShell Studio 2018 v5.5.154 32 or 64 bit version of product: 64 Operating system: Windows 10 Enterprise 32 or 64 bit OS: 64 Simple question: Does PowerShell Studio support the [Parameter(DontShow)] parameter in functions? If I edit a parameter with [Parameter(DontShow...
by gareth.jacobs
Wed Sep 20, 2017 6:25 pm
Forum: PowerShell Studio
Topic: Dot Loaded File Compiler Error at Runtime
Replies: 4
Views: 684

Re: Dot Loaded File Compiler Error at Runtime

Your 2nd post was the clue. The files (in fact all my files) are UTF8 by default. I changed them to ASCII (Windows-1252); saved and recompiled and the problem went away. I have never changed to default file format before now and, as I mentioned, this isn't a problem for scripts that are not dot sour...
by gareth.jacobs
Wed Sep 20, 2017 3:09 pm
Forum: PowerShell Studio
Topic: Dot Loaded File Compiler Error at Runtime
Replies: 4
Views: 684

Dot Loaded File Compiler Error at Runtime

Product, version and build: PowerShell Studio 2017 v5.4.143 32 or 64 bit version of product: 64 Operating system: Windows 10 Build 14393 32 or 64 bit OS: 64 Create the following code in a .ps1 function Get-RandomPassword { param ( [Parameter(Mandatory = $false)] [ValidateRange(3, 256)] [Alias('L')] ...
by gareth.jacobs
Wed Aug 09, 2017 1:19 pm
Forum: PowerShell Studio
Topic: Symantec Antivirus Alerts for Heur.AdvML.B on Script Engines
Replies: 1
Views: 1351

Symantec Antivirus Alerts for Heur.AdvML.B on Script Engines

Product, version and build: PowerShell Studio 2017 v5.4.143 32 or 64 bit version of product: 64 Operating system: Windows 10 Build 14393 32 or 64 bit OS: 64 Symantec Antivirus just issued the following Heur.AdvML.B alert on the Script Engine: Scan type: Auto-Protect Scan Event: Risk Found! Security ...
by gareth.jacobs
Wed Aug 02, 2017 12:33 pm
Forum: PowerShell Studio
Topic: Compiled Code Object Reference Error
Replies: 6
Views: 903

Re: Compiled Code Object Reference Error

Thanks David. I have found the answer here: https://www.sapien.com/blog/2015/12/07/parsing-parameters-for-a-script-in-an-executable-file It seems that parsing parameters to a compiled executable is entirely different and the traditional method used by scripts. I have been compiling PowerShell code f...
by gareth.jacobs
Tue Aug 01, 2017 4:10 pm
Forum: PowerShell Studio
Topic: Compiled Code Object Reference Error
Replies: 6
Views: 903

Re: Compiled Code Object Reference Error

Interesting. When you use the -? parameter on a ps1 script it outputs your specified parameters plus [<CommonParameters>].

Ignoring -? for now, what about the command line parameters being ignored in the compiled code, but work from a script?
by gareth.jacobs
Tue Aug 01, 2017 3:24 pm
Forum: PowerShell Studio
Topic: Compiled Code Object Reference Error
Replies: 6
Views: 903

Compiled Code Object Reference Error

Product, version and build: PowerShell Studio 2017 v5.4.143 32 or 64 bit version of product: 64 Operating system: Windows 10 Build 14393 32 or 64 bit OS: 64 Hi Using the following simple code: param ( [Alias('h')] $help, [Parameter(ParameterSetName = 'add')] $add, $remove ) Write-Host "Hello World" ...
by gareth.jacobs
Tue Aug 01, 2017 2:33 pm
Forum: PowerShell Studio
Topic: Active Tab Jumps To Another Tab During Run (F5)
Replies: 4
Views: 830

Re: Active Tab Jumps To Another Tab During Run (F5)

So far it looks like it is fixed.

I will let you know if it does it again.

Thanks
G