I am a long time Java developer that uses IntelliJ Ultimate daily. I wanted to look into Ruby / Linux / GTK. Since I have the 'all products' subscription I figured I'd give it a try. I am attempting to follow this tutorial but it's hopeless with RubyMine - it works just fine from the command line:
I have tried in both InitelliJ and RubyMine. I have installed various versions of Ruby using rvm (2.3.x, 2.4.4 and 2.5.1), none of which made any difference. I have (to my knowledge) told the IDE which SDK to use it for my project and yet this simplest of code has all sorts of problems according to RubyMine. How do I make the IDE code sense work??
I am using the latest versions of InteliJ and RubyMine as of today (IntelliJ 2018.1.2, I'm not at the computer with Rubymine installed)
In this screenshot we can see that although it thinks it is happy with 'Gtk::Application' it clearly isn't because things like 'signal_connect' are all unknown. Again, even though it appears to know about 'Gio', it certainly doesn't know about 'ApplicationFlags' and yet no end of internet searching tells me that there is anything wrong with that? Indeed all the code I look at uses that example.
Here's my Gemfile all I've done is add gtk3, otherwise it's the default
And finally, here's my module config.
Note that given I'm completely new to Ruby, I could easily be doing something wrong but I don't really want to ditch the IDE to learn.