{"action":"created","issue":{"url":"https://api.github.com/repos/stretto-editor/stretto/issues/3","repository_url":"https://api.github.com/repos/stretto-editor/stretto","labels_url":"https://api.github.com/repos/stretto-editor/stretto/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/stretto-editor/stretto/issues/3/comments","events_url":"https://api.github.com/repos/stretto-editor/stretto/issues/3/events","html_url":"https://github.com/stretto-editor/stretto/issues/3","id":194294116,"number":3,"title":"Config file can't be opened because of malformed file path on Windows","user":{"login":"flawiddsouza","id":10164500,"avatar_url":"https://avatars.githubusercontent.com/u/10164500?v=3","gravatar_id":"","url":"https://api.github.com/users/flawiddsouza","html_url":"https://github.com/flawiddsouza","followers_url":"https://api.github.com/users/flawiddsouza/followers","following_url":"https://api.github.com/users/flawiddsouza/following{/other_user}","gists_url":"https://api.github.com/users/flawiddsouza/gists{/gist_id}","starred_url":"https://api.github.com/users/flawiddsouza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flawiddsouza/subscriptions","organizations_url":"https://api.github.com/users/flawiddsouza/orgs","repos_url":"https://api.github.com/users/flawiddsouza/repos","events_url":"https://api.github.com/users/flawiddsouza/events{/privacy}","received_events_url":"https://api.github.com/users/flawiddsouza/received_events","type":"User","site_admin":false},"labels":[{"id":358067936,"url":"https://api.github.com/repos/stretto-editor/stretto/labels/bug","name":"bug","color":"ee0701","default":true}],"state":"closed","locked":false,"assignee":{"login":"eric-burel","id":7983005,"avatar_url":"https://avatars.githubusercontent.com/u/7983005?v=3","gravatar_id":"","url":"https://api.github.com/users/eric-burel","html_url":"https://github.com/eric-burel","followers_url":"https://api.github.com/users/eric-burel/followers","following_url":"https://api.github.com/users/eric-burel/following{/other_user}","gists_url":"https://api.github.com/users/eric-burel/gists{/gist_id}","starred_url":"https://api.github.com/users/eric-burel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eric-burel/subscriptions","organizations_url":"https://api.github.com/users/eric-burel/orgs","repos_url":"https://api.github.com/users/eric-burel/repos","events_url":"https://api.github.com/users/eric-burel/events{/privacy}","received_events_url":"https://api.github.com/users/eric-burel/received_events","type":"User","site_admin":false},"assignees":[{"login":"eric-burel","id":7983005,"avatar_url":"https://avatars.githubusercontent.com/u/7983005?v=3","gravatar_id":"","url":"https://api.github.com/users/eric-burel","html_url":"https://github.com/eric-burel","followers_url":"https://api.github.com/users/eric-burel/followers","following_url":"https://api.github.com/users/eric-burel/following{/other_user}","gists_url":"https://api.github.com/users/eric-burel/gists{/gist_id}","starred_url":"https://api.github.com/users/eric-burel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eric-burel/subscriptions","organizations_url":"https://api.github.com/users/eric-burel/orgs","repos_url":"https://api.github.com/users/eric-burel/repos","events_url":"https://api.github.com/users/eric-burel/events{/privacy}","received_events_url":"https://api.github.com/users/eric-burel/received_events","type":"User","site_admin":false}],"milestone":null,"comments":4,"created_at":"2016-12-08T10:06:11Z","updated_at":"2016-12-08T16:26:25Z","closed_at":"2016-12-08T16:26:25Z","body":"The bug is in stretto/config.go:\r\n`file, e := ioutil.ReadFile(usr.HomeDir + \"/.stretto.json\")`\r\nHere path/filepath should be used to join two paths instead of adding the forward slash, so that there are no issues on different OSs.\r\nFix:\r\n```\r\nimport \"path/filepath\"\r\nfile, e := ioutil.ReadFile(filepath.Join(usr.HomeDir, \".stretto.json\"))\r\n```\r\nThe path formed on my computer was: `C:\\Users\\MyUsername/.stretto.json`\r\nWhat should've been formed was: `C:\\Users\\MyUsername\\.stretto.json`"},"comment":{"url":"https://api.github.com/repos/stretto-editor/stretto/issues/comments/265783898","html_url":"https://github.com/stretto-editor/stretto/issues/3#issuecomment-265783898","issue_url":"https://api.github.com/repos/stretto-editor/stretto/issues/3","id":265783898,"user":{"login":"eric-burel","id":7983005,"avatar_url":"https://avatars.githubusercontent.com/u/7983005?v=3","gravatar_id":"","url":"https://api.github.com/users/eric-burel","html_url":"https://github.com/eric-burel","followers_url":"https://api.github.com/users/eric-burel/followers","following_url":"https://api.github.com/users/eric-burel/following{/other_user}","gists_url":"https://api.github.com/users/eric-burel/gists{/gist_id}","starred_url":"https://api.github.com/users/eric-burel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eric-burel/subscriptions","organizations_url":"https://api.github.com/users/eric-burel/orgs","repos_url":"https://api.github.com/users/eric-burel/repos","events_url":"https://api.github.com/users/eric-burel/events{/privacy}","received_events_url":"https://api.github.com/users/eric-burel/received_events","type":"User","site_admin":false},"created_at":"2016-12-08T16:26:25Z","updated_at":"2016-12-08T16:26:25Z","body":"I definitely had a strong Text Editor period ^^. Thanks for the report."}}
{"actor":{"display_login":"eric-burel"}}