twitter / scala_school

Lessons in the Fundamentals of Scala
https://twitter.github.io/scala_school
Apache License 2.0
3.71k stars 1.13k forks source link

`make` fails with "undefined method `highlighter_prefix' for Jekyll::Converters::Textile:Class" #201

Closed stefanlance closed 6 years ago

stefanlance commented 6 years ago

I'm trying to publish the site since it looks to me like there's a small rendering error in the "Futures" section here: https://twitter.github.io/scala_school/finagle.html. I'm following the README. Here are the commands I've run and their output.

$ gem install jekyll
Fetching: blankslate-2.1.2.4.gem (100%)
Successfully installed blankslate-2.1.2.4
Fetching: parslet-1.5.0.gem (100%)
Successfully installed parslet-1.5.0
Fetching: toml-0.1.0.gem (100%)
Successfully installed toml-0.1.0
Fetching: redcarpet-2.3.0.gem (100%)
Building native extensions.  This could take a while...
Successfully installed redcarpet-2.3.0
Fetching: colorator-0.1.gem (100%)
Successfully installed colorator-0.1
Fetching: safe_yaml-0.9.7.gem (100%)
Successfully installed safe_yaml-0.9.7
Fetching: highline-1.6.21.gem (100%)
Successfully installed highline-1.6.21
Fetching: commander-4.1.5.gem (100%)
Successfully installed commander-4.1.5
Fetching: posix-spawn-0.3.8.gem (100%)
Building native extensions.  This could take a while...
Successfully installed posix-spawn-0.3.8
Fetching: yajl-ruby-1.1.0.1.gem (100%)
Building native extensions.  This could take a while...
Successfully installed yajl-ruby-1.1.0.1
Fetching: pygments.rb-0.5.4.gem (100%)
Successfully installed pygments.rb-0.5.4
Fetching: maruku-0.7.1.gem (100%)
Successfully installed maruku-0.7.1
Fetching: rb-kqueue-0.2.3.gem (100%)
Successfully installed rb-kqueue-0.2.3
Fetching: listen-1.3.1.gem (100%)
Successfully installed listen-1.3.1
Fetching: fast-stemmer-1.0.2.gem (100%)
Building native extensions.  This could take a while...
Successfully installed fast-stemmer-1.0.2
Fetching: classifier-1.3.3.gem (100%)
Successfully installed classifier-1.3.3
Fetching: liquid-2.5.4.gem (100%)
Successfully installed liquid-2.5.4
Fetching: jekyll-1.4.2.gem (100%)
Successfully installed jekyll-1.4.2
Parsing documentation for blankslate-2.1.2.4
Installing ri documentation for blankslate-2.1.2.4
Parsing documentation for parslet-1.5.0
Installing ri documentation for parslet-1.5.0
Parsing documentation for toml-0.1.0
Installing ri documentation for toml-0.1.0
Parsing documentation for redcarpet-2.3.0
unable to convert "\xCF" from ASCII-8BIT to UTF-8 for /Users/slance/.rvm/gems/ruby-2.0.0-p648/extensions/x86_64-darwin-16/2.0.0/redcarpet-2.3.0/redcarpet.bundle, skipping
unable to convert "\xCF" from ASCII-8BIT to UTF-8 for lib/redcarpet.bundle, skipping
Installing ri documentation for redcarpet-2.3.0
Parsing documentation for colorator-0.1
Installing ri documentation for colorator-0.1
Parsing documentation for safe_yaml-0.9.7
Installing ri documentation for safe_yaml-0.9.7
Parsing documentation for highline-1.6.21
Installing ri documentation for highline-1.6.21
Parsing documentation for commander-4.1.5
Installing ri documentation for commander-4.1.5
Parsing documentation for posix-spawn-0.3.8
unable to convert "\xCF" from ASCII-8BIT to UTF-8 for /Users/slance/.rvm/gems/ruby-2.0.0-p648/extensions/x86_64-darwin-16/2.0.0/posix-spawn-0.3.8/posix_spawn_ext.bundle, skipping
unable to convert "\xCF" from ASCII-8BIT to UTF-8 for lib/posix_spawn_ext.bundle, skipping
Installing ri documentation for posix-spawn-0.3.8
Parsing documentation for yajl-ruby-1.1.0.1
unable to convert "\xCF" from ASCII-8BIT to UTF-8 for /Users/slance/.rvm/gems/ruby-2.0.0-p648/extensions/x86_64-darwin-16/2.0.0/yajl-ruby-1.1.0.1/yajl/yajl.bundle, skipping
unable to convert "\xCF" from ASCII-8BIT to UTF-8 for lib/yajl/yajl.bundle, skipping
Installing ri documentation for yajl-ruby-1.1.0.1
Parsing documentation for pygments.rb-0.5.4
Installing ri documentation for pygments.rb-0.5.4
gems:
- jekyll-textile-converter
permalink: none
lessons:
  -
    title: Basics
    title_ko: 기초
    title_ru: Основы
    title_zh_cn: 基础
    url: basics.html
    desc: Values, functions, classes, methods, inheritance, try-catch-finally. Expression-oriented programming
    desc_ko: 값, 함수, 클래스, 메소드, 상속, try-catch-finally. 식 중심의 프로그래밍
    desc_ru: Переменные, функции, классы, методы, наследование, try-catch-finally. Программирование ориентированное на выражения
    desc_zh_cn: 值,函数,类,方法,继承,try-catch-finally。面向表达式编程
  -
    title: Basics continued
    title_ko: 기초(계속)
    title_ru: Основы языка. Продолжение
    title_zh_cn: 基础知识(续)
    url: basics2.html
    desc: Case classes, objects, packages, apply, update, Functions are Objects (uniform access principle), pattern matching.
    desc_ko: 케이스 클래스, 객체, 패키지, apply, update, 함수는 객체이다(동일한 억세스 원칙), 패턴 매치
    desc_ru: Case классы, объекты, пакеты, apply, update, Функции как Объекты (единый принцип доступа), сопоставление с образцом.
    desc_zh_cn: 样本类,对象,包,应用,更新,函数即对象(统一访问原则),模式匹配。
  -
    title: Collections
    title_ko: 컬렉션
    title_ru: Коллекции
    title_zh_cn: 集合
    url: collections.html
    desc: Lists, Maps, functional combinators (map, foreach, filter, zip, folds)
    desc_ko: 리스트, 맵, 함수 콤비네이터(map, foreach, filter, zip, fold들)
    desc_ru: Списки, Карты, функциональные комбинаторы (map, foreach, filter, zip, folds)
    desc_zh_cn: 列表,映射,功能组合(map, foreach, filter, zip, folds)
  -
    title: Pattern matching & functional composition
    title_ko: 패턴 매치와 함수 합성
    title_ru: Сопоставление с образцом и функкциональная композиция
    title_zh_cn: 模式匹配与函数组合
    url: pattern-matching-and-functional-composition.html
    desc: More functions! PartialFunctions, more Pattern Matching
    desc_ko: 함수에 대한 추가 설명, 부분함수, 패턴 매치에 대한 설명
    desc_ru: Еще больше функций! Частичные функции, еще больше сопоставления с образцом
    desc_zh_cn: 更多函数!偏函数,更多模式匹配
  -
    title: Type & polymorphism basics
    title_ko: 타입과 다형성의 기초
    title_ru: Основы типов и полиморфизма
    title_zh_cn: 类型和多态基础
    url: type-basics.html
    desc: Basic Types and type polymorphism, type inference, variance, bounds, quantification
    desc_ko: 기본 타입, 타입 다형성, 타입 추론, 공변성, 바운드, 한정하기
    desc_ru: Основные типы и полиморфизм типов, вывод типов, изменчивость, пределы, квантификация
    desc_zh_cn: 基本类型和类型多态性,类型推断,变性,边界,量化
  -
    title: Advanced types
    title_ko: 타입(고급 주제)
    title_ru: Дополнительные типы
    title_zh_cn: 高级类型
    url: advanced-types.html
    desc: Advanced Types, view bounds, higher-kinded types, recursive types, structural types
    desc_ko: 타입에 대한 추가 설명, 뷰 바운드, 상류 타입, 재귀적 타입, 구조적 타입
    desc_ru: Дополнительные типы, видимое ограничение, типы высшего порядка, рекурсивные типы, структурные типы
    desc_zh_cn: 高级类型,视界,更高级多态性类型,递归类型,结构类型
