matthodan / jekyll-asset-pipeline

Powerful asset pipeline for Jekyll that collects, converts and compresses JavaScript and CSS assets
http://www.matthodan.com/2012/11/22/jekyll-asset-pipeline.html
MIT License
364 stars 31 forks source link

Error on windows #16

Closed RichardBray closed 11 years ago

RichardBray commented 11 years ago

Hi guys,

When I try using jekyll asset pipeline with rails installer on windows I keep getting this error, any ideas?

Asset Pipeline: Processing 'css_asset_tag' manifest 'global' Asset Pipeline: Failed to compress 'global-6014501a2a1982eae283555474c690e6.css' with 'JekyllAssetPipeline::CssCompresso r'. Liquid Exception: Invalid argument - java -jar C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/yui-compressor-0.9.6 /lib/yui/../yuicompressor-2.4.4.jar --type css --charset utf-8 in default C:/RailsInstaller/Ruby1.9.3/lib/ruby/1.9.1/open3.rb:202:in spawn' C:/RailsInstaller/Ruby1.9.3/lib/ruby/1.9.1/open3.rb:202:inpopen_run' C:/RailsInstaller/Ruby1.9.3/lib/ruby/1.9.1/open3.rb:90:in popen3' C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/win32-open3-19-0.0.2/lib/win32/open3.rb:5:inpopen4' C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/POpen4-0.1.4/lib/popen4.rb:48:in popen4' C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/yui-compressor-0.9.6/lib/yui/compressor.rb:68:inblock in compress ' C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/yui-compressor-0.9.6/lib/yui/compressor.rb:117:in streamify' C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/yui-compressor-0.9.6/lib/yui/compressor.rb:66:incompress' C:/Users/Rich/Documents/GitHub/Muffin/chip/_plugins/jekyll_asset_pipeline.rb:11:in compress' C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/jekyll-asset-pipeline-0.1.6/lib/jekyll_asset_pipeline/compressor.rb :7:ininitialize' C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/jekyll-asset-pipeline-0.1.6/lib/jekyll_asset_pipeline/pipeline.rb:1 76:in new' C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/jekyll-asset-pipeline-0.1.6/lib/jekyll_asset_pipeline/pipeline.rb:1 76:inblock in compress' C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/jekyll-asset-pipeline-0.1.6/lib/jekyll_asset_pipeline/pipeline.rb:1 68:in each' C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/jekyll-asset-pipeline-0.1.6/lib/jekyll_asset_pipeline/pipeline.rb:1 68:incompress' C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/jekyll-asset-pipeline-0.1.6/lib/jekyll_asset_pipeline/pipeline.rb:1 02:in process' C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/jekyll-asset-pipeline-0.1.6/lib/jekyll_asset_pipeline/pipeline.rb:9 0:ininitialize' C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/jekyll-asset-pipeline-0.1.6/lib/jekyll_asset_pipeline/pipeline.rb:3 1:in new' C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/jekyll-asset-pipeline-0.1.6/lib/jekyll_asset_pipeline/pipeline.rb:3 1:inrun' C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/jekyll-asset-pipeline-0.1.6/lib/jekyll_asset_pipeline/extensions/li quid/liquid_block_extensions.rb:18:in render' C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/liquid-2.4.1/lib/liquid/block.rb:94:inblock in render_all' C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/liquid-2.4.1/lib/liquid/block.rb:92:in collect' C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/liquid-2.4.1/lib/liquid/block.rb:92:inrender_all' C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/liquid-2.4.1/lib/liquid/block.rb:82:in render' C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/liquid-2.4.1/lib/liquid/template.rb:124:inrender' C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/liquid-2.4.1/lib/liquid/template.rb:132:in render!' C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/jekyll-0.12.0/lib/jekyll/convertible.rb:101:indo_layout' C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/jekyll-0.12.0/lib/jekyll/page.rb:100:in render' C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/jekyll-0.12.0/lib/jekyll/site.rb:204:inblock in render' C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/jekyll-0.12.0/lib/jekyll/site.rb:203:in each' C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/jekyll-0.12.0/lib/jekyll/site.rb:203:inrender' C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/jekyll-0.12.0/lib/jekyll/site.rb:41:in process' C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/jekyll-0.12.0/bin/jekyll:253:inblock in <top (required)>' C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/directory_watcher-1.4.1/lib/directory_watcher.rb:580:in call' C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/directory_watcher-1.4.1/lib/directory_watcher.rb:580:inblock in n otify_observers' C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/directory_watcher-1.4.1/lib/directory_watcher.rb:579:in each' C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/directory_watcher-1.4.1/lib/directory_watcher.rb:579:innotify_obs ervers' C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/directory_watcher-1.4.1/lib/directory_watcher.rb:334:in block in i nitialize' C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/directory_watcher-1.4.1/lib/directory_watcher/scanner.rb:224:inca ll' C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/directory_watcher-1.4.1/lib/directory_watcher/scanner.rb:224:in no tify' C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/directory_watcher-1.4.1/lib/directory_watcher/scanner.rb:102:inru n_once' C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/directory_watcher-1.4.1/lib/directory_watcher/scanner.rb:150:in ru n_loop' C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/directory_watcher-1.4.1/lib/directory_watcher/scanner.rb:45:inblo ck in start' Build Failed

matthodan commented 11 years ago

It looks like the error is being caused by the YUI Compressor. Have you tried to use YUI outside of Jekyll Asset Pipeline? If you get the error w/o Jekyll Asset Pipeline, you should submit an issue on the YUI Github.