Jekyll syntax highlighting not producing correct markup - ruby

My local environment isn't compiling my Jekyll site with the correct markup for Rouge syntax highlighting. So for something like
{% highlight javascript %}
<script>
JavaScript code goes here
</script>
{% endhighlight %}
the markup I get after building is
<code class="language-javascript" data-lang="javascript">
"<script>
JavaScript code goes here
</script>"
</code>
Instead of
<code class="language-javascript" data-lang="javascript">
<span class="o"> < </span>
<span class="nx"> script </span>
<span class="o"> > </span>
<span class="nx"> JavaScript code goes here </span>
<span class="o"> < </span>
<span class="sr"> /script </span>
<span class="o"> > </span>
</code>
I have ruby 2.6.5p114 installed on my mac with jekyll 4.0.0 and
% rougify -v
confirms I have version 3.14.0 installed.
I get the same behaviour with my custom built theme and with a fresh blank jekyll site.
I've tried various setting in the _config;
kramdown:
input: GFM
syntax_highlighter: rouge
and
highlighter: rouge
I'm familiar with Jekyll but NOT Ruby so Im a little stuck on how to trouble shoot this.
EDIT: adding env settings and gem list. Note, I have played around a lot with the versions of of ruby and of gems. This is my setup at the time of this edit.
% gem env
RubyGems Environment:
- RUBYGEMS VERSION: 3.1.2
- RUBY VERSION: 2.6.5 (2019-10-01 patchlevel 114) [x86_64-darwin19]
- INSTALLATION DIRECTORY: /Users/arrancurran/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0
- USER INSTALLATION DIRECTORY: /Users/arrancurran/.gem/ruby/2.6.0
- RUBY EXECUTABLE: /Users/arrancurran/.rbenv/versions/2.6.5/bin/ruby
- GIT EXECUTABLE: /usr/bin/git
- EXECUTABLE DIRECTORY: /Users/arrancurran/.rbenv/versions/2.6.5/bin
- SPEC CACHE DIRECTORY: /Users/arrancurran/.gem/specs
- SYSTEM CONFIGURATION DIRECTORY: /Users/arrancurran/.rbenv/versions/2.6.5/etc
- RUBYGEMS PLATFORMS:
- ruby
- x86_64-darwin-19
- GEM PATHS:
- /Users/arrancurran/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0
- /Users/arrancurran/.gem/ruby/2.6.0
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :backtrace => false
- :bulk_threshold => 1000
- REMOTE SOURCES:
- https://rubygems.org/
- SHELL PATH:
- /Users/arrancurran/.rbenv/versions/2.6.5/bin
- /usr/local/Cellar/rbenv/1.1.2/libexec
- /Users/arrancurran/.rbenv/shims
- /Users/arrancurran/.rbenv/bin
- /usr/local/bin
- /usr/bin
- /bin
- /usr/sbin
- /sbin
% gem list
*** LOCAL GEMS ***
activesupport (6.0.2.1)
addressable (2.7.0)
autoprefixer-rails (9.7.3)
bigdecimal (default: 1.4.1)
bundler (default: 2.1.2, 2.0.2)
cmath (default: 1.0.0)
coffee-script (2.4.1)
coffee-script-source (1.11.1)
colorator (1.1.0)
commonmarker (0.17.13)
concurrent-ruby (1.1.5)
csv (default: 3.0.9)
date (default: 2.0.0)
dbm (default: 1.0.0)
did_you_mean (1.3.0)
dnsruby (1.61.3)
e2mmap (default: 0.1.0)
em-websocket (0.5.1)
etc (default: 1.0.1)
ethon (0.12.0)
eventmachine (1.2.7)
execjs (2.7.0)
faraday (1.0.0)
fcntl (default: 1.0.0)
ffi (1.11.3, 1.11.2)
fiddle (default: 1.0.0)
fileutils (default: 1.1.0)
forwardable (default: 1.2.0)
forwardable-extended (2.6.0)
gdbm (default: 2.0.0)
gemoji (3.0.1)
github-pages (203)
github-pages-health-check (1.16.1)
html-pipeline (2.12.3)
html-proofer (3.15.0)
http_parser.rb (0.6.0)
i18n (1.8.2, 1.7.0, 0.9.5)
io-console (default: 0.4.7)
ipaddr (default: 1.2.2)
irb (default: 1.0.0)
jekyll (4.0.0, 3.8.5)
jekyll-autoprefixer (1.0.2)
jekyll-avatar (0.7.0)
jekyll-coffeescript (1.1.1)
jekyll-commonmark (1.3.1)
jekyll-commonmark-ghpages (0.1.6)
jekyll-data (1.1.0)
jekyll-default-layout (0.1.4)
jekyll-docs (4.0.0)
jekyll-feed (0.13.0)
jekyll-gist (1.5.0)
jekyll-github-metadata (2.12.1)
jekyll-include-cache (0.2.0)
jekyll-mentions (1.5.1)
jekyll-optional-front-matter (0.3.2)
jekyll-paginate (1.1.0)
jekyll-readme-index (0.3.0)
jekyll-redirect-from (0.15.0)
jekyll-relative-links (0.6.1)
jekyll-remote-theme (0.4.1)
jekyll-sass-converter (2.0.1, 1.5.2)
jekyll-seo-tag (2.6.1)
jekyll-sitemap (1.4.0)
jekyll-swiss (1.0.0)
jekyll-target-blank (2.0.0)
jekyll-theme-architect (0.1.1)
jekyll-theme-cayman (0.1.1)
jekyll-theme-dinky (0.1.1)
jekyll-theme-hacker (0.1.1)
jekyll-theme-leap-day (0.1.1)
jekyll-theme-merlot (0.1.1)
jekyll-theme-midnight (0.1.1)
jekyll-theme-minimal (0.1.1)
jekyll-theme-modernist (0.1.1)
jekyll-theme-primer (0.5.4)
jekyll-theme-slate (0.1.1)
jekyll-theme-tactile (0.1.1)
jekyll-theme-time-machine (0.1.1)
jekyll-titles-from-headings (0.5.3)
jekyll-watch (2.2.1)
jemoji (0.11.1)
json (default: 2.1.0)
kramdown (2.1.0, 1.17.0)
kramdown-parser-gfm (1.1.0)
liquid (4.0.3)
listen (3.2.1, 3.2.0)
logger (default: 1.3.0)
matrix (default: 0.1.0)
mercenary (0.3.6)
mini_portile2 (2.4.0)
minima (2.5.1)
minimal-mistakes-jekyll (4.16.5)
minitest (5.14.0)
multipart-post (2.1.1)
mutex_m (default: 0.1.0)
net-telnet (0.2.0)
nokogiri (1.10.7)
nokogumbo (2.0.2)
octokit (4.15.0)
openssl (default: 2.1.2)
ostruct (default: 0.1.0)
parallel (1.19.1)
pathutil (0.16.2)
power_assert (1.1.3)
prime (default: 0.1.0)
psych (default: 3.1.0)
public_suffix (4.0.3, 4.0.1, 3.1.1)
rainbow (3.0.0)
rake (13.0.1, 12.3.2)
rb-fsevent (0.10.3)
rb-inotify (0.10.1, 0.10.0)
rdoc (default: 6.1.2)
rexml (default: 3.1.9)
rouge (3.14.0, 3.13.0)
rss (default: 0.2.7)
ruby-enum (0.7.2)
ruby_dep (1.5.0)
rubygems-update (3.1.2)
rubyzip (2.0.0)
safe_yaml (1.0.5)
sass (3.7.4)
sass-listen (4.0.0)
sassc (2.2.1)
sawyer (0.8.2)
scanf (default: 1.0.0)
sdbm (default: 1.0.0)
shell (default: 0.7)
stringio (default: 0.0.2)
strscan (default: 1.0.0)
sync (default: 0.5.0)
terminal-table (1.8.0)
test-unit (3.2.9)
thread_safe (0.3.6)
thwait (default: 0.1.0)
tracer (default: 0.1.0)
typhoeus (1.3.1)
tzinfo (1.2.6)
unicode-display_width (1.6.0)
wdm (0.1.1)
webrick (default: 1.4.2)
xmlrpc (0.3.0)
yell (2.2.1)
zeitwerk (2.2.2)
zlib (default: 1.0.0)

