{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/nuclide/issues/728","repository_url":"https://api.github.com/repos/facebook/nuclide","labels_url":"https://api.github.com/repos/facebook/nuclide/issues/728/labels{/name}","comments_url":"https://api.github.com/repos/facebook/nuclide/issues/728/comments","events_url":"https://api.github.com/repos/facebook/nuclide/issues/728/events","html_url":"https://github.com/facebook/nuclide/issues/728","id":178546273,"number":728,"title":"Will not typecheck flow file on windows.","user":{"login":"cameron-martin","id":1467158,"avatar_url":"https://avatars.githubusercontent.com/u/1467158?v=3","gravatar_id":"","url":"https://api.github.com/users/cameron-martin","html_url":"https://github.com/cameron-martin","followers_url":"https://api.github.com/users/cameron-martin/followers","following_url":"https://api.github.com/users/cameron-martin/following{/other_user}","gists_url":"https://api.github.com/users/cameron-martin/gists{/gist_id}","starred_url":"https://api.github.com/users/cameron-martin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cameron-martin/subscriptions","organizations_url":"https://api.github.com/users/cameron-martin/orgs","repos_url":"https://api.github.com/users/cameron-martin/repos","events_url":"https://api.github.com/users/cameron-martin/events{/privacy}","received_events_url":"https://api.github.com/users/cameron-martin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-09-22T08:04:18Z","updated_at":"2016-09-26T16:24:33Z","closed_at":null,"body":"### Issue and Steps to Reproduce\r\nTry to open a flow file.\r\n\r\nHere are the messages in the console:\r\n\r\nC:\\Users\\camer\\.atom\\packages\\nuclide\\pkg\\nuclide-logging\\lib\\consoleAppender.js:39 [2016-09-22T07:49:18.620Z] [INFO] nuclide - [unknown]: Flow server in C:\\Users\\camer\\Sources\\SetupWizard\r\nC:\\Users\\camer\\.atom\\packages\\nuclide\\pkg\\nuclide-logging\\lib\\consoleAppender.js:39 [2016-09-22T07:49:18.758Z] [ERROR] nuclide - Unknown return code from Flow: undefined\r\nC:\\Users\\camer\\.atom\\packages\\nuclide\\pkg\\nuclide-logging\\lib\\consoleAppender.js:39 [2016-09-22T07:49:18.760Z] [ERROR] nuclide - Unknown return code from Flow: undefined\r\nC:\\Users\\camer\\.atom\\packages\\nuclide\\pkg\\nuclide-logging\\lib\\consoleAppender.js:39 [2016-09-22T07:49:18.761Z] [ERROR] nuclide - Flow failed: flow status --json C:\\Users\\camer\\Sources\\SetupWizard\\src\\index.js. Error: {\"stdout\":\"\",\"stderr\":\"\",\"errorCode\":\"ENOENT\",\"errorMessage\":\"spawn flow ENOENT\"}\r\nC:\\Users\\camer\\.atom\\packages\\nuclide\\pkg\\nuclide-logging\\lib\\consoleAppender.js:39 [2016-09-22T07:49:18.761Z] [ERROR] nuclide -  Object\r\nC:\\Users\\camer\\.atom\\packages\\nuclide\\pkg\\nuclide-logging\\lib\\consoleAppender.js:39 [2016-09-22T07:49:18.833Z] [WARN] nuclide -  Object\r\nC:\\Users\\camer\\.atom\\packages\\nuclide\\pkg\\nuclide-logging\\lib\\consoleAppender.js:39 [2016-09-22T07:49:18.836Z] [ERROR] nuclide - Unknown return code from Flow: undefined\r\nC:\\Users\\camer\\.atom\\packages\\nuclide\\pkg\\nuclide-logging\\lib\\consoleAppender.js:39 [2016-09-22T07:49:18.836Z] [ERROR] nuclide - Flow failed: flow dump-types --json C:\\Users\\camer\\Sources\\SetupWizard\\src\\index.js. Error: {\"stdout\":\"\",\"stderr\":\"\",\"errorCode\":\"ENOENT\",\"errorMessage\":\"spawn flow ENOENT\"}\r\nC:\\Users\\camer\\.atom\\packages\\nuclide\\pkg\\nuclide-logging\\lib\\consoleAppender.js:39 [2016-09-22T07:49:20.840Z] [ERROR] nuclide - Unknown return code from Flow: undefined\r\nC:\\Users\\camer\\.atom\\packages\\nuclide\\pkg\\nuclide-logging\\lib\\consoleAppender.js:39 [2016-09-22T07:49:20.841Z] [ERROR] nuclide - Flow failed: flow type-at-pos --json --path C:\\Users\\camer\\Sources\\SetupWizard\\src\\index.js 3 14. Error: {\"code\":\"EPIPE\",\"errno\":\"EPIPE\",\"syscall\":\"write\"}\r\nC:\\Users\\camer\\.atom\\packages\\nuclide\\pkg\\nuclide-logging\\lib\\consoleAppender.js:39 [2016-09-22T07:49:21.119Z] [ERROR] nuclide - Unknown return code from Flow: undefined\r\nC:\\Users\\camer\\.atom\\packages\\nuclide\\pkg\\nuclide-logging\\lib\\consoleAppender.js:39 [2016-09-22T07:49:21.119Z] [ERROR] nuclide - Flow failed: flow type-at-pos --json --path C:\\Users\\camer\\Sources\\SetupWizard\\src\\index.js 3 14. Error: {\"code\":\"EPIPE\",\"errno\":\"EPIPE\",\"syscall\":\"write\"}\r\nC:\\Users\\camer\\.atom\\packages\\nuclide\\pkg\\nuclide-logging\\lib\\consoleAppender.js:39 [2016-09-22T07:49:23.105Z] [ERROR] nuclide - Unknown return code from Flow: undefined\r\nC:\\Users\\camer\\.atom\\packages\\nuclide\\pkg\\nuclide-logging\\lib\\consoleAppender.js:39 [2016-09-22T07:49:23.105Z] [ERROR] nuclide - Flow failed: flow type-at-pos --json --path C:\\Users\\camer\\Sources\\SetupWizard\\src\\index.js 1 9. Error: {\"code\":\"EPIPE\",\"errno\":\"EPIPE\",\"syscall\":\"write\"}\r\nC:\\Users\\camer\\.atom\\packages\\nuclide\\pkg\\nuclide-logging\\lib\\consoleAppender.js:39 [2016-09-22T07:55:28.868Z] [ERROR] nuclide - Unknown return code from Flow: undefined\r\nC:\\Users\\camer\\.atom\\packages\\nuclide\\pkg\\nuclide-logging\\lib\\consoleAppender.js:39 [2016-09-22T07:55:28.871Z] [ERROR] nuclide - Flow failed: flow dump-types --json C:\\Users\\camer\\Sources\\SetupWizard\\src\\index.js. Error: {\"stdout\":\"\",\"stderr\":\"\",\"errorCode\":\"ENOENT\",\"errorMessage\":\"spawn flow ENOENT\"}\r\n\r\nRunning these commands from the command line works as expected.\r\n\r\n### Expected Behavior\r\nType errors should be shown.\r\n\r\n### Actual Behavior\r\nNo type errors are shown.\r\n\r\n### Versions\r\n* Atom: 1.10.2\r\n* Nuclide: 0.170.0\r\n* Client OS: Windows 10\r\n\r\n### Additional Details\r\n* Installed packages (`apm ls --installed`):\r\n\r\n├── activate-power-mode@0.9.0\r\n├── atom-material-ui@1.3.6\r\n├── autocomplete-erlang@1.1.2\r\n├── clipboard-plus@0.5.1\r\n├── color-picker@2.2.2\r\n├── docblockr@0.8.5\r\n├── ide-flow@0.8.0\r\n├── language-babel@2.41.0\r\n├── language-batch@0.3.3\r\n├── language-cshtml@0.2.1\r\n├── language-erlang@3.0.0\r\n├── language-nginx@0.6.1\r\n├── linter@1.11.16\r\n├── linter-eslint@7.3.2\r\n├── minimap@4.25.0\r\n├── minimap-cursorline@0.2.0\r\n├── minimap-find-and-replace@4.5.1\r\n├── minimap-linter@1.6.0\r\n├── minimap-pigments@0.2.1\r\n├── nuclide@0.170.0\r\n├── pigments@0.34.0\r\n├── todo-show@1.7.0\r\n└── toggle-quotes@1.0.0\r\n\r\n└── (empty)\r\n"},"comment":{"url":"https://api.github.com/repos/facebook/nuclide/issues/comments/249620696","html_url":"https://github.com/facebook/nuclide/issues/728#issuecomment-249620696","issue_url":"https://api.github.com/repos/facebook/nuclide/issues/728","id":249620696,"user":{"login":"cameron-martin","id":1467158,"avatar_url":"https://avatars.githubusercontent.com/u/1467158?v=3","gravatar_id":"","url":"https://api.github.com/users/cameron-martin","html_url":"https://github.com/cameron-martin","followers_url":"https://api.github.com/users/cameron-martin/followers","following_url":"https://api.github.com/users/cameron-martin/following{/other_user}","gists_url":"https://api.github.com/users/cameron-martin/gists{/gist_id}","starred_url":"https://api.github.com/users/cameron-martin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cameron-martin/subscriptions","organizations_url":"https://api.github.com/users/cameron-martin/orgs","repos_url":"https://api.github.com/users/cameron-martin/repos","events_url":"https://api.github.com/users/cameron-martin/events{/privacy}","received_events_url":"https://api.github.com/users/cameron-martin/received_events","type":"User","site_admin":false},"created_at":"2016-09-26T16:24:33Z","updated_at":"2016-09-26T16:24:33Z","body":"Flow is on my path. When I execute `require('process').env.PATH` in the atom developer tools, I get the following response:\r\n\r\n```\r\n\"C:\\Users\\camer\\Sources\\SetupWizard\\bin\\;C:\\Users\\camer\\Sources\\SetupWizard\\bin\\..\\node_modules\\.bin;...\"\r\n```\r\n\r\nWhen I set a breakpoint in the `asyncExecute` function in `pkgs/commons-node/process.js`, the call to `which flow` returns \r\n\r\n```\r\nC:\\Users\\camer\\Sources\\SetupWizard\\node_modules\\.bin\\flow\r\nC:\\Users\\camer\\Sources\\SetupWizard\\node_modules\\.bin\\flow.cmd\r\n```\r\n\r\nThen I get a subsequent call to `asyncExecute` where the `command` variable is set to `\"flow\"`, with various arguments. This call then returns the `ENOENT`."}}
{"actor":{"display_login":"cameron-martin"}}