{"action":"closed","issue":{"url":"https://api.github.com/repos/fsharp/FAKE/issues/501","repository_url":"https://api.github.com/repos/fsharp/FAKE","labels_url":"https://api.github.com/repos/fsharp/FAKE/issues/501/labels{/name}","comments_url":"https://api.github.com/repos/fsharp/FAKE/issues/501/comments","events_url":"https://api.github.com/repos/fsharp/FAKE/issues/501/events","html_url":"https://github.com/fsharp/FAKE/issues/501","id":37917914,"number":501,"title":"\"Illegal characters in path\" error when executing build script","user":{"login":"dbent","id":1547727,"avatar_url":"https://avatars.githubusercontent.com/u/1547727?v=3","gravatar_id":"","url":"https://api.github.com/users/dbent","html_url":"https://github.com/dbent","followers_url":"https://api.github.com/users/dbent/followers","following_url":"https://api.github.com/users/dbent/following{/other_user}","gists_url":"https://api.github.com/users/dbent/gists{/gist_id}","starred_url":"https://api.github.com/users/dbent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dbent/subscriptions","organizations_url":"https://api.github.com/users/dbent/orgs","repos_url":"https://api.github.com/users/dbent/repos","events_url":"https://api.github.com/users/dbent/events{/privacy}","received_events_url":"https://api.github.com/users/dbent/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2014-07-15T19:35:23Z","updated_at":"2016-04-14T13:31:46Z","closed_at":"2016-04-14T13:31:46Z","body":"I have a [project](https://github.com/KerbalSystems/Ketchup) which uses FAKE for its build system. It currently uses FAKE 2.18.2 but there's a branch `topic/upgrade_fake` which uses FAKE 3.2.0, which is currently broken.\r\n\r\nIf I attempt to run the build I get an error like:\r\n```\r\ninput.fsx(1,1): error FS0206: Problem with filename 'D:\\Ketchuuild.fsx': Illegal characters in path.\r\n```\r\n\r\nThe issue appears to be that FAKE is interpreting the `\\b` (from `Ketchup\\build.fsx`) in the path as an escaped backspace character. Hence why when the error is reproduced in the console it seems like `p\\b` is missing (the backspace character is non-printable and it effectively erases the `p`).\r\n\r\nWe can test this theory by renaming `build.fsx` to `nbuild.fsx` which produces the error:\r\n```\r\ninput.fsx(1,1): error FS0206: Problem with filename 'D:\\Ketchup\r\nbuild.fsx': Illegal characters in path.\r\n```\r\nSince the `\\n` is now interpreted as a newline character.\r\n\r\nThis should be reproducible from a PowerShell console with the following commands:\r\n```\r\nPS> git clone https://github.com/KerbalSystems/Ketchup.git\r\nPS> cd Ketchup\r\nPS> git checkout topic/upgrade_fake\r\nPS> ./build\r\n```\r\n(Note the build isn't expected to succeed despite FAKE because it requires non-distributable dependencies, but it will break before that due to FAKE).\r\n\r\nIt appears this bug was introduced in the 3.x series."}}