Closed AgtLucas closed 10 years ago
@AgtLucas Could you puts
the logical asset being looked up? FYI, that's one of the lines in your backtrace. Once you've identified the failing asset, would you mind creating a Rails test app that I can clone?
@carsomyr Sorry dude, but I do not understand what do you mean with puts the logical asset being looked up
. :confused: Could you explain a little more for me?
I'll provide the repo so you can clone it. :)
Thanks!
@AgtLucas I meant edit the file linked to. You'll be able to see it in your backtrace. Add a puts
line before it and print out the logical path being looked up.
Also try clearing your tmp
directory.
@carsomyr Ok!
So, first of all, I've cleaned tmp
but no joy.
But here's the odd thing: I guess the problem it's with some asset, I'm using Rails Assets in this project, but I'm not using in this demo project, which work well with 0.9.4
.
So, adding a puts
in that line and then ran rake I was able to see the ScrollReveal.js on the terminal. So, I've removed rails-assets-scrollReveal.js
from Gemfile
, run bundle update
and then shot the rake command, now I was able to see which I guess it's jQuery library, not quite sure because I can't scroll too much the logs...
Almost there, I guess...
Thanks!
@carsomyr
Found it!
I've removed everything about Rails Assets and 0.9.4 works as a charm.
But now, how can I use 0.9.4 with Rails Assets? Should I stick with 0.9.3?
Thanks!
@AgtLucas Could you insert a puts
here and tell me what the local variable pathname
is (for the failing rails-asset
-created asset, of course)?
@AgtLucas Also, I doubt that rails-assets
is the problem here. You can install all the rails-assets
-prefixed gems you want, and it shouldn't affect compilation. Am I wrong about this? Can you isolate the problem to just whether the Gemfile
contains rails-assets-your_gem_name
?
@carsomyr I guess that rails-assets
is really the problem, because I've removed all the assets installed through Rails Assets and 0.9.4
works very well.
I'll try what you've said about Sprockets.
Thanks!
@AgtLucas Just to be clear, it's the mere inclusion of one of rails-asset
's autogenerated gems in the Gemfile
that causes the problem?
@carsomyr Yep and whatever the Gem.
@AgtLucas That's strange, because I read rails-assets
's source code. The Rails engine portion of autogenerated gems are blank, and that means there aren't strange manipulations. I also tried installing Angular.js as an autogenerated gem, and precompilation went fine.
Do add that puts
to Sprockets when you get a chance. You'll be able to see it print out the pathname that it supposedly think exists (but doesn't, causing the mtime
on NilClass
problem).
@carsomyr That's really strange! :worried: Are you using Rails 4.1.6 too?
@AgtLucas I'd also recommend updating Sprockets to 2.12.2
.
@carsomyr Ahhhhh, when I read that, I really tought that will solve the problem, but no joy, unfortunately. :confused:
Here's the test app: https://github.com/agtlucas/soloh
@AgtLucas Could you get your soloh
example project to fail? That would go a long ways towards solving your issue.
@AgtLucas I've found the problem, and it's on your side. If you provide a bower.json
file in the retreat-hell
gem, it should point to a valid CSS file. As it turns out, hell.css
doesn't exist. I'm closing this issue for now. Let me know if it's something else.
@carsomyr Ah, shame of me, now it's working! :)
Thank you so much!
Howdy guys,
I'm struggling with
rake assets:precompile
using requirejs-rails 0.9.4, but with 0.9.3 version everything works fine.My setup:
Error's log:
Also, I've forked this Gem and updated RequireJS version to the last one (2.1.15), but the problem persist. I really wanna use the last version of this Gem instead of 0.9.3 version.
Could this be a problem with RequireJS?
Any ideas?
Thanks!