edgecase/vim-config

rake fails with "can't convert Hash into String"

joshuatbrown opened this issue · 4 comments

I cloned the project, then switched to that directory. When I run rake, I get the following:

rake aborted!
can't convert Hash into String

Tasks: TOP => default
(See full trace by running task with --trace)

I'm using rake 0.9.2 and ruby 1.9.2.p180. What am I doing wrong?

Could you run rake --trace and provide the stack trace info?

You bet! Here it is:

** Invoke default (first_time)
** Execute default
rake aborted!
can't convert Hash into String
/Users/josh/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/fileutils.rb:1432:in join' /Users/josh/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/fileutils.rb:1432:inblock in fu_each_src_dest0'
/Users/josh/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/fileutils.rb:1430:in each' /Users/josh/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/fileutils.rb:1430:infu_each_src_dest0'
/Users/josh/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/fileutils.rb:345:in ln_s' /Users/josh/.rvm/gems/ruby-1.9.2-p180/gems/rake-0.9.2/lib/rake/file_utils_ext.rb:36:insymlink'
/Users/josh/Code/vim-config/Rakefile:6:in block in <top (required)>' /Users/josh/.rvm/gems/ruby-1.9.2-p180/gems/rake-0.9.2/lib/rake/task.rb:205:incall'
/Users/josh/.rvm/gems/ruby-1.9.2-p180/gems/rake-0.9.2/lib/rake/task.rb:205:in block in execute' /Users/josh/.rvm/gems/ruby-1.9.2-p180/gems/rake-0.9.2/lib/rake/task.rb:200:ineach'
/Users/josh/.rvm/gems/ruby-1.9.2-p180/gems/rake-0.9.2/lib/rake/task.rb:200:in execute' /Users/josh/.rvm/gems/ruby-1.9.2-p180/gems/rake-0.9.2/lib/rake/task.rb:158:inblock in invoke_with_call_chain'
/Users/josh/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/monitor.rb:201:in mon_synchronize' /Users/josh/.rvm/gems/ruby-1.9.2-p180/gems/rake-0.9.2/lib/rake/task.rb:151:ininvoke_with_call_chain'
/Users/josh/.rvm/gems/ruby-1.9.2-p180/gems/rake-0.9.2/lib/rake/task.rb:144:in invoke' /Users/josh/.rvm/gems/ruby-1.9.2-p180/gems/rake-0.9.2/lib/rake/application.rb:112:ininvoke_task'
/Users/josh/.rvm/gems/ruby-1.9.2-p180/gems/rake-0.9.2/lib/rake/application.rb:90:in block (2 levels) in top_level' /Users/josh/.rvm/gems/ruby-1.9.2-p180/gems/rake-0.9.2/lib/rake/application.rb:90:ineach'
/Users/josh/.rvm/gems/ruby-1.9.2-p180/gems/rake-0.9.2/lib/rake/application.rb:90:in block in top_level' /Users/josh/.rvm/gems/ruby-1.9.2-p180/gems/rake-0.9.2/lib/rake/application.rb:129:instandard_exception_handling'
/Users/josh/.rvm/gems/ruby-1.9.2-p180/gems/rake-0.9.2/lib/rake/application.rb:84:in top_level' /Users/josh/.rvm/gems/ruby-1.9.2-p180/gems/rake-0.9.2/lib/rake/application.rb:62:inblock in run'
/Users/josh/.rvm/gems/ruby-1.9.2-p180/gems/rake-0.9.2/lib/rake/application.rb:129:in standard_exception_handling' /Users/josh/.rvm/gems/ruby-1.9.2-p180/gems/rake-0.9.2/lib/rake/application.rb:59:inrun'
/Users/josh/.rvm/gems/ruby-1.9.2-p180/gems/rake-0.9.2/bin/rake:32:in <top (required)>' /Users/josh/.rvm/gems/ruby-1.9.2-p180/bin/rake:19:inload'
/Users/josh/.rvm/gems/ruby-1.9.2-p180/bin/rake:19:in `

'
Tasks: TOP => default

I think I may have seen this issue in the past if the symlinks the rake task are trying to create already exist. I believe there may be a bug in the code that is supposed to prompt to overwrite those. If you try to delete/rename these files/folders (.vimrc .gvimrc .vim ) and rake again I suspect that it may work. If that is the case we'll have to fix that bug.

Tried moving those files/folders (I only had .vimrc and .vim) and ran rake again. Same problem.