Since you mentioned that your local environment is not rendering properly, does that mean your remote environment renders the site as expected?
If that is the case, try re-installing Jekyll and Rouge after uninstalling all existing versions:
gem uninstall jekyll --force
gem uninstall rouge --force
gem install jekyll

Related

Homebrew warnings: Ignoring X because its extensions are not built. Try: gem pristine X --version Y

Whenever I run a homebrew command I get these warnings, which I'd like to fix:
Ignoring RedCloth-4.2.9 because its extensions are not built. Try: gem pristine RedCloth --version 4.2.9
Ignoring commonmarker-0.17.9 because its extensions are not built. Try: gem pristine commonmarker --version 0.17.9
Ignoring RedCloth-4.2.9 because its extensions are not built. Try: gem pristine RedCloth --version 4.2.9
Ignoring commonmarker-0.17.9 because its extensions are not built. Try: gem pristine commonmarker --version 0.17.9
Running gem pristine RedCloth --version 4.2.9 gives the following:
ERROR: While executing gem ... (Gem::Exception)
Failed to find gems ["RedCloth"] = 4.2.9
I investigated gem:
which gem > /usr/local/opt/ruby/bin/gem
which ruby > /usr/local/opt/ruby/bin/ruby
gem environment:
RubyGems Environment:
- RUBYGEMS VERSION: 3.0.6
- RUBY VERSION: 2.6.5 (2019-10-01 patchlevel 114) [x86_64-darwin18]
- INSTALLATION DIRECTORY: /usr/local/lib/ruby/gems/2.6.0
- USER INSTALLATION DIRECTORY: /Users/victor/.gem/ruby/2.6.0
- RUBY EXECUTABLE: /usr/local/opt/ruby/bin/ruby
- GIT EXECUTABLE: /usr/local/bin/git
- EXECUTABLE DIRECTORY: /usr/local/lib/ruby/gems/2.6.0/bin
- SPEC CACHE DIRECTORY: /Users/victor/.gem/specs
- SYSTEM CONFIGURATION DIRECTORY: /usr/local/Cellar/ruby/2.6.5/etc
- RUBYGEMS PLATFORMS:
- ruby
- x86_64-darwin-18
- GEM PATHS:
- /usr/local/lib/ruby/gems/2.6.0
- /Users/victor/.gem/ruby/2.6.0
- /usr/local/Cellar/ruby/2.6.5/lib/ruby/gems/2.6.0
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :backtrace => false
- :bulk_threshold => 1000
- REMOTE SOURCES:
- https://rubygems.org/
- SHELL PATH:
- /Users/victor/.pyenv/shims
- /opt/local/bin
- /usr/local/opt/ruby/bin
- /Users/victor/.pyenv
- /usr/local/bin
- /usr/bin
- /bin
- /usr/sbin
- /sbin
- /Library/TeX/texbin
- /bin
- /Users/victor/bin
- /usr/local/bin
- /Users/victor/.local/bin
gem list:
*** LOCAL GEMS ***
activesupport (5.2.4, 4.2.10)
addressable (2.7.0, 2.5.2)
bundle (0.0.1)
bundler (2.0.2)
coffee-script (2.4.1)
coffee-script-source (1.11.1)
colorator (1.1.0)
commonmarker (0.17.13)
concurrent-ruby (1.1.5)
did_you_mean (1.3.0)
dnsruby (1.61.3, 1.61.2)
em-websocket (0.5.1)
ethon (0.12.0)
eventmachine (1.2.7)
execjs (2.7.0)
extras (0.3.0)
faraday (0.17.1, 0.15.4)
fastimage (2.1.7, 2.1.5)
ffi (1.11.3, 1.10.0)
forwardable-extended (2.6.0)
gemoji (3.0.1, 3.0.0)
github-pages (203, 193)
github-pages-health-check (1.16.1, 1.8.1)
html-pipeline (2.12.2, 2.10.0)
http_parser.rb (0.6.0)
i18n (0.9.5)
jekyll (3.8.5, 3.7.4)
jekyll-assets (3.0.12, 2.4.0)
jekyll-avatar (0.7.0, 0.6.0)
jekyll-coffeescript (1.1.1)
jekyll-commonmark (1.3.1, 1.2.0)
jekyll-commonmark-ghpages (0.1.6, 0.1.5)
jekyll-default-layout (0.1.4)
jekyll-feed (0.13.0, 0.11.0)
jekyll-gist (1.5.0)
jekyll-github-metadata (2.12.1, 2.9.4)
jekyll-mentions (1.5.1, 1.4.1)
jekyll-optional-front-matter (0.3.2, 0.3.0)
jekyll-paginate (1.1.0)
jekyll-readme-index (0.3.0, 0.2.0)
jekyll-redirect-from (0.15.0, 0.14.0)
jekyll-relative-links (0.6.1, 0.5.3)
jekyll-remote-theme (0.4.1, 0.3.1)
jekyll-sanity (1.2.0)
jekyll-sass-converter (1.5.2)
jekyll-seo-tag (2.6.1, 2.5.0)
jekyll-sitemap (1.4.0, 1.2.0)
jekyll-swiss (1.0.0, 0.4.0)
jekyll-theme-architect (0.1.1)
jekyll-theme-cayman (0.1.1)
jekyll-theme-dinky (0.1.1)
jekyll-theme-hacker (0.1.1)
jekyll-theme-leap-day (0.1.1)
jekyll-theme-merlot (0.1.1)
jekyll-theme-midnight (0.1.1)
jekyll-theme-minimal (0.1.1)
jekyll-theme-modernist (0.1.1)
jekyll-theme-primer (0.5.4, 0.5.3)
jekyll-theme-slate (0.1.1)
jekyll-theme-tactile (0.1.1)
jekyll-theme-time-machine (0.1.1)
jekyll-titles-from-headings (0.5.3, 0.5.1)
jekyll-watch (2.2.1, 2.1.2)
jemoji (0.11.1, 0.10.1)
kramdown (1.17.0)
liquid (4.0.3, 4.0.0)
liquid-tag-parser (1.9.0)
listen (3.2.1, 3.1.5)
maruku (0.7.3)
mercenary (0.3.6)
mini_portile2 (2.4.0)
minima (2.5.1, 2.5.0)
minitest (5.13.0, 5.11.3)
multipart-post (2.1.1, 2.0.0)
net-telnet (0.2.0)
nokogiri (1.10.7, 1.10.1)
octokit (4.14.0, 4.13.0)
pathutil (0.16.2)
power_assert (1.1.3)
public_suffix (3.1.1, 2.0.5)
rack (2.0.7, 1.6.11)
rake (13.0.1, 12.3.3, 12.3.2)
rb-fsevent (0.10.3)
rb-inotify (0.10.0)
rouge (3.13.0, 2.2.1)
ruby-enum (0.7.2)
ruby_dep (1.5.0)
rubyzip (2.0.0, 1.2.2)
safe_yaml (1.0.5, 1.0.4)
sass (3.7.4, 3.7.3)
sass-listen (4.0.0)
sawyer (0.8.2, 0.8.1)
sprockets (4.0.0, 3.7.2)
terminal-table (1.8.0)
test-unit (3.2.9)
thread_safe (0.3.6)
typhoeus (1.3.1)
tzinfo (1.2.5)
uglifier (3.2.0)
unicode-display_width (1.6.0, 1.4.1)
xmlrpc (0.3.0)
But not sure what to do next. Thanks
Simply using gem pristine X --version Y is not working may because your system gem is not your Homebrew gem...
First, run brew config and check your Homebrew Ruby path. It may like this:
Homebrew Ruby: 2.6.3 => /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.6.3_2/bin/ruby
Then replace ruby with gem, run pristine command:
/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.6.3_2/bin/gem pristine X --version Y

LoadError on line ["54"] of /usr/local/lib/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb: cannot load such file -- susy

I'm trying to run the command for my project
grunt compass watch
in the end, I get this error
Running "compass:dev" (compass) task
LoadError on line ["54"] of /usr/local/lib/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb: cannot load such file -- susy
Run with --trace to see the full backtrace
Warning: ↑ Use --force to continue.
Aborted due to warnings.
this is my gem list (very big) and susy's there :
*** LOCAL GEMS ***
actioncable (5.2.2.1)
actionmailer (5.2.2.1)
actionpack (5.2.2.1)
actionview (5.2.2.1)
active_model_serializers (0.8.4)
activejob (5.2.2.1)
activemodel (5.2.2.1)
activerecord (5.2.2.1)
activestorage (5.2.2.1)
activesupport (5.2.2.1)
addressable (2.5.2)
annotate (2.7.4)
arel (9.0.0)
ast (2.4.0)
aws-eventstream (1.0.1)
aws-partitions (1.138.0)
aws-sdk-core (3.46.1)
aws-sdk-kms (1.13.0)
aws-sdk-s3 (1.30.1)
aws-sdk-sns (1.9.0)
aws-sigv4 (1.0.3)
barber (0.12.0)
better_errors (2.5.0)
bigdecimal (default: 1.4.1)
binding_of_caller (0.8.0)
bootsnap (1.3.2)
builder (3.2.3)
bullet (5.9.0)
bundler (2.0.1, default: 1.17.2)
byebug (10.0.2)
certified (1.0.0)
chunky_png (1.3.11)
claide (1.0.2)
claide-plugins (0.9.2)
cmath (default: 1.0.0)
coderay (1.1.2)
colored2 (3.1.2)
concurrent-ruby (1.1.5, 1.1.4)
connection_pool (2.2.2)
cork (0.3.0)
cppjieba_rb (0.3.3)
crack (0.4.3)
crass (1.0.4)
csv (default: 3.0.4)
daemons (1.3.1)
danger (5.13.0)
date (default: 2.0.0)
debug_inspector (0.0.3)
did_you_mean (1.3.0)
diff-lcs (1.3)
discourse-ember-source (3.7.0.2)
discourse_image_optim (0.26.2)
docile (1.3.1)
e2mmap (default: 0.1.0)
email_reply_trimmer (0.1.12)
ember-data-source (3.0.2)
ember-handlebars-template (0.8.0)
ember-rails (0.18.5)
ember-source (2.18.2)
erubi (1.8.0)
etc (default: 1.0.1)
eventmachine (1.0.9.1)
excon (0.62.0)
execjs (2.7.0)
exifr (1.3.5)
fabrication (2.20.1)
fakeweb (1.3.0)
faraday (0.15.4)
faraday-http-cache (1.3.1)
fast_blank (1.0.0)
fast_xor (1.1.3)
fast_xs (0.8.0)
fastimage (2.1.5)
fcntl (default: 1.0.0)
ffi (1.10.0)
fiddle (default: 1.0.0)
fileutils (default: 1.1.0)
flamegraph (0.9.5)
forwardable (default: 1.2.0)
fspath (3.1.0)
gc_tracer (1.5.1)
git (1.5.0)
globalid (0.4.2, 0.4.1)
guess_html_encoding (0.0.11)
hashdiff (0.3.7)
hashie (3.6.0)
highline (1.7.10)
hiredis (0.6.3)
hitimes (1.3.1)
hkdf (0.3.0)
htmlentities (4.3.4)
http_accept_language (2.0.5)
i18n (1.6.0, 1.5.3)
image_size (1.5.0)
in_threads (1.5.0)
io-console (default: 0.4.7)
ipaddr (default: 1.2.2)
irb (default: 1.0.0)
jaro_winkler (1.5.2)
jmespath (1.4.0)
jquery-rails (4.3.3)
json (2.2.0, default: 2.1.0)
jwt (2.1.0)
kgio (2.11.2)
kramdown (1.17.0)
libv8 (6.7.288.46.1 x86_64-linux)
listen (3.1.5)
logger (default: 1.3.0)
lograge (0.10.0)
logstash-event (1.2.02)
logstash-logger (0.26.1)
logster (2.3.0)
loofah (2.2.3)
lru_redux (1.1.0)
mail (2.7.1)
mailcatcher (0.7.1)
marcel (0.3.3)
matrix (default: 0.1.0)
maxminddb (0.1.22)
memory_profiler (0.9.12)
message_bus (2.2.0)
metaclass (0.0.4)
method_source (0.9.2, 0.8.2)
mimemagic (0.3.3)
mini_mime (1.0.1)
mini_portile2 (2.4.0)
mini_racer (0.2.4)
mini_scheduler (0.9.1)
mini_sql (0.2.1)
mini_suffix (0.3.0)
minitest (5.11.3)
mocha (1.5.0)
mock_redis (0.18.0)
moneta (1.1.1, 1.0.0)
msgpack (1.2.6)
multi_json (1.13.1)
multi_xml (0.6.0)
multipart-post (2.0.0)
mustache (1.1.0)
mutex_m (default: 0.1.0)
nap (1.1.0)
net-telnet (0.2.0)
nio4r (2.3.1)
no_proxy_fix (0.1.2)
nokogiri (1.10.2, 1.10.1)
nokogumbo (2.0.1)
oauth (0.5.4)
oauth2 (1.4.1)
octokit (4.13.0)
oj (3.7.8)
omniauth (1.9.0)
omniauth-facebook (5.0.0)
omniauth-github (1.3.0)
omniauth-google-oauth2 (0.6.0)
omniauth-instagram (1.3.0)
omniauth-oauth (1.1.0)
omniauth-oauth2 (1.6.0)
omniauth-openid (1.0.1)
omniauth-twitter (1.4.0)
onebox (1.8.85, 1.8.82)
open4 (1.3.4)
openid-redis-store (0.0.2)
openssl (default: 2.1.2)
optimist (3.0.0)
ostruct (default: 0.1.0)
parallel (1.13.0)
parallel_tests (2.28.0)
parser (2.6.0.0)
pg (1.1.4)
power_assert (1.1.3)
powerpack (0.1.2)
prime (default: 0.1.0)
progress (3.5.0)
pry (0.10.4)
pry-nav (0.2.4)
pry-rails (0.3.6)
psych (default: 3.1.0)
public_suffix (3.0.3)
puma (3.12.0)
r2 (0.2.7)
rack (2.0.6, 1.6.11)
rack-mini-profiler (1.0.2)
rack-openid (1.3.1)
rack-protection (2.0.5, 1.5.5)
rack-test (1.1.0)
rails (5.2.2.1)
rails-dom-testing (2.0.3)
rails-html-sanitizer (1.0.4)
rails_multisite (2.0.6)
railties (5.2.2.1)
rainbow (3.0.0)
raindrops (0.19.0)
rake (12.3.2)
rake-compiler (1.0.4)
rb-fsevent (0.10.3)
rb-inotify (0.10.0)
rbtrace (0.4.11)
rchardet (1.8.0)
rdoc (default: 6.1.0)
redis (4.0.1)
redis-namespace (1.6.0)
request_store (1.4.1)
rexml (default: 3.1.9)
rinku (2.0.4)
rotp (3.3.1)
rqrcode (0.10.1)
rspec (3.7.0)
rspec-core (3.7.1)
rspec-expectations (3.7.0)
rspec-html-matchers (0.9.1)
rspec-mocks (3.7.0)
rspec-rails (3.7.2)
rspec-support (3.7.1)
rss (default: 0.2.7)
rtlit (0.0.5)
rubocop (0.63.1)
ruby-openid (2.7.0)
ruby-prof (0.17.0)
ruby-progressbar (1.10.0)
ruby-readability (0.7.0)
ruby_dep (1.5.0)
safe_yaml (1.0.4)
sanitize (5.0.0)
sass (3.4.25)
sassc (2.0.1)
sassc-rails (2.1.0)
sawyer (0.8.1)
scanf (default: 1.0.0)
sdbm (default: 1.0.0)
seed-fu (2.3.9)
shell (default: 0.7)
shoulda (3.5.0)
shoulda-context (1.2.2)
shoulda-matchers (3.1.3, 2.8.0)
sidekiq (5.2.5)
simplecov (0.16.1)
simplecov-html (0.10.2)
sinatra (1.4.8)
skinny (0.2.4)
slop (3.6.0)
sprockets (3.7.2)
sprockets-rails (3.2.1)
sqlite3 (1.4.0)
sshkey (1.9.0)
stackprof (0.2.12)
stringio (default: 0.0.2)
strscan (default: 1.0.0)
susy (2.2.14)
sync (default: 0.5.0)
terminal-table (1.8.0)
test-unit (3.2.9)
thin (1.5.1)
thor (0.20.3)
thread_safe (0.3.6)
thwait (default: 0.1.0)
tilt (2.0.9, 2.0.8)
tracer (default: 0.1.0)
tzinfo (1.2.5)
uglifier (4.1.20)
unf (0.1.4)
unf_ext (0.0.7.5)
unicode-display_width (1.4.1)
unicorn (5.4.1)
uniform_notifier (1.12.1)
webmock (3.4.2)
webpush (0.3.6)
webrick (default: 1.4.2)
websocket-driver (0.7.0)
websocket-extensions (0.1.3)
xmlrpc (0.3.0)
zlib (default: 1.0.0)
I installed globally:
sudo apt-get update
sudo apt-get install nodejs
sudo apt-get install npm
sudo npm install -g grunt-cli
sudo apt-get install ruby-full
sudo gem update --system
sudo gem install compass
sudo gem install bundler
npm i susy --save (and local too because in local gem list susy doesn't displayed)
gem ins hitimes
Local:
sudo npm install grunt --save-dev
sudo npm install grunt-contrib-uglify --save-dev
sudo npm install grunt-contrib-watch --save-dev
sudo npm install grunt-contrib-compass --save-dev
+susy
I tried all update.
I put in project file Gemfile:
# Gemfile
source "https://rubygems.org"
ruby "~> 2.4.0"
gem "sass", "~> 3.4.22"
gem "sass-globbing", "~> 1.1.5"
gem "compass", "~> 1.0.3"
gem "modular-scale", "~> 2.1.1"
gem "susy", "~> 2.2.12"
gem "ffi", "~> 1.9.25"
I restart my apache2 every time)
Please, help me. I am new to this field.
Maybe I'm doing something wrong?
Did I set everything right for grunt?

