从IntelliJ(OSX)启动Ruby-Cucumber [英] Launching Ruby-Cucumber from IntelliJ (OSX)

查看:380
本文介绍了从IntelliJ(OSX)启动Ruby-Cucumber的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在一份新工作,并使用IntelliJ与Ruby和Cucumber ..所有这些都是我的新。

I am in a new job and am using IntelliJ with Ruby and Cucumber.. all of which are new to me.

我有一个工作项目专案: https://github.com/jonathanchrisp/selenium-cucumber-ruby-kickstarter

I have a working project based upon this project: https://github.com/jonathanchrisp/selenium-cucumber-ruby-kickstarter

所以,从命令行,我这样运行我的项目:

So, from the command line, I run my project like this:

  sudo cukesparse something

cukesparse不是我的项目, :一个简单的命令行解析器将默认和自定义参数传递给Cucumber,并且有能力在config / tasks.yml文件中定义这些任务。
(对我来说很有趣)

cukesparse is not my project but here is a quick description from github: "A simple command line parser to pass default and custom arguments into Cucumber with the power to define these as tasks in a config/tasks.yml file!" (seems interesting enough to me)

所以,从命令行我可以执行这个项目没有任何问题。我也可以Build> Rebuild Project没有问题。

So, from the command line I am able to execute this project without any problems. I am also able to "Build > Rebuild Project" without issue.

我的问题是关于获取一个运行配置工作。我试图去运行>编辑配置,但没有运气创建一个配置开始我的运行。当我尝试从'基本配置'列表中单击Ruby时,IntelliJ似乎不想让我选择它。 UI排序不响应。

My question is regarding getting a Run Config to work. I have tried to go to Run > Edit Configurations, but have had no luck creating a config to start my run. When I try to click Ruby from the list of 'base configurations', IntelliJ doesn't seem to want me to pick it. The UI sort of doesn't respond.

我必须坚持一些明显的新手booboo。任何提示非常感谢!

I must be stuck with some obvious newbie booboo. Any tips greatly appreciated!

推荐答案

我没有得到底部的问题是什么,但完全删除IntelliJ (使用Jenny的评论:在IntelliJ在OS X上,如何清除所有全局设置信息,许可等(任何项目外部))和重新安装一个非常小的插件集固定它。我基本上只启用了git插件,然后获得了ruby插件从存储库,没有其他插件。

I didn't ever get to the bottom of exactly what the issue was, but completely removing IntelliJ (using the comment from Jenny here: In IntelliJ on OS X, how do you clear out all global setting info, licensing etc. (external to any project)) and reinstalling with a very minimal plugin set fixed it. I basically only enabled the git plugin, then got the ruby plugin from the repository and no other plugins.

我需要添加黄瓜gem从命令行,但没有成为问题的一部分。我选择的插件使一些运行配置不起作用。

I did need to add the cucumber gem from the command line but that didn't turn out to be part of the problem. Something about the plugins I had selected was making some of the Run Configurations not function.

这篇关于从IntelliJ(OSX)启动Ruby-Cucumber的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