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
Closed

Liquid error: undefined method Syntax Highlighting Ubuntu Oneiric #243

yodiaditya opened this issue Oct 23, 2011 · 6 comments

Comments

@yodiaditya
Copy link

@yodiaditya 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
Copy link
Contributor

@fhemberger fhemberger commented Oct 24, 2011

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

@optikfluffel
Copy link

@optikfluffel optikfluffel commented Jul 10, 2012

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

@fhemberger
Copy link
Contributor

@fhemberger 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
Copy link

@optikfluffel 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
Copy link

@joffotron joffotron commented Aug 14, 2012

I fixed that particular plugin by changing that line to

lines = super
@podblog
Copy link

@podblog 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
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
6 participants