When right clicking on an element I get an "uninitialized constant Selenium::WebDriver::DriverExtensions::HasInputDevices (NameError)" error

After upgrading all my ruby gems including watir-webdriver to the latest v0.9.9 I got the below error when my script tries to right click on an element
Below is the code that executes the And I right click on layer 1 in the import tab step
def select_layer_import_tab(layer_num)
layer_index = (layer_num.to_i - 1)
#browser.divs(:class => "legend")[layer_index].img.click
#browser.divs(:class => "legend")[layer_index].img.right_click <--------------------- error happens here ------------
end
Here are my gems list versions prior to upgrade:
* LOCAL GEMS *
bigdecimal (1.2.0)
builder (3.2.2)
bundler (1.10.6)
bundler-unload (1.0.2)
childprocess (0.5.8, 0.5.7)
chunky_png (1.3.5)
cucumber (2.1.0)
cucumber-core (1.3.0)
data_magic (0.21)
diff-lcs (1.2.5)
executable-hooks (1.3.2)
faker (1.6.1)
ffi (1.9.10)
gem-wrappers (1.2.7)
gherkin3 (3.1.2)
headless (2.2.0)
i18n (0.7.0)
io-console (0.4.2)
json (1.7.7)
minitest (4.3.2)
multi_json (1.11.2)
multi_test (0.1.2)
oily_png (1.2.0)
page-object (1.1.0)
page_navigation (0.9)
psych (2.0.0)
rake (10.4.2, 0.9.6)
rdoc (4.0.0)
require_all (1.3.3)
rspec (3.4.0)
rspec-core (3.4.1)
rspec-expectations (3.4.0)
rspec-mocks (3.4.0)
rspec-support (3.4.1)
rubygems-bundler (1.4.4)
rubyzip (1.1.7)
rvm (1.11.3.9)
selenium-webdriver (2.48.1)
test-unit (2.0.0.0)
testgen (0.8.7)
thor (0.19.1)
watir-webdriver (0.9.1)
websocket (1.2.2)
yard (0.8.7.6)
yml_reader (0.5)
Here are my gems list versions post upgrade:
* LOCAL GEMS *
bigdecimal (1.3.2, 1.2.0)
builder (3.2.3, 3.2.2)
bundler (1.15.2, 1.10.6)
bundler-unload (1.0.2)
childprocess (0.7.1, 0.5.8, 0.5.7)
chunky_png (1.3.8, 1.3.5)
connection_pool (2.2.1)
cucumber (2.4.0, 2.1.0)
cucumber-core (1.5.0, 1.3.0)
cucumber-wire (0.0.1)
data_magic (1.0, 0.21)
diff-lcs (1.3, 1.2.5)
executable-hooks (1.3.2)
faker (1.6.1)
ffi (1.9.18, 1.9.10)
gem-wrappers (1.3.0, 1.2.7)
gherkin (4.1.3)
gherkin3 (3.1.2)
headless (2.3.1, 2.2.0)
i18n (0.8.6, 0.7.0)
io-console (0.4.6, 0.4.2)
json (2.1.0, 1.7.7)
minitest (5.10.2, 4.3.2)
multi_json (1.12.1, 1.11.2)
multi_test (0.1.2)
oily_png (1.2.1, 1.2.0)
page-object (1.1.0)
page_navigation (0.10, 0.9)
power_assert (1.0.2)
psych (2.2.4, 2.0.0)
rake (12.0.0, 10.4.2, 0.9.6)
rdoc (5.1.0, 4.0.0)
require_all (1.4.0, 1.3.3)
rspec (3.6.0, 3.4.0)
rspec-core (3.6.0, 3.4.1)
rspec-expectations (3.6.0, 3.4.0)
rspec-mocks (3.6.0, 3.4.0)
rspec-support (3.6.0, 3.4.1)
rubygems-bundler (1.4.4)
rubyzip (1.2.1, 1.1.7)
rvm (1.11.3.9)
selenium-webdriver (3.4.4, 2.48.1)
test-unit (3.2.5, 2.0.0.0)
testgen (0.9, 0.8.7)
thor (0.19.4, 0.19.1)
watir-webdriver (0.9.9, 0.9.1)
websocket (1.2.4, 1.2.2)
yard (0.9.9, 0.8.7.6)
yml_reader (0.7, 0.5)
Other environment information:
Debian Linux Wheezy v7.1
ruby 2.0.0p643 (2015-02-25 revision 49749)
Chrome Browser v45.0.2454.85
Using xvfb to render the above browser in a headless linux environment
ChromeDriver 2.20.353124
I've tried looking around on forums for this specific error but can't find anything. I also wanted to try upgrading to the latest Chrome browser and Chromedriver version however it would appear that the latest version of the google chrome browser no longer supports Debian Wheezy so I am stuck with what I got.
Any ideas would be greatly appreciated.
Selenium 3 removed Driver Extension checks for input that watir-webdriver accessed directly. Updating code to latest Watir version will fix this. (as well as provide a number of extra functions and performance improvements).

