I want to try RBS in RubyMine,so I follow this link: https://www.jetbrains.com/help/ruby/rbs.html
but in my RubyMine,rbs not work
rbs not work
in video there's new rbs file but no in my RubyMine
no menu
my RubyMine version: 2021.3.2
ruby version:3.10
OS:MacOS 12.1
thanks
The behaviour has changed slightly. RBS is bundled and included as an External library unless it’s included in the Gemfile. Features like the “New RBS file” aren't shown unless the user has it in their Gemfile as that means they actually want to use it.
this is the error image,looks like the RubyMine dont recognize rbs file
Related
Getting the above error when trying to run a feature file. I updated the calabash cucumber to 0.18.2. Since then i am getting this issue. Can anyone help me with this?
The problem is that you have more than one formatter defined. Check your config/cucumber.yml or ./cucumber.yml file. Look for defined formatters like --json or --html. You should also check the version of cucumber you are using. Recently, Calabash iOS and Android dropped the cucumber < 2.0 requirement. You might be experiencing a change between cucumber 1.x and cucumber 2.x. If you want to force cucumber 1.x, use a Gemfile and bundle exec to enforce the change.
My app uses a gem (pygments.rb) for syntax highlighting which requires access to pygments lib.
I cant get it to work on heroku as Python is not part of the rails build pack.
Any help/ link on how to link pygments?
Thanks
P.S. I've looked at TrevorTurk's method but looks like its made for albino rather than pygments.rb
Does anyone know better method to check that we're on heroku?
if ENV['HOME'] == '/app'
require 'rubypython'
RubyPython.start(:python_exe => "python2.6")
end
I found the solution from the link below.
I'm migrating a pre-Rails-3.1 app up to 3.1 (actually, someone else did part of the work of attempting to migrate to 3.0; I'd like to go ahead and get it up to 3.1 now).
When I create a new Rails 3.1 app with rails new, the skeleton app seems fine.
When I run rake test or thin start in the migrated app, though, I get:
/Users/dwhsix/.rvm/gems/ruby-1.9.2-p290#zmy/gems/sass-rails-3.1.0.rc.6/lib/sass/rails/template_handlers.rb:32:in `<class:SassTemplate>': undefined method `default_mime_type=' for Sass::Rails::SassTemplate:Class (NoMethodError)
I think I have things configured correctly. Gems are correct, application.rb has:
config.assets.enabled = true
config.generators.stylesheet_engine = :sass
Is there more that is needed somewhere?
Thanks...
May be please try adding one more at application.rb, since rails 3.1 use scss as default.
config.sass.preferred_syntax = :sass
and there is some mime related settings at initializers/mime_types.rb, so you may try to play with that too.
You could also switch to scss if you wanted to, by using the sass-convert command. I originally used sass syntax, but later decided I liked scss better and switched to that.
sass-convert -F sass -T scss mystyle.sass mystyle.scss
Okay, this turned out to be a problem of having too many versions of various gems installed. The real culprit was the wrong version of tilt, which was being brought in by some other gem. Clearing that, and resetting Gemfile.lock, took care of it.
I had the same problem just now. My solution was to update the tilt gem as described in this github issue. Apparently, the default mime type method, is added after tilt 1.3.0.
I'm trying to prettify my rdoc documentation, using version 3.5.3. I'm not a fan of the built-in darkfish theme, so I tried to find a way to replace it with the one used by the official Rails API documentation at http://api.rubyonrails.org/, but I've had no luck finding it in any readily available form. I've searched all over github, among other things.
What I've found so far is
https://github.com/mislav/hanna
which might be slightly out of date, and it's fork
https://github.com/rdoc/hanna-nouveau
Both are nice, but not quite what I want. So before I start fiddling with those templates, does anyone know if the template used by the Rails API docs is available as a gem somewhere?
Thanks!
I know this is very late, but it looks like the new version of Rails uses something called sdoc, which enhances the output with JavaScript searching, and is a little cleaner IMO. Doing a simple "gem install sdoc" will get what you need, then just use rdoc.options << '-f' << 'sdoc'.
The github project appears to be at https://github.com/voloko/sdoc/
By the way, thanks for the question! Without the initial answer posted, I'd have never found where to look, and been stuck with that horrible darkfish theme for my own projects!
This looks like it. Ignore the instructions that say to do a gem install horo --pre -- that'll actually give you an older beta version. Just do gem install horo and you'll get the current 1.0.3 version (Edit: I sent a pull request to update the instructions, which has already been accepted).
https://github.com/tenderlove/horo
By the way, I found this by looking at the Rails source code and viewing the Rakefile to see the RDoc options. Specifically, line 67 shows rdoc.options << '-f' << 'horo'.
Has anyone used RubyMine who could help me out?
I am new to RubyMine, and when I create my first project and add a few classes and wire them together for a simple meaningless application I am getting this error:
"uninitialized constant RubyApp (NameError)"
But when I take all the classes and put them in one file then run it, it runs fine.
What am I missing about using RubyMine here?
Thanks for the help.
Is "RubyApp" one of your classes?
If so, it sounds like you're not requiring the other ruby files you're creating.
RubyMine pretty much doesn't get in your way at all, although it does like having gems 'attached' to the project.
Not sure if this applies to your case, since I've only run into this issue with gems. But, Rubymine requires you to link the gems your using and what not into your project settings for things to work. At least that is how I remember it when I tried it out.