Click here to Skip to main content
15,887,214 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello coders,

actually i'm trying to add a setup routine to a Ruby project.

I have a structure like:
/
/bin
/bin/latexcv.rb
/lib
/lib/[the used libraries]
/data
/data/Appendix
/data/Resume
/data/Cover

My main class runs:

Ruby
FileUtils.cd('data/Cover') do
      Cover.create_cover
    end


After running the setup.rb and launching my binary it loads the method and gives me back:

/home/sascha/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/fileutils.rb:127:in `chdir': No such file or directory @ dir_chdir - data/Cover (Errno::ENOENT)
    from /home/sascha/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/fileutils.rb:127:in `cd'
    from /home/sascha/.rvm/rubies/ruby-2.2.1/lib/ruby/site_ruby/2.2.0/latex_curriculum_vitae.rb:20:in `block in <class:LatexCurriculumVitae>'
    from /home/sascha/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/fileutils.rb:127:in `chdir'
    from /home/sascha/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/fileutils.rb:127:in `cd'
    from /home/sascha/.rvm/rubies/ruby-2.2.1/lib/ruby/site_ruby/2.2.0/latex_curriculum_vitae.rb:12:in `<class:LatexCurriculumVitae>'
    from /home/sascha/.rvm/rubies/ruby-2.2.1/lib/ruby/site_ruby/2.2.0/latex_curriculum_vitae.rb:11:in `<top (required)>'
    from /home/sascha/.rvm/rubies/ruby-2.2.1/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
    from /home/sascha/.rvm/rubies/ruby-2.2.1/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
    from /home/sascha/.rvm/rubies/ruby-2.2.1/bin/latexcv.rb:3:in `<main>'


Maybe anyone knows why it breaks?

The full project can be shown there:https://github.com/saigkill/latex_curriculum_vitae[^]
Posted

1 solution

The problem is fixed now. The content was in a shared directory, in my case /home/sascha/.rvm/rubies/ruby-2.2.1/share/latex_curriculum_vitae. After fixing that in the libraries it runs as expected.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900