What are the default gems of Mac OSX 10.11?

I tried to study Ruby on Rails and followed a tutorial. However, I think I missed a part and I can't proceed to the next step in the tutorial, so I plan to uninstall things, including the gems I installed, and start all over again.
I installed Ruby using Homebrew, because people say it's best not to mess with the Ruby that comes with macOS. Then, I uninstalled it again using brew uninstall ruby.
After doing that, I ran gem list and this came out:
*** LOCAL GEMS ***
- bigdecimal (1.2.0)
- builder (3.2.2)
- CFPropertyList (2.2.8)
- io-console (0.4.2)
- json (1.7.7)
- libxml-ruby (2.6.0)
- minitest (4.3.2)
- nokogiri (1.5.6)
- psych (2.0.0)
- rake (0.9.6)
- rdoc (4.0.0)
- sqlite3 (1.3.7)
- test-unit (2.0.0.0)
- thor (0.19.1)
What are the gems (if any) that come with macOS system Ruby?
My fresh El Capitan gives:
*** LOCAL GEMS ***
bigdecimal (1.2.0)
CFPropertyList (2.2.8)
io-console (0.4.2)
json (1.7.7)
libxml-ruby (2.6.0)
minitest (4.3.2)
nokogiri (1.5.6)
psych (2.0.0)
rake (0.9.6)
rdoc (4.0.0)
sqlite3 (1.3.7)
test-unit (2.0.0.0)
which is the same as #jsejcksn mentioned. For macOS 10.13.6 (High Sierra) and 10.14.5 (Mojave) the list is
*** LOCAL GEMS ***
bigdecimal (1.2.8)
CFPropertyList (2.2.8)
did_you_mean (1.0.0)
io-console (0.4.5)
json (1.8.3.1)
libxml-ruby (2.9.0)
minitest (5.8.5)
net-telnet (0.1.1)
nokogiri (1.5.6)
power_assert (0.2.6)
psych (2.1.0.1)
rake (10.4.2)
rdoc (4.2.1)
sqlite3 (1.3.11)
test-unit (3.1.5)
As addendum, for anybody else wondering what the current default Gems on macOS 10.13.3 are:
*** LOCAL GEMS ***
bigdecimal (1.2.8)
CFPropertyList (2.2.8)
did_you_mean (1.0.0)
io-console (0.4.5)
json (1.8.3)
libxml-ruby (2.9.0)
minitest (5.8.5)
net-telnet (0.1.1)
nokogiri (1.5.6)
power_assert (0.2.6)
psych (2.1.0)
rake (10.4.2)
rdoc (4.2.1)
sqlite3 (1.3.11)
test-unit (3.1.5)
Shipped gem version is 2.5.2.
macOS 12.0.1 Monterey
% gem list
*** LOCAL GEMS ***
bigdecimal (default: 1.4.1)
bundler (default: 1.17.2)
CFPropertyList (2.3.6)
cmath (default: 1.0.0)
csv (default: 3.0.9)
date (default: 2.0.0)
dbm (default: 1.0.0)
did_you_mean (1.3.0)
e2mmap (default: 0.1.0)
etc (default: 1.0.1)
fcntl (default: 1.0.0)
fiddle (default: 1.0.0)
fileutils (default: 1.1.0)
forwardable (default: 1.2.0)
io-console (default: 0.4.7)
ipaddr (default: 1.2.2)
irb (default: 1.0.0)
json (default: 2.1.0)
libxml-ruby (3.2.1)
logger (default: 1.3.0)
matrix (default: 0.1.0)
mini_portile2 (2.4.0)
minitest (5.11.3)
mutex_m (default: 0.1.0)
net-telnet (0.2.0)
nokogiri (1.10.1)
openssl (default: 2.1.2)
ostruct (default: 0.1.0)
power_assert (1.1.3)
prime (default: 0.1.0)
psych (default: 3.1.0)
rake (12.3.3)
rdoc (default: 6.1.2.1)
rexml (default: 3.1.9.1)
rss (default: 0.2.7)
scanf (default: 1.0.0)
sdbm (default: 1.0.0)
shell (default: 0.7)
sqlite3 (1.3.13)
stringio (default: 0.0.2)
strscan (default: 1.0.0)
sync (default: 0.5.0)
test-unit (3.2.9)
thwait (default: 0.1.0)
tracer (default: 0.1.0)
webrick (default: 1.4.4)
xmlrpc (0.3.0)
zlib (default: 1.0.0)
OS X 10.10 has Ruby 2.0 has the default version, so I guess 10.11 is the same.
However, I would suggest you to use Ruby 2.3.0, because it is the most current stable version.
Since you are using brew, you can use the following code:-
brew install rbenv ruby-build
# Add rbenv to bash so that it loads every time you open a terminal
echo 'if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi' >> ~/.bash_profile
source ~/.bash_profile
# Install Ruby
rbenv install 2.3.0
rbenv global 2.3.0
ruby -v
Reference: https://gorails.com/setup/osx/10.11-el-capitan
UPDATE: latest stable should be 2.3.0 instead of 2.2.3. Thanks spikermann for pointing out.

