Giter VIP home page Giter VIP logo

Comments (7)

phinze avatar phinze commented on May 14, 2024

Sorry you hit this - it looks like a require order issue - let me work on repro and I'll get back to you.

from homebrew-cask.

phinze avatar phinze commented on May 14, 2024

okay I cut v0.5.1 with a fix for this. let me know if it works.

thanks for reporting!! ❤️

from homebrew-cask.

quanganhdo avatar quanganhdo commented on May 14, 2024

Not sure if it's related, but after upgrading to 0.5.1 and running brew cask without problem, I tried to create a calibre cask with this info:

class Calibre < Cask
url 'http://status.calibre-ebook.com/dist/osx32'
homepage 'http://calibre-ebook.com/'
version 'latest'
end

Invoking brew cask install calibre downloads the file correctly, but chokes with this error:

Error: undefined method new' for nil:NilClass Please report this bug: https://github.com/mxcl/homebrew/wiki/troubleshooting /usr/local/Cellar/brew-cask/0.5.1/rubylib/plist/parser.rb:44:intag_start'
/usr/local/Cellar/brew-cask/0.5.1/rubylib/plist/parser.rb:95:in parse' /usr/local/Cellar/brew-cask/0.5.1/rubylib/plist/parser.rb:28:inparse_xml'
/usr/local/Cellar/brew-cask/0.5.1/rubylib/cask/installer.rb:28:in _with_extracted_mountpoints' /usr/local/Cellar/brew-cask/0.5.1/rubylib/cask/installer.rb:26:inopen'
/usr/local/Cellar/brew-cask/0.5.1/rubylib/cask/installer.rb:26:in _with_extracted_mountpoints' /usr/local/Cellar/brew-cask/0.5.1/rubylib/cask/installer.rb:10:ininstall'
/usr/local/Cellar/brew-cask/0.5.1/rubylib/cask/cli/install.rb:6:in run' /usr/local/Cellar/brew-cask/0.5.1/rubylib/cask/cli/install.rb:3:ineach'
/usr/local/Cellar/brew-cask/0.5.1/rubylib/cask/cli/install.rb:3:in run' /usr/local/Cellar/brew-cask/0.5.1/rubylib/cask/cli.rb:17:inprocess'
/usr/local/bin/brew-cask.rb:6
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in gem_original_require' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:inrequire'
/usr/local/bin/brew:51:in `require?'
/usr/local/bin/brew:91

from homebrew-cask.

phinze avatar phinze commented on May 14, 2024

Ack! I'm really cramping your style today! Bear with me. 🐻

Looking at this now...

from homebrew-cask.

phinze avatar phinze commented on May 14, 2024

Well I did find a completely separate problem with brew cask list, but this calibre problem seems unrelated.

It looks like a browser is okay downloading from the URL you provide, but curl has troubles.

Check it out:

$ curl -L -I http://status.calibre-ebook.com/dist/osx32                 
HTTP/1.1 302 FOUND
Date: Tue, 20 Nov 2012 16:23:48 GMT
Server: Apache
Location: http://calibre-ebook.googlecode.com/files/calibre-0.9.6.dmg
Content-Type: text/html; charset=utf-8

HTTP/1.1 404 Not Found
Content-Type: text/html; charset=UTF-8
Set-Cookie: PREF=ID=8538d42fb7e03085:TM=1353428628:LM=1353428628:S=9e4KbXU3hxk3WzFr; expires=Thu, 20-Nov-2014 16:23:48 GMT; path=/; domain=calibre-ebook.googlecode.com
X-Content-Type-Options: nosniff
Date: Tue, 20 Nov 2012 16:23:48 GMT
Server: codesite_downloads
Content-Length: 954
X-XSS-Protection: 1; mode=block
X-Frame-Options: SAMEORIGIN

from homebrew-cask.

phinze avatar phinze commented on May 14, 2024

Actually looking at this more closely the URL is just fine. Looks like it's something funky with the Calibre dmg specifically. Spinning up a separate issue to track this.

Just cut v0.5.2 with a fix for brew cask list.

@quanganhdo - Can you verify that with v0.5.2 everything besides Calibre is working? We'll work on that specific problem in the other issue.

from homebrew-cask.

quanganhdo avatar quanganhdo commented on May 14, 2024

v0.5.2 seems to work fine with other things. I'll comment on the installation issue on that separate ticket.

from homebrew-cask.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.