{"action":"created","issue":{"url":"https://api.github.com/repos/robotframework/RIDE/issues/949","labels_url":"https://api.github.com/repos/robotframework/RIDE/issues/949/labels{/name}","comments_url":"https://api.github.com/repos/robotframework/RIDE/issues/949/comments","events_url":"https://api.github.com/repos/robotframework/RIDE/issues/949/events","html_url":"https://github.com/robotframework/RIDE/issues/949","id":84015512,"number":949,"title":"Stale Library objects.","user":{"login":"yanne","id":159146,"avatar_url":"https://avatars.githubusercontent.com/u/159146?v=3","gravatar_id":"","url":"https://api.github.com/users/yanne","html_url":"https://github.com/yanne","followers_url":"https://api.github.com/users/yanne/followers","following_url":"https://api.github.com/users/yanne/following{/other_user}","gists_url":"https://api.github.com/users/yanne/gists{/gist_id}","starred_url":"https://api.github.com/users/yanne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yanne/subscriptions","organizations_url":"https://api.github.com/users/yanne/orgs","repos_url":"https://api.github.com/users/yanne/repos","events_url":"https://api.github.com/users/yanne/events{/privacy}","received_events_url":"https://api.github.com/users/yanne/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/robotframework/RIDE/labels/wontfix","name":"wontfix","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-06-02T13:11:32Z","updated_at":"2015-06-02T13:11:38Z","closed_at":null,"body":"> *Originally submitted to [Google Code](http://code.google.com/p/robotframework-ride/issues/detail?id=914) by alexma... on 15 Jan 2012*\n\n\nWhen RIDE starts it creates objects instances when importing Libs. The objects become stale after a file save - running tests from Ride will fail. It has to be restarted after each save operation.\n\n"},"comment":{"url":"https://api.github.com/repos/robotframework/RIDE/issues/comments/107948764","html_url":"https://github.com/robotframework/RIDE/issues/949#issuecomment-107948764","issue_url":"https://api.github.com/repos/robotframework/RIDE/issues/949","id":107948764,"user":{"login":"yanne","id":159146,"avatar_url":"https://avatars.githubusercontent.com/u/159146?v=3","gravatar_id":"","url":"https://api.github.com/users/yanne","html_url":"https://github.com/yanne","followers_url":"https://api.github.com/users/yanne/followers","following_url":"https://api.github.com/users/yanne/following{/other_user}","gists_url":"https://api.github.com/users/yanne/gists{/gist_id}","starred_url":"https://api.github.com/users/yanne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yanne/subscriptions","organizations_url":"https://api.github.com/users/yanne/orgs","repos_url":"https://api.github.com/users/yanne/repos","events_url":"https://api.github.com/users/yanne/events{/privacy}","received_events_url":"https://api.github.com/users/yanne/received_events","type":"User","site_admin":false},"created_at":"2015-06-02T13:11:38Z","updated_at":"2015-06-02T13:11:38Z","body":"> *Originally submitted to [Google Code](http://code.google.com/p/robotframework-ride/issues/detail?id=914#c5) by @mkorpela on 16 Jan 2012*\n\n\nCould you test if you create these com ports after __init__ and see how RIDE behaves after this?\r\n\r\nfor example with a property:\r\n\r\ndef __init__(self):\r\n    self._com_port = None\r\n\r\n\r\n@&#8288;property\r\ndef com_port(self):\r\n    if not self._com_port:\r\n       self._com_port = self._create_com_port()\r\n    return self._com_port\r\n\r\n\r\nAlso do you have some code in the __del__ method? This can also be problematic.\r\n\r\n\n\n"}}