Hi,
I try to run a feature with cmd+R and it gives me the following message:
:29:in `require': no such file to load -- spec (LoadError) from :29:in `require' from /Users/mhenrixon/Library/Application Support/TextMate/Bundles/Cucumber.tmbundle/Support/lib/cucumber/mate.rb:23:in `' from :29:in `require' from :29:in `require' from /Users/mhenrixon/Library/Application Support/TextMate/Bundles/Cucumber.tmbundle/Support/lib/cucumber/mate/feature_helper.rb:1:in `' from :29:in `require' from :29:in `require' from /tmp/cucumber-19009.rb:2:in `'
The RSpec specs work fine it's just my features that don't run. I hate having to switch to console to do this. Any suggestions?
Mikael Henriksson
Tel: +46 (0) 730- 393 200 mikael@zoolutions.se
On 25 Dec 2010, at 18:53, Mikael Henriksson wrote:
I try to run a feature with cmd+R and it gives me the following message:
:29:in `require': no such file to load -- spec (LoadError) from :29:in `require' from /Users/mhenrixon/Library/Application Support/TextMate/Bundles/Cucumber.tmbundle/Support/lib/cucumber/mate.rb:23 […] The RSpec specs work fine it's just my features that don't run. I hate having to switch to console to do this. Any suggestions?
I am not familiar with the Cucumber bundle, but from the error you quote it seems that it requires a file which is probably not present for the standard ruby.
You will have to dig into the source code for the bundle to learn more about which files it require.
Actually I found the issue and it has nothing to do with Textmate though I wonder. I need to find the cmd+R command for the bundle and change it to run "bundle exec cucumber" instead of "cucumber"
Thanks Allan
Mikael Henriksson
Tel: +46 (0) 730- 393 200 mikael@zoolutions.se
On Sun, Jan 2, 2011 at 7:50 PM, Allan Odgaard mailinglist@textmate.orgwrote:
On 25 Dec 2010, at 18:53, Mikael Henriksson wrote:
I try to run a feature with cmd+R and it gives me the following message:
:29:in `require': no such file to load -- spec (LoadError) from :29:in `require' from /Users/mhenrixon/Library/Application
Support/TextMate/Bundles/Cucumber.tmbundle/Support/lib/cucumber/mate.rb:23
[…] The RSpec specs work fine it's just my features that don't run. I hate having to switch to console to do this. Any suggestions?
I am not familiar with the Cucumber bundle, but from the error you quote it seems that it requires a file which is probably not present for the standard ruby.
You will have to dig into the source code for the bundle to learn more about which files it require.
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
Ok, this is the command
#!/usr/bin/env sh cat <<'RUBYEOF' > /tmp/cucumber-$$.rb
require ENV['TM_BUNDLE_SUPPORT'] + "/lib/cucumber/mate/feature_helper" runner = Cucumber::Mate::Runner.new(STDOUT, ENV['TM_PROJECT_DIRECTORY'], ENV['TM_FILEPATH'], ENV['TM_CUCUMBER_BIN'], ENV['TM_CUCUMBER_OPTS'])
runner.run_feature
RUBYEOF
${TM_RUBY:-ruby} /tmp/cucumber-$$.rb; exit_status=$?; rm /tmp/cucumber-$$.rb; exit $exit_status
Trying to locate the bundle on my disk but I can\t find it. Going over to github right now. Can I change here somewhere or do I still need to modify the bundle?
Mikael Henriksson
Tel: +46 (0) 730- 393 200 mikael@zoolutions.se
On Mon, Jan 3, 2011 at 8:41 AM, Mikael Henriksson mikael@zoolutions.sewrote:
Actually I found the issue and it has nothing to do with Textmate though I wonder. I need to find the cmd+R command for the bundle and change it to run "bundle exec cucumber" instead of "cucumber"
Thanks Allan
Mikael Henriksson
Tel: +46 (0) 730- 393 200 mikael@zoolutions.se
On Sun, Jan 2, 2011 at 7:50 PM, Allan Odgaard mailinglist@textmate.orgwrote:
On 25 Dec 2010, at 18:53, Mikael Henriksson wrote:
I try to run a feature with cmd+R and it gives me the following message:
:29:in `require': no such file to load -- spec (LoadError) from :29:in `require' from /Users/mhenrixon/Library/Application
Support/TextMate/Bundles/Cucumber.tmbundle/Support/lib/cucumber/mate.rb:23
[…] The RSpec specs work fine it's just my features that don't run. I hate having to switch to console to do this. Any suggestions?
I am not familiar with the Cucumber bundle, but from the error you quote it seems that it requires a file which is probably not present for the standard ruby.
You will have to dig into the source code for the bundle to learn more about which files it require.
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
To answer my own question, I found the answer to my problems in a pull-request. If anyone has problems running cucumber please use > https://github.com/papercavalier/cucumber-tmbundle/blob/ee898901d3d499612390...
copy the contents of the about file to your mate.rb in the ~/Library/Appliation Support/TextMate/Bundles/Cucumber.tmbundle/Support/lib/cucumber/mate.rb
Mikael Henriksson
Tel: +46 (0) 730- 393 200 mikael@zoolutions.se
On Mon, Jan 3, 2011 at 8:41 PM, Mikael Henriksson mikael@zoolutions.sewrote:
Ok, this is the command
#!/usr/bin/env sh cat <<'RUBYEOF' > /tmp/cucumber-$$.rb
require ENV['TM_BUNDLE_SUPPORT'] + "/lib/cucumber/mate/feature_helper" runner = Cucumber::Mate::Runner.new(STDOUT, ENV['TM_PROJECT_DIRECTORY'], ENV['TM_FILEPATH'], ENV['TM_CUCUMBER_BIN'], ENV['TM_CUCUMBER_OPTS'])
runner.run_feature
RUBYEOF
${TM_RUBY:-ruby} /tmp/cucumber-$$.rb; exit_status=$?; rm /tmp/cucumber-$$.rb; exit $exit_status
Trying to locate the bundle on my disk but I can\t find it. Going over to github right now. Can I change here somewhere or do I still need to modify the bundle?
Mikael Henriksson
Tel: +46 (0) 730- 393 200 mikael@zoolutions.se
On Mon, Jan 3, 2011 at 8:41 AM, Mikael Henriksson mikael@zoolutions.sewrote:
Actually I found the issue and it has nothing to do with Textmate though I wonder. I need to find the cmd+R command for the bundle and change it to run "bundle exec cucumber" instead of "cucumber"
Thanks Allan
Mikael Henriksson
Tel: +46 (0) 730- 393 200 mikael@zoolutions.se
On Sun, Jan 2, 2011 at 7:50 PM, Allan Odgaard mailinglist@textmate.orgwrote:
On 25 Dec 2010, at 18:53, Mikael Henriksson wrote:
I try to run a feature with cmd+R and it gives me the following
message:
:29:in `require': no such file to load -- spec (LoadError) from :29:in `require' from /Users/mhenrixon/Library/Application
Support/TextMate/Bundles/Cucumber.tmbundle/Support/lib/cucumber/mate.rb:23
[…] The RSpec specs work fine it's just my features that don't run. I hate having to switch to console to do this. Any suggestions?
I am not familiar with the Cucumber bundle, but from the error you quote it seems that it requires a file which is probably not present for the standard ruby.
You will have to dig into the source code for the bundle to learn more about which files it require.
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate