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
The latest Composer and PHP 8.0 version is installed.
Current Behavior
If I try to run composer exec typo3-coding-standards extension, I get the following errors:
A .editorconfig file already exists in your main folder, but the -f option was not set. Nothing copied.
A .php-cs-fixer.dist.php file already exists in your main folder, but the -f option was not set. Nothing copied.
If I try the -f option, I get the error:
The "-f" option does not exist.
Workaround
If I delete the .editorconfig and .php-cs-fixer.php/.php-cs-fixer.dist.php files, I can run the script, but only a .php-cs-fixer.dist.php is created. The file itself looks a expected (without the file header config).
Expected Behavior
The switch of the ruleset should work as documented.
Steps To Reproduce
I cloned the project within the Windows WSL machine, inside the Linux
run composer install
and try composer exec typo3-coding-standards extension
Anything else?
If I installed it with composer req --dev typo3/coding-standards, I get no errors, since the files are missing initially.
So maybe the only issue is, that the documented -f option is missing?
The text was updated successfully, but these errors were encountered:
Hey @vaxul , thanks for your report. The problem is a wrong usage, try composer exec -- typo3-coding-standards extension -f which should work properly. If you omit the -- Composer uses the -f option for the exec command which of course does not have this option and is not what you want. It is mentioned on the last line of your screenshot above by the way and normal behavior for Symfony console apps.
Is there an existing issue for this?
Operating System
WSL Ubuntu-20.04
Composer version
2.3.10
PHP version
8.0.21
TYPO3 Coding Standards Package version
Main branch
Additional version information
The latest Composer and PHP 8.0 version is installed.
Current Behavior
If I try to run
composer exec typo3-coding-standards extension
, I get the following errors:If I try the
-f
option, I get the error:Workaround
If I delete the .editorconfig and .php-cs-fixer.php/.php-cs-fixer.dist.php files, I can run the script, but only a .php-cs-fixer.dist.php is created. The file itself looks a expected (without the file header config).
Expected Behavior
The switch of the ruleset should work as documented.
Steps To Reproduce
composer install
composer exec typo3-coding-standards extension
Anything else?
If I installed it with
composer req --dev typo3/coding-standards
, I get no errors, since the files are missing initially.So maybe the only issue is, that the documented
-f
option is missing?The text was updated successfully, but these errors were encountered: