Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

No such file or directory error when creating js file #13

ghost opened this Issue Feb 16, 2012 · 1 comment


None yet
1 participant

ghost commented Feb 16, 2012

I'm getting this every time I run smart_asset. It's been this way for about 3 months now and I figured I'd create an issue:

$ bundle exec smart_asset

Creating /Users/benjohnson/Dropbox/Code/Ruby/conciergeliveapp.com/public/javascripts/packaged/cad42b92_all.js...
/Users/benjohnson/.rvm/gems/ruby-1.9.3-p0/gems/smart_asset-0.5.9/lib/smart_asset.rb:95:in ``': No such file or directory - uglifyjs --output /Users/benjohnson/Dropbox/Code/Ruby/conciergeliveapp.com/public/javascripts/packaged/cad42b92_all.js -nc /Users/benjohnson/Dropbox/Code/Ruby/conciergeliveapp.com/public/javascripts/packaged/tmp.js (Errno::ENOENT)
    from /Users/benjohnson/.rvm/gems/ruby-1.9.3-p0/gems/smart_asset-0.5.9/lib/smart_asset.rb:95:in `block in compress'
    from /Users/benjohnson/.rvm/gems/ruby-1.9.3-p0/gems/smart_asset-0.5.9/lib/smart_asset.rb:33:in `each'
    from /Users/benjohnson/.rvm/gems/ruby-1.9.3-p0/gems/smart_asset-0.5.9/lib/smart_asset.rb:33:in `compress'
    from /Users/benjohnson/.rvm/gems/ruby-1.9.3-p0/gems/smart_asset-0.5.9/lib/smart_asset.rb:20:in `binary'
    from /Users/benjohnson/.rvm/gems/ruby-1.9.3-p0/gems/smart_asset-0.5.9/bin/smart_asset:5:in `<top (required)>'
    from /Users/benjohnson/.rvm/gems/ruby-1.9.3-p0/bin/smart_asset:19:in `load'
    from /Users/benjohnson/.rvm/gems/ruby-1.9.3-p0/bin/smart_asset:19:in `<main>'

Also, it leaves the tmp.js file in the directory. I have to manually rename the file and delete the old one. Any ideas?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment