Skip to content

vith/process-bug

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Process Bug

When using symfony/Process to run postcss/autoprefixer, the output gets truncated.

This only happens on Arch Linux.

It won't happen if you rebuild the nodejs package from ABS without --shared-libuv passed to ./configure.

System Dependencies

This will require PHP, composer, nodejs, and npm.

On Arch Linux: sudo pacman -Sy php php-composer nodejs

Test Setup

git clone https://github.com/vith/process-bug.git
cd process-bug
composer install
npm install

Run Test

./test.php

Failure Output

cat_test OK
slowcat_test OK
PHP Fatal error:  Uncaught exception 'Exception' with message 'Process->run() output was truncated. Got 65536 bytes, expected 136967' in /home/jasonp/Software/process-bug/test.php:53
Stack trace:
#0 /home/jasonp/Software/process-bug/test.php(90): check_output(Object(Symfony\Component\Process\Process))
#1 /home/jasonp/Software/process-bug/test.php(97): autoprefixer_test()
#2 {main}
  thrown in /home/jasonp/Software/process-bug/test.php on line 53

Success Output

cat_test OK
slowcat_test OK
autoprefixer_test OK

About

some bug with symfony/Process and postcss/autoprefixer

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages