You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've installed the version 3.0.0rc2 and won't play with it, but I can not set config options. If I fire up a command following fatal error will return:
phpcs --config-set show_progress 1
PHP Fatal error: Uncaught PHP_CodeSniffer\Exceptions\RuntimeException: Config file phar:///usr/local/bin/phpcs/src/../CodeSniffer.conf is not writable in phar:///usr/local/bin/phpcs/src/Config.php:2
Stack trace:
#0 phar:///usr/local/bin/phpcs/src/Config.php(2): PHP_CodeSniffer\Config::setConfigData('show_progress', '1') #1 phar:///usr/local/bin/phpcs/src/Config.php(2): PHP_CodeSniffer\Config->processLongArgument('config-set', 0) #2 phar:///usr/local/bin/phpcs/src/Config.php(2): PHP_CodeSniffer\Config->setCommandLineValues(Array) #3 phar:///usr/local/bin/phpcs/src/Runner.php(2): PHP_CodeSniffer\Config->__construct() #4 /usr/local/bin/phpcs(6): PHP_CodeSniffer\Runner->runPHPCS() #5 {main}
thrown in phar:///usr/local/bin/phpcs/src/Config.php on line 2
Fatal error: Uncaught PHP_CodeSniffer\Exceptions\RuntimeException: Config file phar:///usr/local/bin/phpcs/src/../CodeSniffer.conf is not writable in phar:///usr/local/bin/phpcs/src/Config.php on line 2
PHP_CodeSniffer\Exceptions\RuntimeException: Config file phar:///usr/local/bin/phpcs/src/../CodeSniffer.conf is not writable in phar:///usr/local/bin/phpcs/src/Config.php on line 2
I've installed the version 3.0.0rc2 and won't play with it, but I can not set config options. If I fire up a command following fatal error will return:
phpcs --config-set show_progress 1
PHP Fatal error: Uncaught PHP_CodeSniffer\Exceptions\RuntimeException: Config file phar:///usr/local/bin/phpcs/src/../CodeSniffer.conf is not writable in phar:///usr/local/bin/phpcs/src/Config.php:2
Stack trace:
#0 phar:///usr/local/bin/phpcs/src/Config.php(2): PHP_CodeSniffer\Config::setConfigData('show_progress', '1')
#1 phar:///usr/local/bin/phpcs/src/Config.php(2): PHP_CodeSniffer\Config->processLongArgument('config-set', 0)
#2 phar:///usr/local/bin/phpcs/src/Config.php(2): PHP_CodeSniffer\Config->setCommandLineValues(Array)
#3 phar:///usr/local/bin/phpcs/src/Runner.php(2): PHP_CodeSniffer\Config->__construct()
#4 /usr/local/bin/phpcs(6): PHP_CodeSniffer\Runner->runPHPCS()
#5 {main}
thrown in phar:///usr/local/bin/phpcs/src/Config.php on line 2
Fatal error: Uncaught PHP_CodeSniffer\Exceptions\RuntimeException: Config file phar:///usr/local/bin/phpcs/src/../CodeSniffer.conf is not writable in phar:///usr/local/bin/phpcs/src/Config.php on line 2
PHP_CodeSniffer\Exceptions\RuntimeException: Config file phar:///usr/local/bin/phpcs/src/../CodeSniffer.conf is not writable in phar:///usr/local/bin/phpcs/src/Config.php on line 2
Call Stack:
0.0006 356360 1. {main}() /usr/local/bin/phpcs:0
0.0087 675168 2. PHP_CodeSniffer\Runner->runPHPCS() /usr/local/bin/phpcs:6
0.0109 888632 3. PHP_CodeSniffer\Config->__construct() phar:///usr/local/bin/phpcs/src/Runner.php:2
0.0206 915600 4. PHP_CodeSniffer\Config->setCommandLineValues() phar:///usr/local/bin/phpcs/src/Config.php:2
0.0206 915640 5. PHP_CodeSniffer\Config->processLongArgument() phar:///usr/local/bin/phpcs/src/Config.php:2
0.0207 915640 6. PHP_CodeSniffer\Config::setConfigData() phar:///usr/local/bin/phpcs/src/Config.php:2
The CodeSniffer.conf in /usr/local/bin works fine with phpcs v2.x.
(I've renamed the phpcs files only for showing the different behaviour!)
The text was updated successfully, but these errors were encountered: