documentcloud / closure-compiler

A Ruby Wrapper for the Google Closure Compiler

Home Page:http://github.com/documentcloud/closure-compiler

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Popen.popen returns nil

cyjake opened this issue · comments

I was stumped by this exception when trying to compile a dynamic js string.

undefined method `success?' for nil:NilClass

Turns out it was status.success? failed at line 42 of compiler.rb. The status is nil. The compile process itself succeed. When I change the condition to !status || status.success?, the result shows up.

My setup is Windows 7, Ruby 1.8.7 and Rails 3. I am not familiar with commands and threads (shame). Is this a bug or just my own problem?