Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#68024 - [vagrant] ruby syntax error after upgrading to 2.2.10-2
Attached to Project:
Community Packages
Opened by Graham Hay (grahamrhay) - Monday, 28 September 2020, 10:18 GMT
Last edited by Jonathan Steel (jsteel) - Monday, 26 October 2020, 08:22 GMT
Opened by Graham Hay (grahamrhay) - Monday, 28 September 2020, 10:18 GMT
Last edited by Jonathan Steel (jsteel) - Monday, 26 October 2020, 08:22 GMT
|
DetailsDescription:
After upgrading from 2.2.9-2 to 2.2.10-2, I got a ruby syntax error from any vagrant command: ``` $ vagrant up Ignoring bcrypt_pbkdf-1.0.1 because its extensions are not built. Try: gem pristine bcrypt_pbkdf --version 1.0.1 Ignoring ed25519-1.2.4 because its extensions are not built. Try: gem pristine ed25519 --version 1.2.4 Ignoring ffi-1.13.1 because its extensions are not built. Try: gem pristine ffi --version 1.13.1 Ignoring unf_ext-0.0.7.7 because its extensions are not built. Try: gem pristine unf_ext --version 0.0.7.7 /opt/vagrant/embedded/gems/2.2.10/gems/vagrant-2.2.10/lib/vagrant/plugin/manager.rb:4:in `require_relative': /opt/vagrant/embedded/gems/2.2.10/gems/vagrant-2.2.10/lib/vagrant/bundler.rb:243: syntax error, unexpected '.' (SyntaxError) if solution_file&.valid? ^ /opt/vagrant/embedded/gems/2.2.10/gems/vagrant-2.2.10/lib/vagrant/bundler.rb:258: syntax error, unexpected '.' if !solution_file&.valid? ^ /opt/vagrant/embedded/gems/2.2.10/gems/vagrant-2.2.10/lib/vagrant/bundler.rb:869: syntax error, unexpected keyword_end, expecting end-of-input from /opt/vagrant/embedded/gems/2.2.10/gems/vagrant-2.2.10/lib/vagrant/plugin/manager.rb:4:in `<top (required)>' from /home/graham/.rvm/rubies/ruby-2.1.5/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in `require' from /home/graham/.rvm/rubies/ruby-2.1.5/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in `require' from /opt/vagrant/embedded/gems/2.2.10/gems/vagrant-2.2.10/lib/vagrant.rb:40:in `<top (required)>' from /home/graham/.rvm/rubies/ruby-2.1.5/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:130:in `require' from /home/graham/.rvm/rubies/ruby-2.1.5/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:130:in `rescue in require' from /home/graham/.rvm/rubies/ruby-2.1.5/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:35:in `require' from /opt/vagrant/embedded/gems/2.2.10/gems/vagrant-2.2.10/bin/vagrant:88:in `<main>' ``` Downgrading to 2.2.9-2 worked fine again |
This task depends upon
> Could you share your Vagrantfile
Hmm, interesting, I hadn't considered that it could be that. I'll try with an example from the vagrant docs and, if that works, I'll comment some of mine out, and see if that helps. Thanks.
$ vagrant --version
Vagrant 2.2.10
$ mkdir test
$ cd test
$ vagrant init
A `Vagrantfile` has been placed in this directory. You are now
ready to `vagrant up` your first virtual environment! Please read
the comments in the Vagrantfile as well as documentation on
`vagrantup.com` for more information on using Vagrant.
If that's exactly what you are doing, then I cannot reproduce this. If you are doing something different then please share.