PHP formatter not working
opened this issue · comments
Deleted user commented
With the following configuration for php formatter:
"php": {
"@completion": true,
"@formatOnSave": true,
"@formatter": "/usr/local/bin/php-cs-fixer fix \"$file\" --rules=@Symfony,@PSR2",
"@path": ".:./vendor"
},
I confirmed that the php-cs-fixer runs:
docker@e5bbf908f4c3:/home/verbral/drupal-project$ /usr/local/bin/php-cs-fixer fix /home/verbral/drupal-project/src/TaskRunner/Commands/DrupalCommands.php --rules=@Symfony,@PSR2
Loaded config default.
1) src/TaskRunner/Commands/DrupalCommands.php
Fixed all files in 0.118 seconds, 12.000 MB memory used
I'm still getting the notification that php is not supported yet:
https://github.com/c9/core/blob/master/plugins/c9.ide.format/format.js#L88-L93
Does the !emit
mean that the file is not recognized as php maybe?
Error
This code could not be beautified
"php" is not supported yet
Michael Charles Aubrey commented
I'm having the same problem. I'm only have the problem with self-hosted Cloud9. If I use Cloud9 through AWS it works fine.
Michael Charles Aubrey commented
I've gone ahead and made an issue on the plugin itself in case that's where the attention is needed: c9/c9.ide.format#3