Skip to content

Instantly share code, notes, and snippets.

@mrflip
Created August 17, 2012 06:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mrflip/3376401 to your computer and use it in GitHub Desktop.
Save mrflip/3376401 to your computer and use it in GitHub Desktop.
{
"fancy_chars.rb": {},
"hello.txt|jinja": { "allinputs": true }
}
# -*- coding: utf-8 -*-
OK_CHARS_RE = /[^a-zA-Z0-9\ \/\.\,\-\(\)\'ÁÂÄÅÇÉÍÎÑÖØÜÞàáâãäåæçèéêëìíîïðñóôõöøúüýāăčėęěğİıŁłńōőřŞşŠšţťūźŽžơț]/
Hello!
Would you like to see some complicated foreign characters? Of course you would!
{{ d['fancy_chars.rb'] }}
worblehat ~/ics/ext/dexy/examples/bad_unicode$ dexy
batch id is 2
sorting 2 documents into run order, there are 1 total dependencies
ratio of dependencies to documents is 0.5
File "/Users/flip/ics/ext/dexy/dexy/artifact.py", line 406, in run
filter_instance.process()
File "/Users/flip/ics/ext/dexy/dexy/filters/templating_filters.py", line 171, in process
template.stream(template_data).dump(self.artifact.filepath(), encoding="utf-8")
File "/Library/Python/2.7/site-packages/jinja2/environment.py", line 1072, in dump
fp.writelines(iterable)
File "/Library/Python/2.7/site-packages/jinja2/environment.py", line 1068, in <genexpr>
iterable = (x.encode(encoding, errors) for x in self)
File "/Library/Python/2.7/site-packages/jinja2/environment.py", line 1116, in next
return self._next()
File "/Library/Python/2.7/site-packages/jinja2/environment.py", line 918, in generate
yield self.environment.handle_exception(exc_info, True)
File "<template>", line 7, in top-level template code
ERROR in hello.txt|jinja (in filter 'jinja' - step 1 of 1)
Traceback (most recent call last):
File "/usr/local/bin/dexy", line 8, in <module>
load_entry_point('dexy==0.6.0', 'console_scripts', 'dexy')()
File "/Users/flip/ics/ext/dexy/dexy/commands.py", line 55, in run
args.parse_and_run_command(sys.argv[1:], MOD, default_command=Constants.DEFAULT_COMMAND)
File "/Library/Python/2.7/site-packages/modargs/args.py", line 375, in parse_and_run_command
command_module(mod, command, options)
File "/Library/Python/2.7/site-packages/modargs/args.py", line 283, in command_module
function(**options)
File "/Users/flip/ics/ext/dexy/dexy/commands.py", line 150, in dexy_command
controller = run_dexy(locals())
File "/Users/flip/ics/ext/dexy/dexy/commands.py", line 175, in run_dexy
controller.run()
File "/Users/flip/ics/ext/dexy/dexy/controller.py", line 87, in run
self.docs = [doc.run() for doc in self.docs]
File "/Users/flip/ics/ext/dexy/dexy/document.py", line 376, in run
artifact.run()
File "/Users/flip/ics/ext/dexy/dexy/artifact.py", line 434, in run
raise dexy.commands.InternalDexyProblem("error class: %s" % e.__class__.__name__)
dexy.commands.InternalDexyProblem:
Oops! You may have found a bug in Dexy.
The developer would really appreciate if you copy and paste this entire message
and the Traceback above it into a bug report at http://dexy.tenderapp.com.
Your version of Dexy is 0.6.0
Your platform is Darwin
error class: UnicodeDecodeError
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment