{"action":"created","issue":{"url":"https://api.github.com/repos/ghcjs/ghcjs/issues/652","repository_url":"https://api.github.com/repos/ghcjs/ghcjs","labels_url":"https://api.github.com/repos/ghcjs/ghcjs/issues/652/labels{/name}","comments_url":"https://api.github.com/repos/ghcjs/ghcjs/issues/652/comments","events_url":"https://api.github.com/repos/ghcjs/ghcjs/issues/652/events","html_url":"https://github.com/ghcjs/ghcjs/issues/652","id":322492014,"number":652,"title":"Possible ghcjs-8.4.0.1 issue with stack.","user":{"login":"alexanderkjeldaas","id":339369,"avatar_url":"https://avatars3.githubusercontent.com/u/339369?v=4","gravatar_id":"","url":"https://api.github.com/users/alexanderkjeldaas","html_url":"https://github.com/alexanderkjeldaas","followers_url":"https://api.github.com/users/alexanderkjeldaas/followers","following_url":"https://api.github.com/users/alexanderkjeldaas/following{/other_user}","gists_url":"https://api.github.com/users/alexanderkjeldaas/gists{/gist_id}","starred_url":"https://api.github.com/users/alexanderkjeldaas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexanderkjeldaas/subscriptions","organizations_url":"https://api.github.com/users/alexanderkjeldaas/orgs","repos_url":"https://api.github.com/users/alexanderkjeldaas/repos","events_url":"https://api.github.com/users/alexanderkjeldaas/events{/privacy}","received_events_url":"https://api.github.com/users/alexanderkjeldaas/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2018-05-12T07:55:35Z","updated_at":"2018-05-13T13:14:16Z","closed_at":null,"author_association":"NONE","body":"\r\nI'm getting the following when using `stack build` in a project.\r\n\r\n```\r\n\r\ncompiler: ghcjs-0.2.1.9011008_ghc-8.4.1\r\n\r\nsetup-info:\r\n  ghcjs:\r\n    source:\r\n      ghcjs-0.2.1.9011008_ghc-8.4.1:\r\n          url: https://github.com/alexanderkjeldaas/ghcjs/releases/download/ghc-8.4.1-rc2/ghcjs.tar.gz\r\n          sha1: 79051ecce5b9d4feaf9107c00178283e062864e1\r\n```\r\n\r\n```\r\n$ /home/devel/.stack/setup-exe-cache/x86_64-linux/Cabal-simple_mPHDZzAJ_2.2.0.1_ghcjs-8.4.0.1_ghc-8.4.2.20180505 --builddir=.stack-work/dist/x86_64-linux/Cabal-2.2.0.1_ghcjs register\r\nuncaught exception in Haskell main thread: TypeError: Cannot read property 'isSymbolicLink' of null\r\nTypeError: Cannot read property 'isSymbolicLink' of null\r\n    at h$directory_getFileStatusIsSymbolicLink (/home/devel/.stack/setup-exe-cache/x86_64-linux/Cabal-simple_mPHDZzAJ_2.2.0.1_ghcjs-8.4.0.1_ghc-8.4.2.20180505:27034:13)\r\n    at h$directoryzm1zi3zi1zi5zm2mI4y4KffND9ZZv04iHI3IxZCSystemziDirectoryziInternalziGHCJSzizdwfileTypeFromMetadata_e (/home/devel/.stack/setup-exe-cache/x86_64-linux/Cabal-simple_mPHDZzAJ_2.2.0.1_ghcjs-8.4.0.1_ghc-8.4.2.20180505:115941:11)\r\n    at h$runThreadSlice (/home/devel/.stack/setup-exe-cache/x86_64-linux/Cabal-simple_mPHDZzAJ_2.2.0.1_ghcjs-8.4.0.1_ghc-8.4.2.20180505:8625:11)\r\n    at h$runThreadSliceCatch (/home/devel/.stack/setup-exe-cache/x86_64-linux/Cabal-simple_mPHDZzAJ_2.2.0.1_ghcjs-8.4.0.1_ghc-8.4.2.20180505:8578:12)\r\n    at h$mainLoop (/home/devel/.stack/setup-exe-cache/x86_64-linux/Cabal-simple_mPHDZzAJ_2.2.0.1_ghcjs-8.4.0.1_ghc-8.4.2.20180505:8573:9)\r\n    at /home/devel/.stack/setup-exe-cache/x86_64-linux/Cabal-simple_mPHDZzAJ_2.2.0.1_ghcjs-8.4.0.1_ghc-8.4.2.20180505:9141:13\r\n    at h$handleErrnoC (/home/devel/.stack/setup-exe-cache/x86_64-linux/Cabal-simple_mPHDZzAJ_2.2.0.1_ghcjs-8.4.0.1_ghc-8.4.2.20180505:6032:9)\r\n    at /home/devel/.stack/setup-exe-cache/x86_64-linux/Cabal-simple_mPHDZzAJ_2.2.0.1_ghcjs-8.4.0.1_ghc-8.4.2.20180505:27006:13\r\n    at FSReqWrap.oncomplete (fs.js:152:21)\r\n```"},"comment":{"url":"https://api.github.com/repos/ghcjs/ghcjs/issues/comments/388625964","html_url":"https://github.com/ghcjs/ghcjs/issues/652#issuecomment-388625964","issue_url":"https://api.github.com/repos/ghcjs/ghcjs/issues/652","id":388625964,"user":{"login":"alexanderkjeldaas","id":339369,"avatar_url":"https://avatars3.githubusercontent.com/u/339369?v=4","gravatar_id":"","url":"https://api.github.com/users/alexanderkjeldaas","html_url":"https://github.com/alexanderkjeldaas","followers_url":"https://api.github.com/users/alexanderkjeldaas/followers","following_url":"https://api.github.com/users/alexanderkjeldaas/following{/other_user}","gists_url":"https://api.github.com/users/alexanderkjeldaas/gists{/gist_id}","starred_url":"https://api.github.com/users/alexanderkjeldaas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexanderkjeldaas/subscriptions","organizations_url":"https://api.github.com/users/alexanderkjeldaas/orgs","repos_url":"https://api.github.com/users/alexanderkjeldaas/repos","events_url":"https://api.github.com/users/alexanderkjeldaas/events{/privacy}","received_events_url":"https://api.github.com/users/alexanderkjeldaas/received_events","type":"User","site_admin":false},"created_at":"2018-05-13T13:14:16Z","updated_at":"2018-05-13T13:14:16Z","author_association":"NONE","body":"Can't really find the offending function from the stacktrace in the file:\r\n\r\n\r\n```\r\n$ nl /home/devel/.stack/setup-exe-cache/x86_64-linux/Cabal-simple_mPHDZzAJ_2.2.0.1_ghcjs-8.4.0.1_ghc-8.4.2.20180505 | less\r\n 27019  function h$fps_intersperse(a_v,a_o,b_v,b_o,n,c) {\r\n 27020      if(n > 0) {\r\n 27021          var au8 = a_v.u8, bu8 = b_v.u8, dst_o = a_o;\r\n 27022          for(var i=0;i<n-1;i++) {\r\n 27023              au8[dst_o] = bu8[b_o+i];\r\n 27024              au8[dst_o+1] = c;\r\n 27025              dst_o += 2;\r\n 27026          }\r\n 27027          au8[dst_o] = bu8[b_o+n-1];\r\n 27028      }\r\n 27029  }\r\n 27030  function h$fps_maximum(a_v,a_o,n) {\r\n 27031      if(n > 0) {\r\n 27032          var au8 = a_v.u8, max = au8[a_o];\r\n 27033          for(var i=1;i<n;i++) {\r\n 27034              var c = au8[a_o+i];\r\n 27035              if(c > max) { max = c; }\r\n 27036          }\r\n 27037          return max;\r\n 27038      }\r\n 27039      return 0;\r\n 27040  }\r\n 27041  function h$fps_minimum(a_v,a_o,n) {\r\n 27042      if(n > 0) {\r\n 27043          var au8 = a_v.u8, min = a_v.u8[a_o];\r\n 27044          for(var i=1;i<n;i++) {\r\n 27045              var c = au8[a_o+i];\r\n 27046              if(c < min) { min = c; }\r\n 27047          }\r\n 27048          return min;\r\n 27049      }\r\n 27050      return 255;\r\n 27051  }\r\n```"}}
{"actor":{"display_login":"alexanderkjeldaas"}}