ironmansoftware / powershell-pro-tools

Scripting, automation, and development tools for professionals working with PowerShell.
MIT License
60 stars 3 forks source link

Refactoring Options Claiming Unlicensed #47

Closed axisfx24 closed 3 months ago

axisfx24 commented 5 months ago

Describe the bug When trying to use any of the refactoring options of Pro Tools in VSCode, I get a message that the feature is only available in licensed instance of extension. The extension is licensed. This is happening in latest v2024.3.1, but not previous versions.

To Reproduce Steps to reproduce the behavior:

  1. Try to convert parameterized cmd into splat

Expected behavior I am expecting it to refactor the code into a hashtable

Screenshots Error: image

Licensed: image

Version

Tool (Visual Studio, VS Code, PSScriptPad, PS Module): Operating System: Windows 11 23H3 VSCode: 1.88.1 PS ProTools: 2024.3.1

adamdriscoll commented 5 months ago

@axisfx24 Can you please check the VS Code output panel for an log messages related to this?

https://support.ironmansoftware.com/portal/en/kb/articles/kb3011-how-to-collect-logs

axisfx24 commented 5 months ago

I cleared the output prior to running "Use parameter splatting" and this was the result

[4/22/2024 9:29:16 AM] Scheduling command for main runspace: $Commands = Get-Command 'Get-ADUser' -ErrorAction SilentlyContinue; if ($Commands) { try { [System.Management.Automation.ProxyCommand]::Create((New-Object System.Management.Automation.CommandMetaData $Commands)) } catch { } } else { '' }