Closed mehulkar closed 10 years ago
Is activate :syntax
in your config.rb
?
Got it working. I had put activate :syntax
inside the configure :build
block. Didn't realized activate
directives could live outside blocks also. Thanks!
I am getting this as well:
My Gemfile
:
source 'http://rubygems.org'
gem "middleman", "3.3.10"
gem "puma"
# For faster file watcher updates on Windows:
gem "wdm", "~> 0.1.0", :platforms => [:mswin, :mingw]
# Windows does not come with time zone data
gem "tzinfo-data", platforms: [:mswin, :mingw]
# Syntax
gem "middleman-syntax", "2.0.0"
gem "redcarpet", "2.3.0"
# Code beautification
gem 'htmlbeautifier', '~> 0.0.9'
From my terminal when I run $ grunt
:
/.rvm/gems/ruby-1.9.3-p194/gems/rouge-1.9.1/lib/rouge/lexers/shell.rb:20: warning: already initialized constant KEYWORDS
/.rvm/gems/ruby-1.9.3-p194/gems/rouge-1.9.1/lib/rouge/lexers/shell.rb:25: warning: already initialized constant BUILTINS
I have activate :syntax
set in my config.rb
.
In my Gemfile.lock
file, I notice Rouge loads twice:
middleman-syntax (2.0.0)
middleman-core (~> 3.2)
rouge (~> 1.0)
rouge (1.9.1)
@extractachris That's just a warning, you can safely ignore it. Ref: https://github.com/jneen/rouge/pull/291
Thanks, @Arcovion. FWIW, I dropped back down to rouge 1.8.0
and the warning went away:
gem 'rouge', '1.8.0'
Gemfile
I must be doing something silly, but I don't quite understand how middleman works.