This tells drush that the coder module needs to be enabled in order to run the command.

CommentFileSizeAuthor
coder_drush_dependencies.patch580 bytesgrendzy

Comments

dugh’s picture

Enabling the coder module doesn't make the drush error go away

lambic’s picture

I encountered this today. I removed the call to t() to get drush working again (the patch didn't help).

Obviously removing the t() call isn't ideal, but I don't know how to fix it properly.

john morahan’s picture

Status: Needs review » Reviewed & tested by the community

That t() error is due to #455722: use of t() in coder.drush.inc line 10 should be replaced with dt() which is already fixed in dev.

This patch fixes a different bug which still exists even in dev: if you run 'drush coder' when coder is disabled, you get a fatal error about an undefined function, instead of a helpful drush message telling you to enable the module first.

Before:

Fatal error: Call to undefined function _coder_get_default_settings() in /home/john/public_html/coder/sites/all/modules/coder/coder.drush.inc on line 33

After:

Command coder needs the following modules installed/enabled to run:  [error]
coder.
The command 'drush coder' could not be executed.                     [error]
stella’s picture

Status: Reviewed & tested by the community » Fixed

Committed to both 6.x-2.x-dev and 7.x-1.x-dev, thanks!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.