terminus icon indicating copy to clipboard operation
terminus copied to clipboard

terminus workflow:list PHP 8.1 stack trace

Open heddn opened this issue 3 years ago • 1 comments

Platform

( ) MacOS (x) Linux ( ) Winderz

Installed Via

( ) Homebrew ( ) Apt Package (x) Manually

PHP Version

( ) 7.4x ( ) 8.0 (x) 8.1

Command Executed

(copy/paste if possible)

terminus workflow:list <site_id>

utFormatters\Transformations\Wrap\{closure}", public $this = class Consolidation\OutputFormatters\Transformations\Wrap\CalculateWidths {  }; public $parameter = ['$cell' => '<required>'] }) /home/heddn/.terminus/terminus-dependencies-e993a57a30/vendor/consolidation/output-formatters/src/Transformations/Wrap/CalculateWidths.php:57
PHP  21. Consolidation\OutputFormatters\Transformations\Wrap\CalculateWidths->Consolidation\OutputFormatters\Transformations\Wrap\{closure:/home/heddn/.terminus/terminus-dependencies-e993a57a30/vendor/consolidation/output-formatters/src/Transformations/Wrap/CalculateWidths.php:55-57}($cell = NULL) /home/heddn/.terminus/terminus-dependencies-e993a57a30/vendor/consolidation/output-formatters/src/Transformations/Wrap/CalculateWidths.php:82
PHP  22. strlen($string = NULL) /home/heddn/.terminus/terminus-dependencies-e993a57a30/vendor/consolidation/output-formatters/src/Transformations/Wrap/CalculateWidths.php:56

Expected behavior

Describe what you had expected the command to do. If your issue is with the Terminus Installer, please file your issue here: https://github.com/pantheon-systems/terminus-installer/issues

Actual behavior

If your issue is with a command not working, please run the command again with the -vvv option (--debug in 0.x) and copy everything from the command down to the next prompt and paste it here between a pair of ``` marks.

heddn avatar Sep 13 '22 18:09 heddn

Hey @heddn 👋 thank you for this report. We've opened a bug ticket (BUGS-5304) and will be looking into it.

jspellman814 avatar Sep 14 '22 17:09 jspellman814

Hi @heddn we recently addressed some PHP 8.1 deprecations. Could you please try the most recent version of terminus (3.0.9) and let us know if this issue is now solved? If not, could you please paste the full stack trace?

Also, if you could provide a list of installed plugins that may also be helpful

Thanks!

kporras07 avatar Oct 14 '22 17:10 kporras07

$ terminus self:update

$ terminus self:plugin:reload
 
$ terminus --version
Terminus 3.0.9

$  terminus plugins
 ------------------------- ------------------------------------ ------------------- ---------------- ----------------- 
  Name                      Description                          Installed Version   Latest Version   Compatible With  
 ------------------------- ------------------------------------ ------------------- ---------------- ----------------- 
  terminus-config-export    Terminus plugin for syncing Drupal   1.3                 1.3              ^2.0             
                            site configuration                                                                         
  terminus-rsync-plugin     Rsync - Terminus Plugin that         1.1.0               1.1.0            ^1|^2            
                            provides a quick shortcut for                                                              
                            rsync-ing files to and from a                                                              
                            Pantheon site.                                                                             
  terminus-secrets-plugin   Secrets - A Terminus plugin that     1.3.1               1.3.1            ^1|^2            
                            allows for manipulation of a                                                               
                            'secrets' file for use with                                                                
                            Quicksilver.                                                                               
 ------------------------- ------------------------------------ ------------------- ---------------- ----------------- 

Still getting the same stack trace with workflow that I was getting previously.

heddn avatar Oct 14 '22 19:10 heddn

Thanks! Could you please provide the full stack trace? Previous seems to be cropped

kporras07 avatar Oct 14 '22 20:10 kporras07

I think simply upgrading to later release of https://github.com/consolidation/output-formatters would fix the problem. See https://github.com/consolidation/output-formatters/pull/99

heddn avatar Oct 17 '22 14:10 heddn

Thanks! That's super helpful.

I added more details to the internal ticket.

kporras07 avatar Oct 17 '22 20:10 kporras07

Hi! I just confirmed that this is fixed in 3.1.0. Please give it a try and feel free to reopen if you can still reproduce the issue. Thanks!

kporras07 avatar Nov 02 '22 17:11 kporras07