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

gem rouge warning Lexers::SHELL #240

Open
newtonianb opened this issue Jul 18, 2015 · 10 comments
Open

gem rouge warning Lexers::SHELL #240

newtonianb opened this issue Jul 18, 2015 · 10 comments

Comments

@newtonianb
Copy link

We are on Windows 8.1
Ruby 2.1 x64.

We followed the installation procedure but whenever we run hologram we get these gem warnings, what are those can we ignore them?

C:/DevZone/Ruby21-x64/lib/ruby/gems/2.1.0/gems/rouge-1.9.1/lib/rouge/lexers/shell.rb:20: warning: already initialized constant Rouge::Lexers::Shell::KEYWORDS
C:/DevZone/Ruby21-x64/lib/ruby/gems/2.1.0/gems/rouge-1.9.1/lib/rouge/lexers/shell.rb:20: warning: previous definition of KEYWORDS was here
C:/DevZone/Ruby21-x64/lib/ruby/gems/2.1.0/gems/rouge-1.9.1/lib/rouge/lexers/shell.rb:25: warning: already initialized constant Rouge::Lexers::Shell::BUILTINS
C:/DevZone/Ruby21-x64/lib/ruby/gems/2.1.0/gems/rouge-1.9.1/lib/rouge/lexers/shell.rb:25: warning: previous definition of BUILTINS was here
Created the following files and directories:
  hologram_config.yml
  doc_assets/
  doc_assets/_header.html
  doc_assets/_footer.html
  code_example_templates/
  code_example_templates/markdown_example_template.html.erb
  code_example_templates/markdown_table_template.html.erb
  code_example_templates/js_example_template.html.erb
  code_example_templates/jsx_example_template.html.erb
@RickMeijer
Copy link

Not really a solution, but downgrading to 1.9.0 seems to help on my end.

@xi
Copy link

xi commented Jul 20, 2015

I have the same issue on linux with ruby 2.1.5. It shows up with rouge 1.9.0, but not with rouge 1.8.0. I could not find any relevant changes in the upstream changelog. So do you think this is an upstream bug or is it in hologram?

@jdcantrell
Copy link
Contributor

I'll have to test this on windows and see. On linux and osx I'm not getting this warnings with Rouge 1.9.1

@tonifisler
Copy link

Having the issue here on OS X.

/Library/Ruby/Gems/2.0.0/gems/rouge-1.9.1/lib/rouge/lexers/shell.rb:20: warning: already initialized constant Rouge::Lexers::Shell::KEYWORDS
/Library/Ruby/Gems/2.0.0/gems/rouge-1.9.1/lib/rouge/lexers/shell.rb:20: warning: previous definition of KEYWORDS was here
/Library/Ruby/Gems/2.0.0/gems/rouge-1.9.1/lib/rouge/lexers/shell.rb:25: warning: already initialized constant Rouge::Lexers::Shell::BUILTINS
/Library/Ruby/Gems/2.0.0/gems/rouge-1.9.1/lib/rouge/lexers/shell.rb:25: warning: previous definition of BUILTINS was here

@craigcoles
Copy link

@tonifisler These are the exact same warnings that I have also

@xi
Copy link

xi commented Aug 17, 2015

On linux and osx I'm not getting this warnings with Rouge 1.9.1

I still get the warnings with Rouge 1.9.1 on linux. I would be happy to supply additional information if you tell me what you need.

@micahgodbolt
Copy link

Can confirm that downgrading to 1.9.0 fixes the issue.

yoon pushed a commit to yoon/hologram that referenced this issue Aug 24, 2015
@xi
Copy link

xi commented Aug 25, 2015

Upstream issue is tracked in rouge-ruby/rouge#296

@edwardsdesign
Copy link

I can also confirm that downgrading to rouge 1.9.0 fixes the issue

jdcantrell added a commit that referenced this issue Apr 29, 2016
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

9 participants