Skip to content
This repository has been archived by the owner on Apr 6, 2021. It is now read-only.

PHP formatter not working #526

Open
ghost opened this issue Jan 17, 2019 · 2 comments
Open

PHP formatter not working #526

ghost opened this issue Jan 17, 2019 · 2 comments

Comments

@ghost
Copy link

ghost commented Jan 17, 2019

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
@MichaelCharles
Copy link

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.

@MichaelCharles
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant