JRuby and Java code completion

Answered

IDEA can't autocomplete java things

require 'java'

frame = javax.swing.JFrame.new()

For example, it doesn't recognize javax.swing package and nested objects neither.

How to turn autocompletion on?

0
4 comments

Hello,

Is it possible to share sample project for investigation?

0

Hi, it's just empty project created with "New Project -> Empty Project".

Should I create with "New Project -> Gem"?

 

0

Sorry, if you create empty project then no modules are there. Did you add any module? 

0

I added JRuby sdk, that's it. Do I need to add somewhere JDK as a module?

0

Please sign in to leave a comment.