{"action":"created","issue":{"url":"https://api.github.com/repos/SublimeTextIssues/Core/issues/1260","repository_url":"https://api.github.com/repos/SublimeTextIssues/Core","labels_url":"https://api.github.com/repos/SublimeTextIssues/Core/issues/1260/labels{/name}","comments_url":"https://api.github.com/repos/SublimeTextIssues/Core/issues/1260/comments","events_url":"https://api.github.com/repos/SublimeTextIssues/Core/issues/1260/events","html_url":"https://github.com/SublimeTextIssues/Core/issues/1260","id":163516040,"number":1260,"title":"`open_file` command can't handle Windows paths","user":{"login":"FichteFoll","id":931051,"avatar_url":"https://avatars.githubusercontent.com/u/931051?v=3","gravatar_id":"","url":"https://api.github.com/users/FichteFoll","html_url":"https://github.com/FichteFoll","followers_url":"https://api.github.com/users/FichteFoll/followers","following_url":"https://api.github.com/users/FichteFoll/following{/other_user}","gists_url":"https://api.github.com/users/FichteFoll/gists{/gist_id}","starred_url":"https://api.github.com/users/FichteFoll/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FichteFoll/subscriptions","organizations_url":"https://api.github.com/users/FichteFoll/orgs","repos_url":"https://api.github.com/users/FichteFoll/repos","events_url":"https://api.github.com/users/FichteFoll/events{/privacy}","received_events_url":"https://api.github.com/users/FichteFoll/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/SublimeTextIssues/Core/labels/C:%20API","name":"C: API","color":"669933"},{"url":"https://api.github.com/repos/SublimeTextIssues/Core/labels/C:%20File%20Management","name":"C: File Management","color":"669933"},{"url":"https://api.github.com/repos/SublimeTextIssues/Core/labels/S:%20major","name":"S: major","color":"E3743C"},{"url":"https://api.github.com/repos/SublimeTextIssues/Core/labels/T:%20bug","name":"T: bug","color":"e11d21"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-02T12:15:07Z","updated_at":"2016-07-09T20:39:54Z","closed_at":null,"body":"### Summary\r\n\r\nThe *Preferences > Settings - Syntax Specific* menu item opens the from file. This is because the `open_file` command seemingly expects a path in the internal path format and prepends the path of the current view if it gets handed a Path starting with `C:\\`.\r\n\r\n### Expected behavior\r\n\r\nOpen the correct file.\r\n\r\n### Actual behavior\r\n\r\n```python\r\n>>> window.run_command('open_file', {'file': r\"C:\\Users\\Fichte\\AppData\\Roaming\\Sublime Text 3\\Packages\\User\\Python.sublime-settings\", 'contents': \"test\"})\r\nUnable to open /C/Users/Fichte/AppData/Roaming/Sublime Text 3/Packages/Default/C:\\Users\\Fichte\\AppData\\Roaming\\Sublime Text 3\\Packages\\User\\Python.sublime-settings\r\n```\r\n\r\nNote that this also doesn' t work with a `res://`-protocolled file path, as is done for the default preferences file.\r\n\r\n```python\r\n>>> window.run_command('open_file', {'file': \"res://Packages/User/Python.sublime-settings\", 'contents': \"test\"})\r\nUnable to open /E/Dropbox/University/_Kurse/Bachelorarbeit/data/processor/res:/Packages/User/Python.sublime-settings\r\n```\r\n\r\nIt does work with the `${packages}` variable though:\r\n\r\n```python\r\nwindow.run_command('open_file', {'file': \"${packages}/User/Python.sublime-settings\", 'contents': \"test\"})\r\n```\r\n\r\n### Environment\r\n\r\n* Operating system and version:\r\n  * [x] Windows 7\r\n  * [ ] Mac OS ...\r\n  * [ ] Linux ...\r\n* Sublime Text:\r\n  * Build 3117 & 3118\r\n"},"comment":{"url":"https://api.github.com/repos/SublimeTextIssues/Core/issues/comments/231554740","html_url":"https://github.com/SublimeTextIssues/Core/issues/1260#issuecomment-231554740","issue_url":"https://api.github.com/repos/SublimeTextIssues/Core/issues/1260","id":231554740,"user":{"login":"guillermooo","id":684948,"avatar_url":"https://avatars.githubusercontent.com/u/684948?v=3","gravatar_id":"","url":"https://api.github.com/users/guillermooo","html_url":"https://github.com/guillermooo","followers_url":"https://api.github.com/users/guillermooo/followers","following_url":"https://api.github.com/users/guillermooo/following{/other_user}","gists_url":"https://api.github.com/users/guillermooo/gists{/gist_id}","starred_url":"https://api.github.com/users/guillermooo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guillermooo/subscriptions","organizations_url":"https://api.github.com/users/guillermooo/orgs","repos_url":"https://api.github.com/users/guillermooo/repos","events_url":"https://api.github.com/users/guillermooo/events{/privacy}","received_events_url":"https://api.github.com/users/guillermooo/received_events","type":"User","site_admin":false},"created_at":"2016-07-09T20:39:54Z","updated_at":"2016-07-09T20:39:54Z","body":"https://forum.sublimetext.com/t/bug-cant-load-save-sublime-settings-from-user-dir-linked-via-directory-junction-windows/21507?u=guillermooo"}}
{"actor":{"display_login":"guillermooo"}}