realm / jazzy

Soulful docs for Swift & Objective-C
https://realm.io
MIT License
7.35k stars 413 forks source link

Can't install Jazzi from Gemfile #438

Closed artemsamoylov closed 8 years ago

artemsamoylov commented 8 years ago

Hi everyone! I use Jazzi with Travis-ci(https://travis-ci.org) for auto generation docs. When i use "gem install jazzi", everything is ok. But if I install Jazzi from Gemfile, i get such fail:

Using jazzy 0.4.1 from git@github.com:realm/jazzy.git (at master)
Installing cert 1.2.7

Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

    /Users/travis/.rvm/rubies/ruby-2.0.0-p643/bin/ruby -rubygems /Users/travis/.rvm/gems/ruby-2.0.0-p643/gems/rake-10.4.2/bin/rake RUBYARCHDIR=/Users/travis/.rvm/gems/ruby-2.0.0-p643/bundler/gems/extensions/x86_64-darwin-14/2.0.0-static/jazzy-4f4235f1e80c RUBYLIBDIR=/Users/travis/.rvm/gems/ruby-2.0.0-p643/bundler/gems/extensions/x86_64-darwin-14/2.0.0-static/jazzy-4f4235f1e80c
rake aborted!
Errno::EEXIST: File exists - (A, Versions/Current)
/Users/travis/.rvm/gems/ruby-2.0.0-p643/bundler/gems/jazzy-4f4235f1e80c/lib/jazzy/SourceKitten/Rakefile:10:in `symlink'
/Users/travis/.rvm/gems/ruby-2.0.0-p643/bundler/gems/jazzy-4f4235f1e80c/lib/jazzy/SourceKitten/Rakefile:10:in `block (3 levels) in <top (required)>'
/Users/travis/.rvm/gems/ruby-2.0.0-p643/bundler/gems/jazzy-4f4235f1e80c/lib/jazzy/SourceKitten/Rakefile:6:in `chdir'
/Users/travis/.rvm/gems/ruby-2.0.0-p643/bundler/gems/jazzy-4f4235f1e80c/lib/jazzy/SourceKitten/Rakefile:6:in `block (2 levels) in <top (required)>'
/Users/travis/.rvm/gems/ruby-2.0.0-p643/bundler/gems/jazzy-4f4235f1e80c/lib/jazzy/SourceKitten/Rakefile:5:in `each'
/Users/travis/.rvm/gems/ruby-2.0.0-p643/bundler/gems/jazzy-4f4235f1e80c/lib/jazzy/SourceKitten/Rakefile:5:in `block in <top (required)>'
Tasks: TOP => default => prepare
(See full trace by running task with --trace)

rake failed, exit code 1

Gem files will remain installed in /Users/travis/.rvm/gems/ruby-2.0.0-p643/bundler/gems/jazzy-4f4235f1e80c for inspection.
Results logged to /Users/travis/.rvm/gems/ruby-2.0.0-p643/bundler/gems/extensions/x86_64-darwin-14/2.0.0-static/jazzy-4f4235f1e80c/gem_make.out

What can be wrong?

segiddins commented 8 years ago

What version of rubygems do you have installed?

artemsamoylov commented 8 years ago

@segiddins My environment: gem --version 2.4.6 ruby 2.0.0p643 (2015-02-25 revision 49749) [x86_64-darwin14.1.0] rvm 1.26.11 Bundler version 1.10.6

jpsim commented 8 years ago

@artemsamoylov do you still need help with this?

zwaldowski commented 8 years ago

This still seems to be the case. Checking out from Git has the symlinks, which cause this Rakefile to fail.

jpsim commented 8 years ago

@meleyal I see you made a PR in PSPDFKit-labs/jazzy#1 which presumably resolved this. Have you had any issues since merging that in your fork? This is something we could consider doing here too.

meleyal commented 8 years ago

@jpsim no issues so far, I'd be happy to submit a PR for this.

jpsim commented 8 years ago

Yes please!

meleyal commented 8 years ago

PR #595