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:in
block 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:in
fu_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:in
symlink'
/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:in
call'
/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:in
each'
/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:in
block 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:in
invoke_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:in
invoke_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:in
each'
/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:in
standard_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:in
block 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:in
run'
/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:in
load'
/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.