{"action":"created","issue":{"url":"https://api.github.com/repos/mologie/meteor-typescript/issues/2","labels_url":"https://api.github.com/repos/mologie/meteor-typescript/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/mologie/meteor-typescript/issues/2/comments","events_url":"https://api.github.com/repos/mologie/meteor-typescript/issues/2/events","html_url":"https://github.com/mologie/meteor-typescript/issues/2","id":67348849,"number":2,"title":"Path lookup in compilerResult.files[key] is failing on windows.","user":{"login":"stfnbrgh","id":11718323,"avatar_url":"https://avatars.githubusercontent.com/u/11718323?v=3","gravatar_id":"","url":"https://api.github.com/users/stfnbrgh","html_url":"https://github.com/stfnbrgh","followers_url":"https://api.github.com/users/stfnbrgh/followers","following_url":"https://api.github.com/users/stfnbrgh/following{/other_user}","gists_url":"https://api.github.com/users/stfnbrgh/gists{/gist_id}","starred_url":"https://api.github.com/users/stfnbrgh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stfnbrgh/subscriptions","organizations_url":"https://api.github.com/users/stfnbrgh/orgs","repos_url":"https://api.github.com/users/stfnbrgh/repos","events_url":"https://api.github.com/users/stfnbrgh/events{/privacy}","received_events_url":"https://api.github.com/users/stfnbrgh/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mologie/meteor-typescript/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/mologie/meteor-typescript/labels/confirmed","name":"confirmed","color":"eb6420"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-04-09T12:17:43Z","updated_at":"2015-04-09T14:25:42Z","closed_at":"2015-04-09T14:25:42Z","body":"Hi Mologie,\r\n\r\nI initially developed on linux and with the official windows meteor support  moved my project over to windows. However your compiler started failing with \"Something is broken. Empty data or source map. (This is probably not your fault.)\" errors.\r\n\r\nAfter a brief browse in your code it seems that the suspect is windows vs linux path styles.\r\n\r\ncompilerStep.inputPath provides paths using backslashes (\"backslash\\style\\path\") but the key in compilerResult.files have forward slashes (\"forwardslash/style/path\"). This results in compilerResult.files[jsPath]  and compilerResult.files[jsPath+\".map\"] being undefined, and the sanity check failing.\r\n\r\nI fixed (hacked) this by replacing all the \\ with / of the compilerStep.inputPath inside the compileTypeScriptImpl function.\r\n\r\n    ...\r\n    function compileTypeScriptImpl(compileStep) {                                                                         // 489\r\n        compileStep.inputPath = compileStep.inputPath.replace(/\\\\/g, \"/\"); // Replace all \\ with /                        // ADDED\r\n        var prefix = makeDebugPrefix();                                                                                   // 490\r\n    ...\r\n\r\nThis hack fixed your compiler package on windows. But I thought an issue might be more appropriate than a pull request as you will have deeper insight on the problem\r\n\r\nHope to hear from you soon.\r\n\r\nKind regards\r\nStefan"},"comment":{"url":"https://api.github.com/repos/mologie/meteor-typescript/issues/comments/91247303","html_url":"https://github.com/mologie/meteor-typescript/issues/2#issuecomment-91247303","issue_url":"https://api.github.com/repos/mologie/meteor-typescript/issues/2","id":91247303,"user":{"login":"mologie","id":597682,"avatar_url":"https://avatars.githubusercontent.com/u/597682?v=3","gravatar_id":"","url":"https://api.github.com/users/mologie","html_url":"https://github.com/mologie","followers_url":"https://api.github.com/users/mologie/followers","following_url":"https://api.github.com/users/mologie/following{/other_user}","gists_url":"https://api.github.com/users/mologie/gists{/gist_id}","starred_url":"https://api.github.com/users/mologie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mologie/subscriptions","organizations_url":"https://api.github.com/users/mologie/orgs","repos_url":"https://api.github.com/users/mologie/repos","events_url":"https://api.github.com/users/mologie/events{/privacy}","received_events_url":"https://api.github.com/users/mologie/received_events","type":"User","site_admin":false},"created_at":"2015-04-09T14:25:42Z","updated_at":"2015-04-09T14:25:42Z","body":"Version 0.0.8 is now live on Atmosphere."}}