Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

codeblock matching #540

Closed
hrabbit opened this Issue Apr 22, 2012 · 1 comment

Comments

Projects
None yet
1 participant

hrabbit commented Apr 22, 2012

Hi,

Newby here and in no way a Ruby person. Love Octopress however! Only started on it today but am seriously wondering where it's been all my life! I apologise in advance if the information I am providing is not enough.

I am trying to use the codeblock to produce output with the following data

{% codeblock '/etc/bash.bashrc' %}

produces

## Generating Site with Jekyll
unchanged sass/screen.scss
Configuration from /home/hrabbit/Projects/octopress/_config.yml
Building site: source -> public
  File "<string>", line 1
    import sys; print sys.executable
                        ^
SyntaxError: invalid syntax
sh: - : invalid option
Usage:  sh [GNU long option] [option] ...
    sh [GNU long option] [option] script-file ...
GNU long options:
    --debug
    --debugger
    --dump-po-strings
    --dump-strings
    --help
    --init-file
    --login
    --noediting
    --noprofile
    --norc
    --posix
    --protected
    --rcfile
    --restricted
    --verbose
    --version
Shell options:
    -irsD or -c command or -O shopt_option      (invocation only)
    -abefhkmnptuvxBCHP or -o option
sh: - : invalid option
Usage:  sh [GNU long option] [option] ...
    sh [GNU long option] [option] script-file ...
GNU long options:
    --debug
    --debugger
    --dump-po-strings
    --dump-strings
    --help
    --init-file
    --login
    --noediting
    --noprofile
    --norc
    --posix
    --protected
    --rcfile
    --restricted
    --verbose
    --version
Shell options:
    -irsD or -c command or -O shopt_option      (invocation only)
    -abefhkmnptuvxBCHP or -o option
Successfully generated site: source -> public

however, changing this to

{% codeblock '/etc/bashrc' %}

works exactly as expected. I have tried using lang:sh and lang:bash to force the desired behaviour, yet it will constantly produce the same error.

Not sure if this is important, I have new_post_ext and new_page_ext both set to textile.
I am running the latest version of octopress (git pulled) as of right now (moments before this post)

If you need any more information, please let me know.

HRabbit

hrabbit commented Apr 27, 2012

So it turns out this is a Archlinux/Python issue. It can be resolved easily by following the nicely written instructions by Max Gonzih at http://blog.gonzih.org/blog/2011/09/21/fix-octopress-pygments-error-on-arch-linux/.

Closing this issue.

@hrabbit hrabbit closed this Apr 27, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment