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

Liquid error: undefined method Syntax Highlighting Ubuntu Oneiric #243

Closed
yodiaditya opened this Issue Oct 23, 2011 · 6 comments

Comments

Projects
None yet
6 participants
@yodiaditya
Copy link

yodiaditya commented Oct 23, 2011

After upgrading into Ubuntu Oneiric, i found error syntax highlighting {% codeblock %} at my octopress blog :

 Liquid error: undefined method `join’ for #<String:0x00000001b65f70>  

This is because Liquid 2.3.0. So, i downgrade into Liquid 2.2.2 and solve this problem.

Somebody also facing this problem.

I post "How to develop Octopress on Ubuntu Oneiric" to help people avoid rake install error and syntax hightlighting.

Thanks

@fhemberger

This comment has been minimized.

Copy link
Contributor

fhemberger commented Oct 24, 2011

Thank you for pointing this out, I added the Liquid version to the Gemfile.

@optikfluffel

This comment has been minimized.

Copy link

optikfluffel commented Jul 10, 2012

what can I do if I need to use liquid 2.3 because of jekyll?

@fhemberger

This comment has been minimized.

Copy link
Contributor

fhemberger commented Jul 12, 2012

Try the following:
plugins/code_block.rb, line 67: Replace code = super.join with code = super.

The same error also exists in the blockquote plugin:
plugins/blockquote.rb, line 49: Replace quote = paragraphize(super.map(&:strip).join) with quote = paragraphize(super.strip)

@fhemberger fhemberger reopened this Jul 12, 2012

@optikfluffel

This comment has been minimized.

Copy link

optikfluffel commented Jul 12, 2012

Could you tell me what the problem is? Is the .map method deprecated?
btw I have to fix this one:

# Convert the entire content array into one large string
lines = super.map(&:strip).join("\n")
@joffotron

This comment has been minimized.

Copy link

joffotron commented Aug 14, 2012

I fixed that particular plugin by changing that line to

lines = super
@podblog

This comment has been minimized.

Copy link

podblog commented Oct 26, 2012

Jon - that helped so much with something I struggled with all day. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.