Serve error: undefined method `-@' for :liquify:Symbol

Hi all,

I’m trying to use a Jekyll plug-in that expands nested liquid variables in the YAML front matter, but am receiving the following console error after attempting to run the site locally:

$ jekyll serve -w
Configuration file: /Users/consortia/Documents/consortia2017-v4/_config.yml
Configuration file: /Users/consortia/Documents/consortia2017-v4/_config.yml
jekyll 3.4.0 | Error:  undefined method `-@' for :liquify:Symbol

The code for my plug-in file (liquify_filter.rb) is as follows:

---
---

module Jekyll
  module LiquifyFilter
    def liquify(input)
      output = Liquid::Template.parse(input)
      output.render(@context)
    end
  end
end

Liquid::Template.register_filter(Jekyll::LiquifyFilter)

When I run --trace, I get the following:

 /Users/consortia/Documents/consortia2017-v4/_plugins/liquify_filter.rb:10:in `<top (required)>': undefined method `-@' for :liquify:Symbol (NoMethodError)
	from /Users/consortia/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jekyll-3.4.0/lib/jekyll/external.rb:43:in `require'
	from /Users/consortia/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jekyll-3.4.0/lib/jekyll/external.rb:43:in `block in require_with_graceful_fail'
	from /Users/consortia/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jekyll-3.4.0/lib/jekyll/external.rb:40:in `each'
	from /Users/consortia/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jekyll-3.4.0/lib/jekyll/external.rb:40:in `require_with_graceful_fail'
	from /Users/consortia/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jekyll-3.4.0/lib/jekyll/plugin_manager.rb:73:in `block in require_plugin_files'
	from /Users/consortia/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jekyll-3.4.0/lib/jekyll/plugin_manager.rb:71:in `each'
	from /Users/consortia/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jekyll-3.4.0/lib/jekyll/plugin_manager.rb:71:in `require_plugin_files'
	from /Users/consortia/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jekyll-3.4.0/lib/jekyll/plugin_manager.rb:18:in `conscientious_require'
	from /Users/consortia/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jekyll-3.4.0/lib/jekyll/site.rb:111:in `setup'
	from /Users/consortia/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jekyll-3.4.0/lib/jekyll/site.rb:33:in `initialize'
	from /Users/consortia/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jekyll-3.4.0/lib/jekyll/commands/build.rb:28:in `new'
	from /Users/consortia/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jekyll-3.4.0/lib/jekyll/commands/build.rb:28:in `process'
	from /Users/consortia/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jekyll-3.4.0/lib/jekyll/commands/serve.rb:37:in `block (2 levels) in init_with_program'
	from /Users/consortia/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in `call'
	from /Users/consortia/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in `block in execute'
	from /Users/consortia/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in `each'
	from /Users/consortia/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in `execute'
	from /Users/consortia/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/mercenary-0.3.6/lib/mercenary/program.rb:42:in `go'
	from /Users/consortia/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/mercenary-0.3.6/lib/mercenary.rb:19:in `program'
	from /Users/consortia/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jekyll-3.4.0/exe/jekyll:13:in `<top (required)>'
	from /Users/consortia/.rbenv/versions/2.2.2/bin/jekyll:22:in `load'
	from /Users/consortia/.rbenv/versions/2.2.2/bin/jekyll:22:in `<main>'

Any help or suggestions would be greatly appreciated! Thanks! :slight_smile: