sproutcore / abbot

SproutCore Build Tools [deprecated]
http://www.sproutcore.com
88 stars 44 forks source link

Chance fails on Windows with deep paths #80

Open mitchless opened 12 years ago

mitchless commented 12 years ago

Chance's temp file generation will fail when using deep paths on Windows. The NTFS path limit is 256 characters.

The affected file is vendor/chance/lib/chance/instance.rb, lines 448:455.

Is there a reason to preserve the full path, or can we hash that at least?

mitchless commented 12 years ago

@ialexi Git lists you as having removed the md5; can I get your input on this? Can we hash the path and leave the file name?

ialexi commented 12 years ago

Hm... I wonder if we could get a little more of the path in there. Perhaps we can use part of the MD5 + the relative path? I can't remember how the code works atm.

Could also switch to Sass importers, and then none of this would be an issue.