Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 3.7.2

Bug #19799 config folder is not created automatically
Submitted: 2013-01-27 01:27 UTC
From: alexx_avdeev Assigned: squiz
Status: Closed Package: PHP_CodeSniffer (version 1.4.3)
PHP Version: 5.3.8 OS: debian 6
Roadmaps: (Not assigned)    
Subscription  


 [2013-01-27 01:27 UTC] alexx_avdeev (Alexey Avdeev)
Description: ------------ $ sudo /usr/bin/phpcs --config-set default_standard PSR PHP Warning: file_put_contents(/usr/share/php/data/PHP_CodeSniffer/Code Sniffer.conf): failed to open stream: No such file or directory in /usr/share/php/PHP/CodeSniffer.php on line 2095 PHP Stack trace: PHP 1. {main}() /usr/bin/phpcs:0 PHP 2. PHP_CodeSniffer_CLI->process() /usr/bin/phpcs:37 PHP 3. PHP_CodeSniffer_CLI->getCommandLineValues() /usr/share/php/PHP/CodeSniffer/CLI.php:481 PHP 4. PHP_CodeSniffer_CLI->processLongArgument() /usr/share/php/PHP/CodeSniffer/CLI.php:195 PHP 5. PHP_CodeSniffer::setConfigData() /usr/share/php/PHP/CodeSniffer/CLI.php:307 PHP 6. file_put_contents() /usr/share/php/PHP/CodeSniffer.php:2095 $ sudo mkdir /usr/share/php/data/PHP_CodeSniffer/ $ sudo pear uninstall PHP_CodeSniffer pear/PHP_CodeSniffer (version >= 1.2.0) can be optionally used by installed package "phpunit/PHP_CodeBrowser" uninstall ok: channel://pear.php.net/PHP_CodeSniffer-1.4.3 $ sudo pear install --alldeps pear.php.net/PHP_CodeSniffer WARNING: channel "pear.php.net" has updated its protocols, use "pear channel-update pear.php.net" to update downloading PHP_CodeSniffer-1.4.3.tgz ... Starting to download PHP_CodeSniffer-1.4.3.tgz (369,533 bytes) ............................................................................done: 369,533 bytes install ok: channel://pear.php.net/PHP_CodeSniffer-1.4.3 $ sudo /usr/bin/phpcs --config-set default_standard PSR

Comments

 [2013-01-29 08:20 UTC] squiz (Greg Sherwood)
-Status: Open +Status: Closed -Assigned To: +Assigned To: squiz
Fixed in github repo: https://github.com/squizlabs/PHP_CodeSniffer/commit/8b66febd5654dfbbee8ff7f1c16a b146aab71c21 PEAR needs a file installed into the data dir on install or upgrade to create the folder and I removed the previous sample file in the last version. I've put a proper sample file back now.