meeech / shopify.tmbundle

A bundle for interacting with Shopify Theme Assets.
http://meeech.github.com/shopify.tmbundle/
136 stars 31 forks source link

Upload Error: env: bash: No such file or directory #50

Closed seanpshaw closed 12 years ago

seanpshaw commented 12 years ago

I've recently installed the textmate bundle and was able to download my theme. However when I try and upload anything I get hit with this error:

env: bash: No such file or directory

Does anyone have any idea what it could be?

meeech commented 12 years ago

q: are you sure you are working from a project, and not from just a folder you dragged onto textmate?

seanpshaw commented 12 years ago

Yes I am working from a project. My entire project downloaded. Then I edited a file. When I tried to upload that's when I got the error.

On Feb 5, 2012, at 7:03 PM, mitchell amihodreply@reply.github.com wrote:

q: are you sure you are working from a project, and not from just a folder you dragged onto textmate?


Reply to this email directly or view it on GitHub: https://github.com/meeech/shopify.tmbundle/issues/50#issuecomment-3822411

meeech commented 12 years ago

Downloading and uploading are working a bit different. Can I ask what version of OS X you are running? Also, can you go into terminal and do:

/usr/bin/env bash

What happens? Do you still see "No such file or directory"?

seanpshaw commented 12 years ago

I'm running OS 10.6.8

In terminal this is where that command takes me: bash-3.2

On Sun, Feb 5, 2012 at 7:26 PM, mitchell amihod < reply@reply.github.com

wrote:

Downloading and uploading are working a bit different. Can I ask what version of OS X you are running? Also, can you go into terminal and do:

/usr/bin/env bash

What happens? Do you still see "No such file or directory"?


Reply to this email directly or view it on GitHub: https://github.com/meeech/shopify.tmbundle/issues/50#issuecomment-3822505

meeech commented 12 years ago

in textmate, if you go to PREFERENCES > ADVANCED > SHELL VARIABLES do you have PATH? Is it in checked state? What values you have there?

Never seen this issue before (or no one has reported it)

seanpshaw commented 12 years ago

Thanks for the help by the way.

/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:/usr/bin/:/Users/sshaw/.gem/ruby/1.8/bin:/usr/local/lib/node_modules/

That's my TM path.

On Sun, Feb 5, 2012 at 8:15 PM, mitchell amihod < reply@reply.github.com

wrote:

in textmate, if you go to PREFERENCES > ADVANCED > SHELL VARIABLES do you have PATH? Is it in checked state? What values you have there?

Never seen this issue before (or no one has reported it)


Reply to this email directly or view it on GitHub: https://github.com/meeech/shopify.tmbundle/issues/50#issuecomment-3822735

meeech commented 12 years ago

I'm at a loss. not even sure how to repro it. I'll try to make a debug tm command for you to run and we'll see if that gives any info to make it clearer

On 2012-02-05, at 11:23 PM, Sean Shawreply@reply.github.com wrote:

Thanks for the help by the way.

/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:/usr/bin/:/Users/sshaw/.gem/ruby/1.8/bin:/usr/local/lib/node_modules/

That's my TM path.

On Sun, Feb 5, 2012 at 8:15 PM, mitchell amihod < reply@reply.github.com

wrote:

in textmate, if you go to PREFERENCES > ADVANCED > SHELL VARIABLES do you have PATH? Is it in checked state? What values you have there?

Never seen this issue before (or no one has reported it)


Reply to this email directly or view it on GitHub: https://github.com/meeech/shopify.tmbundle/issues/50#issuecomment-3822735


Reply to this email directly or view it on GitHub: https://github.com/meeech/shopify.tmbundle/issues/50#issuecomment-3822776

seanpshaw commented 12 years ago

Thanks. I really appreciate it.

On Feb 5, 2012, at 8:46 PM, mitchell amihodreply@reply.github.com wrote:

I'm at a loss. not even sure how to repro it. I'll try to make a debug tm command for you to run and we'll see if that gives any info to make it clearer

On 2012-02-05, at 11:23 PM, Sean Shawreply@reply.github.com wrote:

Thanks for the help by the way.

/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:/usr/bin/:/Users/sshaw/.gem/ruby/1.8/bin:/usr/local/lib/node_modules/

That's my TM path.

On Sun, Feb 5, 2012 at 8:15 PM, mitchell amihod < reply@reply.github.com

wrote:

in textmate, if you go to PREFERENCES > ADVANCED > SHELL VARIABLES do you have PATH? Is it in checked state? What values you have there?

Never seen this issue before (or no one has reported it)


Reply to this email directly or view it on GitHub: https://github.com/meeech/shopify.tmbundle/issues/50#issuecomment-3822735


Reply to this email directly or view it on GitHub: https://github.com/meeech/shopify.tmbundle/issues/50#issuecomment-3822776


Reply to this email directly or view it on GitHub: https://github.com/meeech/shopify.tmbundle/issues/50#issuecomment-3822865

meeech commented 12 years ago

can you just try making your PATH

/usr/bin:/bin:/usr/sbin:/sbin

and see if that fixes it?

seanpshaw commented 12 years ago

thank you so much. That fixed it.

On Sun, Feb 5, 2012 at 9:13 PM, mitchell amihod < reply@reply.github.com

wrote:

can you just try making your PATH

/usr/bin:/bin:/usr/sbin:/sbin

and see if that fixes it?


Reply to this email directly or view it on GitHub: https://github.com/meeech/shopify.tmbundle/issues/50#issuecomment-3823003

meeech commented 12 years ago

great.

If you need to add back some of the other paths, try adding them at the end.

seanpshaw commented 12 years ago

that worked as well. thanks again

On Sun, Feb 5, 2012 at 9:34 PM, mitchell amihod < reply@reply.github.com

wrote:

great.

If you need to add back some of the other paths, try adding them at the end.


Reply to this email directly or view it on GitHub: https://github.com/meeech/shopify.tmbundle/issues/50#issuecomment-3823121

ibanez270dx commented 11 years ago

+1. None of the scripts using #!/usr/bin/env bash (in particular, remove trailing whitespace on save) were working from the textmate context. Started when I upgraded to Textmate 2 a few days ago (from github). Was annoying so I just uninstalled it and then downloaded the most recent version from the site directly. Worked fine until today after it ran the latest update, which re-introduced the issue.

Meeech's solution worked. Path by default was NOT checked and also had an incorrect value. Changed to "/usr/bin:/bin:/usr/sbin:/sbin" and enabled it. Now it works like a charm.

Thanks!