-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Seeing error: "Paths from configuration file have been overridden by paths provided as command arguments." #191
Comments
Note, I found this which seems like it might be related: https://stackoverflow.com/a/50908446/1944
|
it's a bug, when your file content ends with and the |
I think I found part of the problem with the formatter. I have Intelephense set as the default formatter. If I change the default to be These are my workspace settings: {
"editor.formatOnSave": true,
"php-cs-fixer.allowRisky": true,
"php-cs-fixer.formatHtml": true,
"php-cs-fixer.onsave": true,
"[php]": {
"editor.defaultFormatter": "junstyle.php-cs-fixer"
},
} However, formatting HTML does not seem to work at all. Here's a video to show what I mean: |
I'm just getting started with PHP CS Fixer and this extension - thanks for all your efforts on it @junstyle!
I'm having a strange problem. I'm on Windows 10 with PHP 8.1.11 installed. VS Code 1.72.2.
PHP CS Fixer is installed globally via Composer:
The plugin seems to work fine if there are changes to make. The
fix
,format
anddiff
commands all work as expected.Here is an example output (I'll copy my
.php-cs-fixer.dist.php
file in at the bottom here):However, if there are no changes to make when I run one of the php-cs-fixer commands, there seems to be an error. See the last two lines here:
This doesn't cause problems for the
fix
command - it even works fine when I have the fixer run on save. Thediff
command doesn't seem to show the error at all. So the problem goes largely unnoticed.Where this issue is more of an actual problem is when using the formatter. VS Code shows me the following error dialog:
Here is the output log:
And here is a screenshot of my devtools log:
Finally, here's the content of my
.php-cs-fixer.dist.php
(it's just copied in from the Kirby repo - see here):The text was updated successfully, but these errors were encountered: