{"action":"created","issue":{"url":"https://api.github.com/repos/fsprojects/Fable/issues/144","repository_url":"https://api.github.com/repos/fsprojects/Fable","labels_url":"https://api.github.com/repos/fsprojects/Fable/issues/144/labels{/name}","comments_url":"https://api.github.com/repos/fsprojects/Fable/issues/144/comments","events_url":"https://api.github.com/repos/fsprojects/Fable/issues/144/events","html_url":"https://github.com/fsprojects/Fable/issues/144","id":155818122,"number":144,"title":"Running fable with -w gives file is being used exception","user":{"login":"ritcoder","id":254737,"avatar_url":"https://avatars.githubusercontent.com/u/254737?v=3","gravatar_id":"","url":"https://api.github.com/users/ritcoder","html_url":"https://github.com/ritcoder","followers_url":"https://api.github.com/users/ritcoder/followers","following_url":"https://api.github.com/users/ritcoder/following{/other_user}","gists_url":"https://api.github.com/users/ritcoder/gists{/gist_id}","starred_url":"https://api.github.com/users/ritcoder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ritcoder/subscriptions","organizations_url":"https://api.github.com/users/ritcoder/orgs","repos_url":"https://api.github.com/users/ritcoder/repos","events_url":"https://api.github.com/users/ritcoder/events{/privacy}","received_events_url":"https://api.github.com/users/ritcoder/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/fsprojects/Fable/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-05-19T19:40:09Z","updated_at":"2016-05-19T23:11:19Z","closed_at":null,"body":"### Description\r\n\r\nRunning `fable -w` run the first time. Subsequent times fail with `file in use by another process` exception\r\n\r\n### Repro steps\r\n\r\nRun `fable -w`\r\n\r\n### Expected behavior\r\n\r\nFiles are compiled and webpack-dev-server runs\r\n\r\n### Actual behavior\r\n\r\n````\r\nu:\\Work\\PlayGround\\Fable\\CreatingVSCodePlugin\\test2>fable -w\r\nStart compilation...\r\nCompiled Fable.Helpers.React.fs at 7:36:31 PM\r\nCompiled models.fs at 7:36:31 PM\r\nCompiled reactTest.fsx at 7:36:31 PM\r\nCompiled main.fsx at 7:36:31 PM\r\nWatching u:\\Work\\PlayGround\\Fable\\CreatingVSCodePlugin\\test2\\src\r\nCannot read project options: The process cannot access the file 'u:\\Work\\PlayGround\\Fable\\CreatingVSCodePlugin\\test2\\src\\main.fsx' because it is being used by another process.\r\nCompiled main.fsx at 7:38:01 PM\r\nCannot read project options: The process cannot access the file 'u:\\Work\\PlayGround\\Fable\\CreatingVSCodePlugin\\test2\\src\\main.fsx' because it is being used by another process.\r\nCannot read project options: The process cannot access the file 'u:\\Work\\PlayGround\\Fable\\CreatingVSCodePlugin\\test2\\src\\main.fsx' because it is being used by another process.\r\n````\r\n\r\n### Known workarounds\r\n\r\nRun `fable` manually when there is a change\r\n\r\n### Related information \r\n\r\n* Operating system: Window 10\r\n* Branch: Fable 0.2.14\r\n* .NET Runtime, CoreCLR or Mono Version\r\n* Performance information, links to performance testing scripts\r\n"},"comment":{"url":"https://api.github.com/repos/fsprojects/Fable/issues/comments/220476983","html_url":"https://github.com/fsprojects/Fable/issues/144#issuecomment-220476983","issue_url":"https://api.github.com/repos/fsprojects/Fable/issues/144","id":220476983,"user":{"login":"ritcoder","id":254737,"avatar_url":"https://avatars.githubusercontent.com/u/254737?v=3","gravatar_id":"","url":"https://api.github.com/users/ritcoder","html_url":"https://github.com/ritcoder","followers_url":"https://api.github.com/users/ritcoder/followers","following_url":"https://api.github.com/users/ritcoder/following{/other_user}","gists_url":"https://api.github.com/users/ritcoder/gists{/gist_id}","starred_url":"https://api.github.com/users/ritcoder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ritcoder/subscriptions","organizations_url":"https://api.github.com/users/ritcoder/orgs","repos_url":"https://api.github.com/users/ritcoder/repos","events_url":"https://api.github.com/users/ritcoder/events{/privacy}","received_events_url":"https://api.github.com/users/ritcoder/received_events","type":"User","site_admin":false},"created_at":"2016-05-19T23:11:19Z","updated_at":"2016-05-19T23:11:19Z","body":"Hi,\r\nI'm migrating an application from `elm` to `f#` so cannot post it online. One observation is that it affects only the `projFile`. When I edit any other file, it compiles just fine. It is only the `main.fsx` file that gives that error.\r\n\r\n\r\n`fableconfig.json` below\r\n\r\n````\r\n{ \"module\": \"commonjs\",\r\n  \"sourceMaps\": true,\r\n  \"projFile\": \"./src/main.fsx\",\r\n  \"outDir\": \"build\",\r\n  \"scripts\":{\r\n  },\r\n  \"targets\":{\r\n    \"watch\":{\r\n      \"scripts\":{\r\n        \"postbuild\": \"webpack-dev-server --content-base public/\"\r\n      }\r\n    }\r\n  }\r\n}\r\n````"}}
{"actor":{"display_login":"ritcoder"}}