简体   繁体   English

RubyMine 5.4 sinatra支持

[英]RubyMine 5.4 sinatra support

I can't get the Sinatra support to work on RubyMine 5.4. 我无法获得Sinatra对RubyMine 5.4的支持。 Everything runs well but i would love to have some support from the RubyMine IDE. 一切运行良好但我希望得到RubyMine IDE的一些支持。 在此输入图像描述

Should I assume you have the rack gem installed? 我应该假设你安装了机架宝石吗? Seems it would be unusual for that not to be the case, but it seems to be required. 似乎不是那种情况不常见,但似乎是必需的。 EDIT: I would guess that, if Sinatra is used in place of Rails, it wouldn't be that unusual not to have rack. 编辑:我猜想,如果使用Sinatra代替Rails,那么没有架子就不会那么不寻常。

From Rubymine 5.4.3.2.1 Help: 来自Rubymine 5.4.3.2.1帮助:

Gems sinatra and rack are supported With the 'sinatra' and 'rack' gems installed, it is possible to create and run sinatra applications. Gems sinatra和机架支持安装'sinatra'和'rack'宝石后,可以创建和运行sinatra应用程序。 Code completion, error and syntax highlighting are available. 可以使用代码完成,错误和语法突出显示。

I included it in my Gemfile, did a Bundle Install, and required it. 我把它包含在我的Gemfile中,做了一个Bundle Install,并且需要它。 The result is displayed. 结果显示出来。

I did no further configuration than this, so I can't think of any settings that would be causing you a problem. 我没有进一步的配置,所以我想不出任何会导致你出现问题的设置。

You can search at JetBrains, but I didn't see a hit there myself. 你可以在JetBrains上搜索,但我自己也没有看到它。 You can post an issue here . 您可以在此处发布问题。 Serge provides great support! Serge提供了很好的支持! I should know, as I bug him all the time for help... 我应该知道,因为我一直在向他提出帮助......

在此输入图像描述

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

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