Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rails 4 warnings: already initialized constant Racc::Parser:: etc.. #1

Open
taboularasa opened this issue Jan 25, 2014 · 4 comments
Open

Comments

@taboularasa
Copy link

Hello,
I'm getting a bunch of warnings after including phys-units in my Rails 4 project. Do any of these look familiar to you? Wondering if I should look into this or ignore it. I'm not getting anything helpful from searching the internet so far.

Phys-units seems to be working fine and I haven't encountered any side effects elsewhere in the app (although I just added the gem so maybe I'll see some problems later)

racc/parser.rb:33: warning: already initialized constant Racc::Parser::Racc_Runtime_Version
       /tmp/build_6eb5226e-2bf7-41f8-adf1-d0333bd313a4/vendor/ruby-2.1.0/lib/ruby/2.1.0/racc/parser.rb:183: warning: previous definition of Racc_Runtime_Version was here
       racc/parser.rb:34: warning: already initialized constant Racc::Parser::Racc_Runtime_Revision
       /tmp/build_6eb5226e-2bf7-41f8-adf1-d0333bd313a4/vendor/ruby-2.1.0/lib/ruby/2.1.0/racc/parser.rb:184: warning: previous definition of Racc_Runtime_Revision was here
       racc/parser.rb:36: warning: already initialized constant Racc::Parser::Racc_Runtime_Core_Version_R
       /tmp/build_6eb5226e-2bf7-41f8-adf1-d0333bd313a4/vendor/ruby-2.1.0/lib/ruby/2.1.0/racc/parser.rb:186: warning: previous definition of Racc_Runtime_Core_Version_R was here
       racc/parser.rb:37: warning: already initialized constant Racc::Parser::Racc_Runtime_Core_Revision_R
       /tmp/build_6eb5226e-2bf7-41f8-adf1-d0333bd313a4/vendor/ruby-2.1.0/lib/ruby/2.1.0/racc/parser.rb:187: warning: previous definition of Racc_Runtime_Core_Revision_R was here
       racc/parser.rb:41: warning: already initialized constant Racc::Parser::Racc_Runtime_Core_Revision_C
       /tmp/build_6eb5226e-2bf7-41f8-adf1-d0333bd313a4/vendor/ruby-2.1.0/lib/ruby/2.1.0/racc/parser.rb:191: warning: previous definition of Racc_Runtime_Core_Revision_C was here
       racc/parser.rb:49: warning: already initialized constant Racc::Parser::Racc_Main_Parsing_Routine
       /tmp/build_6eb5226e-2bf7-41f8-adf1-d0333bd313a4/vendor/ruby-2.1.0/lib/ruby/2.1.0/racc/parser.rb:199: warning: previous definition of Racc_Main_Parsing_Routine was here
       racc/parser.rb:50: warning: already initialized constant Racc::Parser::Racc_YY_Parse_Method
       /tmp/build_6eb5226e-2bf7-41f8-adf1-d0333bd313a4/vendor/ruby-2.1.0/lib/ruby/2.1.0/racc/parser.rb:200: warning: previous definition of Racc_YY_Parse_Method was here
       racc/parser.rb:51: warning: already initialized constant Racc::Parser::Racc_Runtime_Core_Version
       /tmp/build_6eb5226e-2bf7-41f8-adf1-d0333bd313a4/vendor/ruby-2.1.0/lib/ruby/2.1.0/racc/parser.rb:201: warning: previous definition of Racc_Runtime_Core_Version was here
       racc/parser.rb:52: warning: already initialized constant Racc::Parser::Racc_Runtime_Core_Revision
       /tmp/build_6eb5226e-2bf7-41f8-adf1-d0333bd313a4/vendor/ruby-2.1.0/lib/ruby/2.1.0/racc/parser.rb:202: warning: previous definition of Racc_Runtime_Core_Revision was here
       racc/parser.rb:53: warning: already initialized constant Racc::Parser::Racc_Runtime_Type
       /tmp/build_6eb5226e-2bf7-41f8-adf1-d0333bd313a4/vendor/ruby-2.1.0/lib/ruby/2.1.0/racc/parser.rb:203: warning: previous definition of Racc_Runtime_Type was here
@masa16
Copy link
Owner

masa16 commented Jan 27, 2014

Thank you for reporting. I fixed this problem and released it as version 0.9.7.

@taboularasa
Copy link
Author

I can confirm that 0.9.7 fixes the warnings.
Thank you for your speedy reply and for your awesome gem!

@mbramire
Copy link

What was the issue masa16? Im getting the same warning in my sinatra app

@masa16
Copy link
Owner

masa16 commented Mar 21, 2014

I have removed -E option from racc command line.
ce3c549

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

No branches or pull requests

3 participants