简体   繁体   English

从RubyMine在Neo Ruby Koans上运行rake

[英]Running rake from RubyMine on the Neo Ruby Koans

I have downloaded the Neo Ruby Koans from Neo Ruby Koans site unzipped to a folder 'koans' and opened the folder as a new project in RubyMine (the trial version). 我已经从Neo Ruby Koans站点下载了Neo Ruby Koans 压缩到文件夹'koans'并打开了该文件夹作为RubyMine中的新项目(试用版)。 How do I run the rake task, preferably with keyboard shortcuts, from within RubyMine? 如何从RubyMine中运行rake任务,最好使用键盘快捷键? When I try Alt-R the only available rake tasks are clean and clobber plus there is an option to 'reload rake tasks'. 当我尝试使用Alt-R ,唯一可用的rake任务是cleanclobber加上有一个“重新加载rake任务”的选项。 If I go to the koans folder in a terminal and do rake I get the desired effect. 如果我去终端的koans文件夹并做rake我得到了所需的效果。

I just downloaded the koans and the tasks aren't showing up in the run options for the rake because they aren't commented. 我刚刚下载了koans,并且任务没有显示在rake的运行选项中,因为它们没有被注释。

If you open a terminal at the same location as the rake file and run rake -T it will show you the commented rake tasks only. 如果您在与rake文件相同的位置打开终端并运行rake -T ,它将仅显示已注释的rake任务。 This is what RubyMine is doing. 这就是RubyMine正在做的事情。 If you run rake -T -all the other tasks will show up as well. 如果你运行rake -T -all ,其他任务也会显示出来。

To get rubymine to show these tasks in the Alt-R list, check the box that says 'include undocumented' on the pop up. 要让rubymine在Alt-R列表中显示这些任务,请在弹出窗口中选中“include untocumented”复选框。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM