ddfreyne changed the topic of #nanoc to: 3.6.7 (dec 9th) | web http://nanoc.ws/ | repo http://bit.ly/XE6e3G | issues http://bit.ly/VfXaSV | forum http://ho.io/n-discuss | irclog http://irclog.whitequark.org/nanoc
pavelkunc has quit [Quit: Leaving.]
tantignac has joined #nanoc
<tantignac> hello!
<tantignac> would someone know whether there is some kind of caching (and where?) for the nanoc compilation?
<bobthecow> tantignac: there's all sorts of caching, but, as long as nothing dumb happened, you shouldn't ever have to worry about it.
<bobthecow> why?
<tantignac> I got the "RuntimeError: Found 2 content …; expected 0 or 1" error because I had to file with same name but the extension
<tantignac> so I changed the name of one of the file
<tantignac> but I keep getting this error despite …
<tantignac> I removed the tmp, the crash log, I rebooted … I have the feeling nanoc still complains about a file that is no longer there
<tantignac> *two files (and not "to file")
<bobthecow> did you change the name of one of them to the same thing but a different extension again?
<bobthecow> what are the names of the files?
<bobthecow> foo.bar.ext has the same name as foo.ext
<tantignac> jquery.min.js and jquery.min.map
<bobthecow> yeah. they're both jquery.
<tantignac> I renamed the second as 0-jquery.min.map
<bobthecow> oh. that would fix it.
<bobthecow> hrm.
<bobthecow> you're sure it's not complaining about a different file this time?
<tantignac> (and I also activated "allow_periods_in_identifiers: true")
<bobthecow> ahh. with that you wouldn't need to change the name at all.
<tantignac> Humm I guess I would have to change it because they only differ with the final extension.
<tantignac> (as explained http://nanoc.ws/docs/troubleshooting/)
<bobthecow> oh, right. yeah, i was thinking of the standard jquery.min.js / jquery.js
<bobthecow> but this one's the map.
<tantignac> The error I get is: "RuntimeError: Found 2 content files for content/assets/bower_components/jquery/jquery.min; expected 0 or 1"
<tantignac> and when I ls my directory, I have only one
<tantignac> There is more: I moved the whole directory jquery and the error is still there. That's why I thought about a cache problem somewhere …
<bobthecow> i'm almost positive that wouldn't be affected by nanoc's cache.
<bobthecow> it caches metadata about items, not the items themselves.
<bobthecow> it has to read those off the disk every compile.
<bobthecow> so if the items are gone, they won't affect compilation.
<tantignac> ok, so it is something else
<bobthecow> the cache is all in tmp/*
<bobthecow> you can safely remove that entire directory.
<tantignac> I am going to write an issue on github, thank you for your help :)
<bobthecow> no problem.
<tantignac> good evening!
tantignac has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
prxq_ has joined #nanoc
prxq has quit [Ping timeout: 272 seconds]
jugglinmike has quit [Read error: Connection reset by peer]
alerante has quit [Remote host closed the connection]
alerante has joined #nanoc
alerante has quit [Remote host closed the connection]
alerante has joined #nanoc
alerante has quit [Ping timeout: 252 seconds]
<guardian> morning!
<guardian> ddfreyne: following up on yesterday's discussion, how does this make you feel? http://pastebin.com/35Z4yYBn
<guardian> ddfreyne: I couldn't find a way to stuff my cache into @compiler because it's frozen
<guardian> ddfreyne: somehow, maybe nanoc should provide a @site.user_data hash so that we can stuff things in it
relix has joined #nanoc
<ddfreyne> guardian: That code is not 100% correct because the only the first item that fills in the cache bust map will have a dependency
<ddfreyne> Others will just reuse the already computed data and not depend on @items[target] even though they should
<ddfreyne> guardian: cache_bust_map should probably be a class that implements #[] the way it currently does now, but *also* store the target item, and for every call to #[] create a dependency (using visit_start/visit_end)
<guardian> hmm
<guardian> I'll figure this out
<guardian> ddfreyne: does this http://pastebin.com/udhLeRnp solve the dependency issue?
<ddfreyne> guardian: No, because only compiled_content will create the dependency. You're almost there though... before or after the target.checksum call, you can add
<ddfreyne> Nanoc::NotificationCenter.post(:visit_started, target)
<ddfreyne> Nanoc::NotificationCenter.post(:visit_ended, target)
<ddfreyne> That will do the trick
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<ddfreyne> I hope to make that stuff easier later on :)
<guardian> Nice, I'll do it this way. Also why is @compiler frozen?
<ddfreyne> guardian: I don't think it should be, tbh
<ddfreyne> @site is frozen, but @compiler is not
<guardian> ddfreyne: well I couldn't attach my cache_bust_map to @compiler, while I can on @site
prxq_ is now known as prxq
relix has joined #nanoc
alerante has joined #nanoc
alerante has quit [Ping timeout: 252 seconds]
VitamineD has quit [Quit: VitamineD]
VitamineD has joined #nanoc
pavelkunc has joined #nanoc
<guardian> what's the use case for forcing encoding: 'UTF-8' in data source?
<guardian> and should it be 'UTF-8' or utf-8?
alerante has joined #nanoc
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
relix has joined #nanoc
jugglinmike has joined #nanoc
VitamineD has quit [Ping timeout: 245 seconds]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
alerante has quit []
VitamineD has joined #nanoc
pavelkunc has quit [Quit: Leaving.]
relix has joined #nanoc
pavelkunc has joined #nanoc
qrkourier has joined #nanoc
qrkourier is now known as kourier
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
relix has joined #nanoc
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<guardian> re
<guardian> quiet here
<bobthecow> some days.
cDlm has joined #nanoc
VitamineD has quit [Ping timeout: 252 seconds]
cDlm is now known as VitamineD
number-six has quit [Remote host closed the connection]
number-six has joined #nanoc
alerante has joined #nanoc
relix has joined #nanoc
pavelkunc has quit [Quit: Leaving.]