Anyone out there using emacs robe-mode with ChefDK?

So, I would like to have nice source code completions for my Chef code in emacs.

robe-mode seemed like an easy way to make this happen, but when I try to use it, I get the following stack trace:

irb(main):001:0> LoadError: cannot load such file -- pry
	from /Users/cpatti/.emacs.d/elpa/robe-20150430.1724/lib/robe/sash/doc_for.rb:1:in `require'
	from /Users/cpatti/.emacs.d/elpa/robe-20150430.1724/lib/robe/sash/doc_for.rb:1:in `<top (required)>'
	from /Users/cpatti/.emacs.d/elpa/robe-20150430.1724/lib/robe/sash.rb:1:in `require'
	from /Users/cpatti/.emacs.d/elpa/robe-20150430.1724/lib/robe/sash.rb:1:in `<top (required)>'
	from /Users/cpatti/.emacs.d/elpa/robe-20150430.1724/lib/robe.rb:1:in `require'
	from /Users/cpatti/.emacs.d/elpa/robe-20150430.1724/lib/robe.rb:1:in `<top (required)>'
	from (irb):1:in `require'
	from (irb):1
	from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/bundler-1.7.12/lib/bundler/cli/console.rb:38:in `run'
	from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/bundler-1.7.12/lib/bundler/cli.rb:286:in `console'
	from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/bundler-1.7.12/lib/bundler/vendor/thor/command.rb:27:in `run'
	from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/bundler-1.7.12/lib/bundler/vendor/thor/invocation.rb:121:in `invoke_command'
	from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/bundler-1.7.12/lib/bundler/vendor/thor.rb:363:in `dispatch'
	from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/bundler-1.7.12/lib/bundler/vendor/thor/base.rb:440:in `start'
	from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/bundler-1.7.12/lib/bundler/cli.rb:9:in `start'
	from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/bundler-1.7.12/bin/bundle:20:in `block in <top (required)>'
	from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/bundler-1.7.12/lib/bundler/friendly_errors.rb:5:in `with_friendly_errors'
	from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/bundler-1.7.12/bin/bundle:18:in `<top (required)>'
	from /opt/chefdk/embedded/bin/bundle:23:in `load'
	from /opt/chefdk/embedded/bin/bundle:23:in `<main>'irb(main):002:0> 

Given that I know that ChefDK bundles Pry, I’m mightily confused and could use some guidance.

This is emacs 25 on OSX Yosemite - 10.18.8

Thanks in advance!
-Chris

Hey!

So I haven’t played with robe-mode but IIRC someone else recently asked about it.

How I got around this problem, is i added chef-mode to yasnippet instead. It’s not a great answer but for my workflow and emacs it’s done really well.

I’ve also written test-kitchen.el for running test-kitchen inside emacs too, still trying to get it to melpa.

1 Like