{"action":"created","issue":{"url":"https://api.github.com/repos/kovisoft/slimv/issues/30","labels_url":"https://api.github.com/repos/kovisoft/slimv/issues/30/labels{/name}","comments_url":"https://api.github.com/repos/kovisoft/slimv/issues/30/comments","events_url":"https://api.github.com/repos/kovisoft/slimv/issues/30/events","html_url":"https://github.com/kovisoft/slimv/issues/30","id":98837739,"number":30,"title":"On load file, can interpret Windows path as escape sequence","user":{"login":"Fireedud","id":4605351,"avatar_url":"https://avatars.githubusercontent.com/u/4605351?v=3","gravatar_id":"","url":"https://api.github.com/users/Fireedud","html_url":"https://github.com/Fireedud","followers_url":"https://api.github.com/users/Fireedud/followers","following_url":"https://api.github.com/users/Fireedud/following{/other_user}","gists_url":"https://api.github.com/users/Fireedud/gists{/gist_id}","starred_url":"https://api.github.com/users/Fireedud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Fireedud/subscriptions","organizations_url":"https://api.github.com/users/Fireedud/orgs","repos_url":"https://api.github.com/users/Fireedud/repos","events_url":"https://api.github.com/users/Fireedud/events{/privacy}","received_events_url":"https://api.github.com/users/Fireedud/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-08-03T21:00:15Z","updated_at":"2015-08-28T18:05:11Z","closed_at":null,"body":"If the path contains something that looks like an escape sequence, it will interpret it as an escape sequence.\r\n\r\nFor example, if the file is located in C:\\Documents\\Lisp\\test, an error message will appear:\r\nPARSE-NAMESTRING: syntax error in filename \"C:\\\\Documents\\\\Lisp\test\\\\morse.fas\"\r\n\r\nThis doesn't happen when all the directory names are not valid escape sequences."},"comment":{"url":"https://api.github.com/repos/kovisoft/slimv/issues/comments/135849016","html_url":"https://github.com/kovisoft/slimv/issues/30#issuecomment-135849016","issue_url":"https://api.github.com/repos/kovisoft/slimv/issues/30","id":135849016,"user":{"login":"kovisoft","id":4148034,"avatar_url":"https://avatars.githubusercontent.com/u/4148034?v=3","gravatar_id":"","url":"https://api.github.com/users/kovisoft","html_url":"https://github.com/kovisoft","followers_url":"https://api.github.com/users/kovisoft/followers","following_url":"https://api.github.com/users/kovisoft/following{/other_user}","gists_url":"https://api.github.com/users/kovisoft/gists{/gist_id}","starred_url":"https://api.github.com/users/kovisoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kovisoft/subscriptions","organizations_url":"https://api.github.com/users/kovisoft/orgs","repos_url":"https://api.github.com/users/kovisoft/repos","events_url":"https://api.github.com/users/kovisoft/events{/privacy}","received_events_url":"https://api.github.com/users/kovisoft/received_events","type":"User","site_admin":false},"created_at":"2015-08-28T18:05:11Z","updated_at":"2015-08-28T18:05:11Z","body":"I was not able to reproduce the problem on my system, but I think I know what the problem is.\r\nCould you please test if the below change in function SlimvCompileLoadFile() in slimv.vim solves the problem for you?\r\nPlease add the line marked with '>' (but of course without the '>') which replaces all backslash characters with forward slashes in the compiled file name:\r\n\r\n```\r\n        if s:compiled_file != ''\r\n>            let s:compiled_file = substitute( s:compiled_file, '\\\\', '/', 'g' )\r\n            call SlimvCommandUsePackage( 'python swank_load_file(\"' . s:compiled_file . '\")' )\r\n            let s:compiled_file = ''\r\n        endif\r\n    endif\r\nendfunction\r\n\r\n```\r\n"}}