Theme upload, watch and replace error #20

Closed
christophergregory opened this Issue Oct 25, 2012 · 6 comments

Projects

None yet

4 participants

@christophergregory

I'm receiving the following error when I attempt to replace my assets:

I am using ruby-1.9.3-p194 [ x86_64 ]
and I have gems version 1.8.24

I have also reinstalled shopify_theme with no luck.

Chriss-MacBook-Air:shopify cg$ theme replace
Are you sure you want to completely replace your shop theme assets? This is not undoable.
Continue? (Y/N): Y
Removed: assets/404-dash.png
Removed: assets/add-to-cart.png
Removed: assets/Arial Bold Italic.ttf
Removed: assets/Arial Bold.ttf
Removed: assets/Arial Italic.ttf
Removed: assets/Arial.ttf
Removed: assets/availability-full.png
Removed: assets/availability-low.png
Removed: assets/availability-out.png
Removed: assets/availability-plenty.png
Removed: assets/back.png
Removed: assets/bakers-club-modal.png
Removed: assets/bakers_club.png
Removed: assets/bakers_club_social.png
Removed: assets/black-arrow.png
Removed: assets/blockquote-arrow.png
Removed: assets/blockquote-down-arrow.png
Removed: assets/brand.png
Removed: assets/breebold-webfont.eot
Removed: assets/breebold-webfont.svg
Removed: assets/breebold-webfont.ttf
Removed: assets/breebold-webfont.woff
Removed: assets/carousel-pagination.png
Removed: assets/cart-arrow.png
Removed: assets/cart-banner.png
Removed: assets/cart-dropdown-1.png
Removed: assets/cart-dropdown-2.png
Removed: assets/cart-full.png
Removed: assets/cart-refresh.png
Removed: assets/cart-remove.png
Removed: assets/cart-sample-1.png
Removed: assets/cart-sample-2.png
Removed: assets/cart-sample-3.png
Removed: assets/cart_empty.png
Removed: assets/close-cart.png
Removed: assets/close.png
Removed: assets/collapse-icon.png
Removed: assets/divider.png
Removed: assets/down-arrow.png
Removed: assets/expand-icon.png
Removed: assets/facebook_social.png
Removed: assets/footer-social.png
Removed: assets/generic-image-1.png
Removed: assets/instagram_social.png
Removed: assets/johnny_logo.png
Removed: assets/mailing_list_social.png
Removed: assets/main_logo.png
Removed: assets/order-banner.png
Removed: assets/price-container.png
Removed: assets/sample1.png
Removed: assets/sample2.png
/Users/cg/.rvm/gems/ruby-1.9.3-p194/gems/shopify_theme-0.0.7/lib/shopify_theme/cli.rb:143:in errors_from_response': undefined methodvalues' for nil:NilClass (NoMethodError)
from /Users/cg/.rvm/gems/ruby-1.9.3-p194/gems/shopify_theme-0.0.7/lib/shopify_theme/cli.rb:138:in delete_asset' from /Users/cg/.rvm/gems/ruby-1.9.3-p194/gems/shopify_theme-0.0.7/lib/shopify_theme/cli.rb:56:inblock in replace'
from /Users/cg/.rvm/gems/ruby-1.9.3-p194/gems/shopify_theme-0.0.7/lib/shopify_theme/cli.rb:55:in each' from /Users/cg/.rvm/gems/ruby-1.9.3-p194/gems/shopify_theme-0.0.7/lib/shopify_theme/cli.rb:55:inreplace'
from /Users/cg/.rvm/gems/ruby-1.9.3-p194/gems/thor-0.16.0/lib/thor/task.rb:27:in run' from /Users/cg/.rvm/gems/ruby-1.9.3-p194/gems/thor-0.16.0/lib/thor/invocation.rb:120:ininvoke_task'
from /Users/cg/.rvm/gems/ruby-1.9.3-p194/gems/thor-0.16.0/lib/thor.rb:275:in dispatch' from /Users/cg/.rvm/gems/ruby-1.9.3-p194/gems/thor-0.16.0/lib/thor/base.rb:425:instart'
from /Users/cg/.rvm/gems/ruby-1.9.3-p194/gems/shopify_theme-0.0.7/bin/theme:24:in <top (required)>' from /Users/cg/.rvm/gems/ruby-1.9.3-p194/bin/theme:19:inload'
from /Users/cg/.rvm/gems/ruby-1.9.3-p194/bin/theme:19:in <main>' from /Users/cg/.rvm/gems/ruby-1.9.3-p194/bin/ruby_noexec_wrapper:14:ineval'
from /Users/cg/.rvm/gems/ruby-1.9.3-p194/bin/ruby_noexec_wrapper:14:in `

'

@hsleewis
Contributor

Yeah, there is a bug with the removing of assets, Will check it in the morning.

@christophergregory

Awesome, it also seems to be happening on uploading assets

(jcc)Chriss-MacBook-Air:shopify cg$ theme upload
Uploaded: assets/404-dash.png
Uploaded: assets/add-to-cart.png
Uploaded: assets/availability-full.png
/Users/cg/.rvm/gems/ruby-1.9.3-p194/gems/shopify_theme-0.0.7/lib/shopify_theme/cli.rb:143:in `errors_from_response':          undefined method `values' for nil:NilClass (NoMethodError)
    from /Users/cg/.rvm/gems/ruby-1.9.3-p194/gems/shopify_theme-0.0.7/lib/shopify_theme/cli.rb:130:in `send_asset'
    from /Users/cg/.rvm/gems/ruby-1.9.3-p194/gems/shopify_theme-0.0.7/lib/shopify_theme/cli.rb:44:in `block in upload'
    from /Users/cg/.rvm/gems/ruby-1.9.3-p194/gems/shopify_theme-0.0.7/lib/shopify_theme/cli.rb:43:in `each'
    from /Users/cg/.rvm/gems/ruby-1.9.3-p194/gems/shopify_theme-0.0.7/lib/shopify_theme/cli.rb:43:in `upload'
    from /Users/cg/.rvm/gems/ruby-1.9.3-p194/gems/thor-0.16.0/lib/thor/task.rb:27:in `run'
    from /Users/cg/.rvm/gems/ruby-1.9.3-p194/gems/thor-0.16.0/lib/thor/invocation.rb:120:in `invoke_task'
    from /Users/cg/.rvm/gems/ruby-1.9.3-p194/gems/thor-0.16.0/lib/thor.rb:275:in `dispatch'
    from /Users/cg/.rvm/gems/ruby-1.9.3-p194/gems/thor-0.16.0/lib/thor/base.rb:425:in `start'
    from /Users/cg/.rvm/gems/ruby-1.9.3-p194/gems/shopify_theme-0.0.7/bin/theme:24:in `<top (required)>'
    from /Users/cg/.rvm/gems/ruby-1.9.3-p194/bin/theme:19:in `load'
    from /Users/cg/.rvm/gems/ruby-1.9.3-p194/bin/theme:19:in `<main>'
    from /Users/cg/.rvm/gems/ruby-1.9.3-p194/bin/ruby_noexec_wrapper:14:in `eval'
    from /Users/cg/.rvm/gems/ruby-1.9.3-p194/bin/ruby_noexec_wrapper:14:in `<main>'
@franklinyang

Was this resolved? I can't seem to upload any assets

@jduff
Member
jduff commented Mar 20, 2013

I cannot reproduce this locally, I think it has to do with the type of file you have and are trying to upload. Possibly has to do with the json library and how it is decoding the data?

Can you isolate the failing file and upload that somewhere and I can try it on my machine?

@franklinyang

Thanks John, it was a trivial mistake that involved a misspecified URL.

I'll remove my comment :).

Best,
Franklin

Sent from my iPhone

On Mar 20, 2013, at 3:32 PM, John Duff notifications@github.com wrote:

I cannot reproduce this locally, I think it has to do with the type of file you have and are trying to upload. Possibly has to do with the json library and how it is decoding the data?

Can you isolate the failing file and upload that somewhere and I can try it on my machine?


Reply to this email directly or view it on GitHub.

@jduff
Member
jduff commented May 14, 2013

I believe this was fixed by #25

@jduff jduff closed this May 14, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment