Skip to content

artisan commands not working #27

@bvangraafeiland

Description

@bvangraafeiland

Jeffrey's generator commands work fine with this plugin, however artisan does not. It does say command executed successfully, but nothing happens. I doubt this has something to do with the php setting because the others do work fine (I set php_path to just "php" since its in my Path env var). I'm running Wamp on Win7 64 bit.

On a side note: when generating a migration, it says the generation failed, while it did not. I think this is because of the optimized class loader messages that occur, and the plugin thinks they are error messages.
edit: this is solved by pull request #25 . However, in the case of migrations it fails to open the file, because it gets the file name wrong (the migrations get the date/time in their file name). The vanilla artisan issue remains though.

edit 2:
This problem seems related to whitespace in the project directory path. Replace line 82 with self.args = [self.php_path, os.path.join(self.PROJECT_PATH, 'artisan'), command] to fix this. However, then another problem arises: when executing the routes command, the php command window stays open (it opens then closes quickly with other commands that I tested), and has to be manually closed, after which the routes are displayed just fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions