{"action":"created","issue":{"url":"https://api.github.com/repos/Komodo/KomodoEdit/issues/528","repository_url":"https://api.github.com/repos/Komodo/KomodoEdit","labels_url":"https://api.github.com/repos/Komodo/KomodoEdit/issues/528/labels{/name}","comments_url":"https://api.github.com/repos/Komodo/KomodoEdit/issues/528/comments","events_url":"https://api.github.com/repos/Komodo/KomodoEdit/issues/528/events","html_url":"https://github.com/Komodo/KomodoEdit/issues/528","id":101117702,"number":528,"title":"CodeIntel isn't aware of the return type of Kernel#gets in Ruby","user":{"login":"Defman21","id":7100645,"avatar_url":"https://avatars.githubusercontent.com/u/7100645?v=3","gravatar_id":"","url":"https://api.github.com/users/Defman21","html_url":"https://github.com/Defman21","followers_url":"https://api.github.com/users/Defman21/followers","following_url":"https://api.github.com/users/Defman21/following{/other_user}","gists_url":"https://api.github.com/users/Defman21/gists{/gist_id}","starred_url":"https://api.github.com/users/Defman21/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Defman21/subscriptions","organizations_url":"https://api.github.com/users/Defman21/orgs","repos_url":"https://api.github.com/users/Defman21/repos","events_url":"https://api.github.com/users/Defman21/events{/privacy}","received_events_url":"https://api.github.com/users/Defman21/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Komodo/KomodoEdit/labels/Enhancement","name":"Enhancement","color":"009800"}],"state":"closed","locked":false,"assignee":{"login":"mitchell-as","id":12902397,"avatar_url":"https://avatars.githubusercontent.com/u/12902397?v=3","gravatar_id":"","url":"https://api.github.com/users/mitchell-as","html_url":"https://github.com/mitchell-as","followers_url":"https://api.github.com/users/mitchell-as/followers","following_url":"https://api.github.com/users/mitchell-as/following{/other_user}","gists_url":"https://api.github.com/users/mitchell-as/gists{/gist_id}","starred_url":"https://api.github.com/users/mitchell-as/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mitchell-as/subscriptions","organizations_url":"https://api.github.com/users/mitchell-as/orgs","repos_url":"https://api.github.com/users/mitchell-as/repos","events_url":"https://api.github.com/users/mitchell-as/events{/privacy}","received_events_url":"https://api.github.com/users/mitchell-as/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/Komodo/KomodoEdit/milestones/14","html_url":"https://github.com/Komodo/KomodoEdit/milestones/10.1","labels_url":"https://api.github.com/repos/Komodo/KomodoEdit/milestones/14/labels","id":1659994,"number":14,"title":"10.1","description":"","creator":{"login":"Naatan","id":278649,"avatar_url":"https://avatars.githubusercontent.com/u/278649?v=3","gravatar_id":"","url":"https://api.github.com/users/Naatan","html_url":"https://github.com/Naatan","followers_url":"https://api.github.com/users/Naatan/followers","following_url":"https://api.github.com/users/Naatan/following{/other_user}","gists_url":"https://api.github.com/users/Naatan/gists{/gist_id}","starred_url":"https://api.github.com/users/Naatan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Naatan/subscriptions","organizations_url":"https://api.github.com/users/Naatan/orgs","repos_url":"https://api.github.com/users/Naatan/repos","events_url":"https://api.github.com/users/Naatan/events{/privacy}","received_events_url":"https://api.github.com/users/Naatan/received_events","type":"User","site_admin":false},"open_issues":266,"closed_issues":15,"state":"open","created_at":"2016-03-22T15:28:16Z","updated_at":"2016-06-15T15:01:30Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2015-08-14T22:47:24Z","updated_at":"2016-06-15T15:01:30Z","closed_at":"2016-06-15T15:01:30Z","body":"```ruby\r\nlogin = gets.chomp\r\n\r\nputs \"Login: #{login.|}\"\r\n```\r\n| is the cursor, press Ctrl+J does not shows anything related to String methods, but If I'll use this code\r\n```ruby\r\nlogin = \"\"\r\nlogin = gets.chomp\r\nputs \"Login: #{login.|}\"\r\n```\r\nthen I get methods and variables of `Class` string. @ervumlens described a lot of useful things in this post: http://forum.komodoide.com/t/set-the-type-of-variable-in-ruby-for-komodo-auto-complete/1913/5?u=defman but I'll post it here:\r\nIt looks like CodeIntel isn't aware of the return type of `Kernel#gets`. I get no CodeIntel help for the variables used in this code:\r\n\r\n```ruby\r\n\r\nabc = Kernel::gets\r\nputs abc\r\n\r\nghi = gets\r\nputs ghi\r\n\r\nxyz = Kernel.gets\r\nputs xyz\r\n\r\n```\r\n\r\nBut like Defman's workaround, I get help for everything here because I'm assigning directly to strings:\r\n\r\n```ruby\r\n\r\nabc = \"\"\r\nabc = Kernel::gets\r\nputs abc\r\n\r\nghi = \"\"\r\nghi = gets\r\nputs ghi\r\n\r\nxyz = \"\"\r\nxyz = Kernel.gets\r\nputs xyz\r\n```\r\n\r\nMight just be a definition problem somewhere in CodeIntel's Ruby spec."},"comment":{"url":"https://api.github.com/repos/Komodo/KomodoEdit/issues/comments/226215186","html_url":"https://github.com/Komodo/KomodoEdit/issues/528#issuecomment-226215186","issue_url":"https://api.github.com/repos/Komodo/KomodoEdit/issues/528","id":226215186,"user":{"login":"mitchell-as","id":12902397,"avatar_url":"https://avatars.githubusercontent.com/u/12902397?v=3","gravatar_id":"","url":"https://api.github.com/users/mitchell-as","html_url":"https://github.com/mitchell-as","followers_url":"https://api.github.com/users/mitchell-as/followers","following_url":"https://api.github.com/users/mitchell-as/following{/other_user}","gists_url":"https://api.github.com/users/mitchell-as/gists{/gist_id}","starred_url":"https://api.github.com/users/mitchell-as/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mitchell-as/subscriptions","organizations_url":"https://api.github.com/users/mitchell-as/orgs","repos_url":"https://api.github.com/users/mitchell-as/repos","events_url":"https://api.github.com/users/mitchell-as/events{/privacy}","received_events_url":"https://api.github.com/users/mitchell-as/received_events","type":"User","site_admin":false},"created_at":"2016-06-15T15:01:29Z","updated_at":"2016-06-15T15:01:29Z","body":"I used the debugger to inspect the RDoc objects from Ruby's ri library (the library we use to produce our Ruby codeintel with) and there is no return type information available. Therefore there's nothing we can infer. Closing ticket."}}
{"actor":{"display_login":"mitchell-as"}}