Alex Rivera | Logout

Textmate cucumber bundle issues - 'Run Feature' producing errors

Asked 2010-09-14T00:10:16.277
10

From a cucumber feature file when I go to 'Run features' Im getting the error below in the popup box that appears.

How do I fix this?


/Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in gem_original_require': no such file to load -- /Users/evolve/Projects/i9/Tornelo/.bundle/environment (LoadError) from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:inrequire' from /Users/evolve/Library/Application Support/TextMate/Bundles/Cucumber.tmbundle/Support/lib/cucumber/mate/../mate.rb:10 from /Users/evolve/Library/Application Support/TextMate/Bundles/Cucumber.tmbundle/Support/lib/cucumber/mate/feature_helper.rb:1:in require' from /Users/evolve/Library/Application Support/TextMate/Bundles/Cucumber.tmbundle/Support/lib/cucumber/mate/feature_helper.rb:1 from /tmp/cucumber-906.rb:2:inrequire' from /tmp/cucumber-906.rb:2

Edit
Report

3 Answers

2

This has happened to me since I loaded rvm and gone through the steps listed under packages for textmate. Now, when I 'run feature' for a cucumber feature from within textmate I get an error '.bundle/environment no such file to load'. I don't have a .bundle/environment.rb so I created an empty one and the feature gets run but the environment.rb file gets deleted every time! (Making me very keen to see this fixed!) If you have any feedback to add to your post I'd be very interested to hear it.

Since I posted this, I've reloaded the Textmate cucumber bundle and the problem has gone away. Beware though - the installation instructions are incorrect - they should read

mkdir -p ~/Library/Application\ Support/TextMate/Bundles/
cd ~/Library/Application\ Support/TextMate/Bundles
rm -rf Cucumber.tmbundle
git clone http://github.com/drnic/cucumber-tmbundle Cucumber.tmbundle
osascript -e 'tell app "TextMate" to reload bundles'

You don't need the 'rm -rf Cucumber.tmbundle' line if this is a first install. No editing of files needed! You will be able to update from within textmate once you have done this.

answered 2010-10-13T09:51:55.193
1

Codeape has forked and updated the bundle. I applied a hack myself with a little help from some guru's.

Try this: github.com/codeape/cucumber-tmbundle

Let me know how it goes user241560.

answered 2010-10-13T23:45:51.407
0

It seems like the Textmate Cucumber bundle is currently lagging on development in the main branch. People seem to be addressing issues as they come up ie Bundler/ Rspec2 /Rails3 / RVM.

Anyone else with problems, I suggest checking the github network map and finding recent branches which talk of issues similar to what you are having.

https://github.com/aslakhellesoy/cucumber-tmbundle/network

answered 2011-01-28T00:46:50.717

Your Answer