Fenced codeblocks in Jekyll

I have just upgraded my local Jekyll installation to Jekyll 3.0.2.
I was looking forward to use fenced (backticks) code blocks when posting source code.
This however doesn't work, and I still have to use Liquid tags to specify codeblocks
My build settings in _config.yml:
baseurl: /
destination: _site
permalink: pretty
markdown: kramdown
kramdown:
input: GFM
syntax_highlighter: rouge
List of Ruby gems installed
activesupport (4.2.5.1)
addressable (2.3.8)
bigdecimal (1.2.6)
bundler (1.11.2)
coffee-script (2.4.1)
coffee-script-source (1.10.0)
colorator (0.1)
ethon (0.8.1)
execjs (2.6.0)
faraday (0.9.2)
ffi (1.9.10 x64-mingw32)
gemoji (2.1.0)
github-pages (45)
github-pages-health-check (0.6.0)
html-pipeline (2.3.0)
i18n (0.7.0)
io-console (0.4.3)
jekyll (3.0.2)
jekyll-coffeescript (1.0.1)
jekyll-feed (0.3.1)
jekyll-gist (1.4.0)
jekyll-mentions (1.0.0)
jekyll-paginate (1.1.0)
jekyll-redirect-from (0.9.1)
jekyll-sass-converter (1.3.0)
jekyll-seo-tag (0.1.4)
jekyll-sitemap (0.10.0)
jekyll-textile-converter (0.1.0)
jekyll-watch (1.3.1)
jemoji (0.5.1)
json (1.8.3, 1.8.1)
kramdown (1.9.0)
liquid (3.0.6)
listen (3.0.5)
mercenary (0.3.5)
mini_portile2 (2.0.0)
minitest (5.8.4, 5.4.3)
multipart-post (2.0.0)
net-dns (0.8.0)
nokogiri (1.6.7.2 x64-mingw32)
octokit (4.2.0)
power_assert (0.2.2)
psych (2.0.8)
public_suffix (1.5.3)
rake (10.4.2)
rb-fsevent (0.9.7)
rb-inotify (0.9.5)
rdiscount (2.1.8)
rdoc (4.2.0)
redcarpet (3.3.3)
RedCloth (4.2.9)
rouge (1.10.1)
safe_yaml (1.0.4)
sass (3.4.21)
sawyer (0.6.0)
terminal-table (1.5.2)
test-unit (3.0.8)
thread_safe (0.3.5)
typhoeus (0.8.0)
tzinfo (1.2.2)
This configuration works for me.
_config.yml
markdown: kramdown
kramdown:
input: GFM
syntax_highlighter: rouge
test.md
#### Writing a simple C Program
```c
#include <stdio.h>
int main(){
printf("Hello Drone\n");
return 0;
}
```
Compile and run the program on native system to test the code.

Resources