Code completion for native OpenSSL extension
Hi
RubyMine3.1 does not provide code completion for Ruby1.9 native OpenSSL extension.
For example, in the code below (Just to read a key file):
require 'openssl'
cakey = OpenSSL::PKey::RSA.new(File.read('cakey.pem'))
I cannot get any suggestion for OpenSSL::P* from RubyMine and it shows the warning "Cannot find 'PKey' for type 'OpenSSL'" with gray wavy underline.
Is it possible to have better understanding for that native extension ?
Thank you,
Please sign in to leave a comment.
Hello Tomoki,
Unfortunally OpenSSL is distributed via native compiled code, so RubyMine cannot find declared classes and methods.
However we have an issue related to this problem: http://youtrack.jetbrains.net/issue/RUBY-4344
Feel free to vote, comment and get notified once it is fixed.
Regards,
Oleg
An implementation using reflection would be useful even partial information.
Thank you Oleg,