tusharjoshi/netbeans-php-drupal

Cant get drush running

Closed this issue · 7 comments

Hey!
and thanks for this awesome tool! It has revolutionized my workdays!

Only thing not working is Drush integration.

I am using Tool version 2.0.8 & Netbeans 2.08 (Ubuntu 11.10)
I get an error that drush is not found, first at startup, then every time I start up Netbeans.
. Drush's name in my install is simply drush.
Catalog is st to /usr/bin, and /usr/bin/drush has chmod 777.
Also tried $HOME/bin/drush, but that didnt work either.

If I get this working, it would be supergreat!

By the way, Hollyit is down:)

Thanks for the headsup on my site!

Did you set the Drush path in Tools->Options->Php->Drupal Location of Drush field?

Greetings, thanks for the response! Yes, I did.

Ive also played around a little with perms, running netbeans as root etc.
But it seems that netbeans cannot find it, even if its there, and its working perfectly elsewhere.

Correct me if(where) Im wrong:

  • The path is to the executable "drush"'s folder?
  • The drush executable that its looking for is not called "drush.exe", or similar?
  • The path should not end with a slash?
  • So when /usr/bin/drush works in terminal, setting "Location of Drush field" to /usr/bin should do it?

It simply says invalid drush path under the field, no matter what.
Its really weird, have googled me blind trying to figure it out.

You need to supply the actual folder Drush is in. /usr/bin wouldn't be that, but rather a link to the drush shell script located inside of the folder. If you have locate installed, you can do a 'locate drush.php' to find the folder, as drush.php is what the plugin checks for to see if you've selected the proper folder or not.

There, got it working! Thanks for the help!

I think this needs to be documented in the readme

Thanks. I added a note about it to the top of the readme file.

Awsome. Thanks.