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

Stops compilation, if I add "<%= get_metrics_from_git() %>" to a translated md file. #1207

Closed
jhotta opened this issue Mar 9, 2017 · 0 comments

Comments

@jhotta
Copy link
Contributor

jhotta commented Mar 9, 2017

Adding <%= get_metrics_from_git() %> into integration markdown files under content/ja/integrations will brake HTML compilation.

17:35:19 - INFO - running compile
bundle exec nanoc compile
Loading site data… done
Compiling site…

Captain! We’ve been hit!

Message:

Encoding::CompatibilityError: incompatible character encodings: ASCII-8BIT and UTF-8

Compilation stack:

  - [item]   /ja/integrations/awslambda/ (rep default)

Stack trace:

  0. item /ja/integrations/awslambda/ (rep default):4:in `concat'
  1. item /ja/integrations/awslambda/ (rep default):4:in `get_binding'
  2. /Users/papago/.rbenv/versions/2.3.3/lib/ruby/2.3.0/erb.rb:864:in `eval'
  3. /Users/papago/.rbenv/versions/2.3.3/lib/ruby/2.3.0/erb.rb:864:in `result'
  4. /Users/papago/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/nanoc-3.8.0/lib/nanoc/filters/erb.rb:33:in `run'
  5. /Users/papago/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/nanoc-3.8.0/lib/nanoc/base/compilation/filter.rb:117:in `setup_and_run'
  6. /Users/papago/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/nanoc-3.8.0/lib/nanoc/base/result_data/item_rep.rb:343:in `filter'
  7. /Users/papago/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/nanoc-3.8.0/lib/nanoc/base/compilation/item_rep_proxy.rb:45:in `filter'
  8. /Users/papago/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/nanoc-3.8.0/lib/nanoc/base/compilation/rule_context.rb:59:in `filter'
  9. /Users/papago/DD-support/en_documentation/Rules:148:in `block in parse'
  ... 41 more lines omitted. See full crash log for details.

If you believe this is a bug in nanoc, please do report it at
-> https://github.com/nanoc/nanoc/issues/new <-

A detailed crash log has been written to ./crash.log.
17:35:26 - ERROR - Guard::Rake failed to run rake task <compile>, exception was:
> [#] 	RuntimeError: Command failed with status (1): [bundle exec nanoc compile...]
jhotta added a commit that referenced this issue Mar 9, 2017
…HTML compilation stops.

Issue#: 1207
Stops compilation, if I add "<%= get_metrics_from_git() %>" to a translated md file. #1207
@jhotta jhotta closed this as completed Mar 10, 2017
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

1 participant