Parsing documentation for maruku-0.7.1
Installing ri documentation for maruku-0.7.1
Parsing documentation for rb-kqueue-0.2.3
Installing ri documentation for rb-kqueue-0.2.3
Parsing documentation for listen-1.3.1
Installing ri documentation for listen-1.3.1
Parsing documentation for fast-stemmer-1.0.2
unable to convert "\xCF" from ASCII-8BIT to UTF-8 for /Users/slance/.rvm/gems/ruby-2.0.0-p648/extensions/x86_64-darwin-16/2.0.0/fast-stemmer-1.0.2/stemmer.bundle, skipping
unable to convert "\xCF" from ASCII-8BIT to UTF-8 for lib/stemmer.bundle, skipping
Installing ri documentation for fast-stemmer-1.0.2
Parsing documentation for classifier-1.3.3
Installing ri documentation for classifier-1.3.3
Parsing documentation for liquid-2.5.4
Installing ri documentation for liquid-2.5.4
Parsing documentation for jekyll-1.4.2
Installing ri documentation for jekyll-1.4.2
18 gems installed
$ gem install RedCloth
Fetching: RedCloth-4.2.9.gem (100%)
Building native extensions.  This could take a while...
Successfully installed RedCloth-4.2.9
Parsing documentation for RedCloth-4.2.9
unable to convert "\xCF" from ASCII-8BIT to UTF-8 for /Users/slance/.rvm/gems/ruby-2.0.0-p648/extensions/x86_64-darwin-16/2.0.0/RedCloth-4.2.9/redcloth_scan.bundle, skipping
unable to convert "\xCF" from ASCII-8BIT to UTF-8 for ext/redcloth_scan/redcloth_attributes.o, skipping
unable to convert "\xCF" from ASCII-8BIT to UTF-8 for ext/redcloth_scan/redcloth_inline.o, skipping
unable to convert "\xCF" from ASCII-8BIT to UTF-8 for ext/redcloth_scan/redcloth_scan.bundle, skipping
unable to convert "\xCF" from ASCII-8BIT to UTF-8 for ext/redcloth_scan/redcloth_scan.o, skipping
unable to convert "\xCF" from ASCII-8BIT to UTF-8 for lib/redcloth_scan.bundle, skipping
Installing ri documentation for RedCloth-4.2.9
1 gem installed
$ gem install jekyll-textile-converter
Fetching: jekyll-textile-converter-0.1.0.gem (100%)
Successfully installed jekyll-textile-converter-0.1.0
Parsing documentation for jekyll-textile-converter-0.1.0
Installing ri documentation for jekyll-textile-converter-0.1.0
1 gem installed
$ make serve
jekyll serve --watch -s web -d web.out
Configuration file: web/_config.yml
error: undefined method `highlighter_prefix' for Jekyll::Converters::Textile:Class. Use --trace to view backtrace
make: *** [serve] Error 1

I searched for a few minutes and nothing useful turned up. Any ideas? If this is just a weird ruby config problem specific to my machine, someone else can publish the site and this ticket can be closed.

stefanlance commented 6 years ago

rvm use 2.5.0 and then reinstalling the gems and trying again works. I guess the method is undefined with ruby-2.0.0-p648.