Uploaded image for project: 'Puppet Development Kit'
  1. Puppet Development Kit
  2. PDK-1168

Unable to use PDK in PowerShell ISE console

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: PDK 1.11.0
    • Component/s: None
    • Environment:

      Windows 10 - 1803

      PDK 1.6 and PDK 1.7

    • Template:
    • Acceptance Criteria:
      Hide

      PDK should be able to used within PowerShell ISE console.

      Show
      PDK should be able to used within PowerShell ISE console.
    • Method Found:
      Needs Assessment
    • Release Notes:
      Enhancement
    • Release Notes Summary:
      Hide
      Previously we added a known issue with regards to using PDK within an ISE console (https://puppet.com/docs/pdk/1.x/pdk_known_issues.html#using-pdk-with-powershell-ise-locks-the-console). This enhancement modified the PDK module wrapper to detect if it was within an ISE console and give the user helpful and actionable advice on how to work around this issue instead of just "crashing".

      The known issue added on 29 Jan 2019 can also be removed.
      Show
      Previously we added a known issue with regards to using PDK within an ISE console ( https://puppet.com/docs/pdk/1.x/pdk_known_issues.html#using-pdk-with-powershell-ise-locks-the-console ). This enhancement modified the PDK module wrapper to detect if it was within an ISE console and give the user helpful and actionable advice on how to work around this issue instead of just "crashing". The known issue added on 29 Jan 2019 can also be removed.
    • QA Risk Assessment:
      Needs Assessment

      Description

      When running the PDK new module command inside a PowerShell ISE window, it throws the following error and then locks the console (never returns)

      PS C:\source\tmp> pdk --version
      1.6.0
       
      PS C:\source\tmp> pdk new module
      ansicon.exe : pdk (INFO): Creating new module: 
      At C:\Program Files\WindowsPowerShell\Modules\PuppetDevelopmentKit\PuppetDevelopmentKit.psm1:14 char:5
      +     &$env:DEVKIT_BASEDIR\private\tools\bin\ansicon.exe $env:RUBY_DIR\ ...
      +     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          + CategoryInfo          : NotSpecified: (pdk (INFO): Creating new module: :String) [], RemoteException
          + FullyQualifiedErrorId : NativeCommandError
      

      This was originally reported by Geoff Williams (geoff on Slack) who was also using PDK 1.7

        Attachments

          Activity

            People

            • Assignee:
              glenn.sarti Glenn Sarti
              Reporter:
              glenn.sarti Glenn Sarti
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Zendesk Support