Skip to content
This repository has been archived by the owner on Feb 1, 2022. It is now read-only.

Fixnum warning with Vagrant 2.0.1 #2719

Closed
ngocphamm opened this issue Nov 7, 2017 · 9 comments
Closed

Fixnum warning with Vagrant 2.0.1 #2719

ngocphamm opened this issue Nov 7, 2017 · 9 comments

Comments

@ngocphamm
Copy link

This is not preventing any vagrant functionalities, I think, but probably would be nice to have fixed. I'm sorry that I don't know anything about Ruby to help with it though :(

...puphpet/ruby/to_bool.rb:9: warning: constant ::Fixnum is deprecated

P.S: I just built the configuration from the website, assuming it's the latest version.

@wunc
Copy link

wunc commented Nov 7, 2017

I'm seeing the same deprecation warning.

@mans202
Copy link

mans202 commented Nov 11, 2017

I'm seeing the same deprecation warning.
Vagrant 2.0.1
Virtualbox 5.2.0 r118431 (Qt5.6.1)
Linux mint 18.2

@cmichael-de
Copy link

I'm seeing the same deprecation warning.
Vagrant 2.0.1

@tomasnorre
Copy link

tomasnorre commented Nov 21, 2017

Don't know if this will help with the fix.. Or at least give an idea on how it can be fixed.

https://bugs.ruby-lang.org/attachments/5945/unify-fixnum-and-bignum.patch
http://blog.bigbinary.com/2016/11/18/ruby-2-4-unifies-fixnum-and-bignum-into-integer.html

@devlamine
Copy link

I'm seeing the same deprecation warning.

@cadavre
Copy link

cadavre commented Nov 24, 2017

This is just a notice so you don't have to worry. Actually commenting out class Fixnum from puphpet/ruby/to_bool.rb:9 will remove it. I did so and no problems noticed.

@tomasnorre
Copy link

I can confirm the work-around, but as i'm no Ruby developer as was not sure enough of site effects to suggest it.

@red-smeg
Copy link

red-smeg commented Dec 1, 2017

I just changed the line in the code to read Integer instead of Fixnum and it worked fine

@tomasnorre
Copy link

I can confirm that the switch to Integer works out as well.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants