{"action":"created","issue":{"url":"https://api.github.com/repos/ghcjs/ghcjs/issues/515","repository_url":"https://api.github.com/repos/ghcjs/ghcjs","labels_url":"https://api.github.com/repos/ghcjs/ghcjs/issues/515/labels{/name}","comments_url":"https://api.github.com/repos/ghcjs/ghcjs/issues/515/comments","events_url":"https://api.github.com/repos/ghcjs/ghcjs/issues/515/events","html_url":"https://github.com/ghcjs/ghcjs/issues/515","id":175495658,"number":515,"title":"ReferenceError: h$CCS_SYSTEM is not defined","user":{"login":"Mikolaj","id":281893,"avatar_url":"https://avatars.githubusercontent.com/u/281893?v=3","gravatar_id":"","url":"https://api.github.com/users/Mikolaj","html_url":"https://github.com/Mikolaj","followers_url":"https://api.github.com/users/Mikolaj/followers","following_url":"https://api.github.com/users/Mikolaj/following{/other_user}","gists_url":"https://api.github.com/users/Mikolaj/gists{/gist_id}","starred_url":"https://api.github.com/users/Mikolaj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mikolaj/subscriptions","organizations_url":"https://api.github.com/users/Mikolaj/orgs","repos_url":"https://api.github.com/users/Mikolaj/repos","events_url":"https://api.github.com/users/Mikolaj/events{/privacy}","received_events_url":"https://api.github.com/users/Mikolaj/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-09-07T12:57:25Z","updated_at":"2016-09-14T13:56:15Z","closed_at":null,"body":"The error shows up both with today's master on GHC 7.10.3 and yesterday's dedupe branch on GHC 8.0.1, when compiling https://github.com/LambdaHack/LambdaHack as follows:\r\n\r\n```\r\n$ cabal configure --ghcjs --enable-profiling\r\n$ cabal build -j1\r\n...\r\n[124 of 124] Compiling Game.LambdaHack.Server ( Game/LambdaHack/Server.hs, dist/build/Game/LambdaHack/Server.js_p_o )\r\nPreprocessing executable 'LambdaHack' for LambdaHack-0.5.1.0...\r\n[ 1 of 15] Compiling Content.ItemKindTemporary ( GameDefinition/Content/ItemKindTemporary.hs, dist/build/LambdaHack/LambdaHack-tmp/Content/ItemKindTemporary.js_o )\r\n[ 2 of 15] Compiling Content.ItemKindOrgan ( GameDefinition/Content/ItemKindOrgan.hs, dist/build/LambdaHack/LambdaHack-tmp/Content/ItemKindOrgan.js_o )\r\n[ 3 of 15] Compiling Content.ItemKindBlast ( GameDefinition/Content/ItemKindBlast.hs, dist/build/LambdaHack/LambdaHack-tmp/Content/ItemKindBlast.js_o )\r\n[ 4 of 15] Compiling Content.ItemKindActor ( GameDefinition/Content/ItemKindActor.hs, dist/build/LambdaHack/LambdaHack-tmp/Content/ItemKindActor.js_o )\r\n[ 5 of 15] Compiling Content.ModeKindPlayer ( GameDefinition/Content/ModeKindPlayer.hs, dist/build/LambdaHack/LambdaHack-tmp/Content/ModeKindPlayer.js_o )\r\n[ 6 of 15] Compiling Paths_LambdaHack ( dist/build/autogen/Paths_LambdaHack.hs, dist/build/LambdaHack/LambdaHack-tmp/Paths_LambdaHack.js_o )\r\n[ 7 of 15] Compiling Content.TileKind ( GameDefinition/Content/TileKind.hs, dist/build/LambdaHack/LambdaHack-tmp/Content/TileKind.js_o )\r\n[ 8 of 15] Compiling Content.RuleKind ( GameDefinition/Content/RuleKind.hs, dist/build/LambdaHack/LambdaHack-tmp/Content/RuleKind.js_o )\r\nLinking Template Haskell ()\r\nLinking Template Haskell (Content.ItemKindActor,Content.ItemKindBlast,Content.ItemKindOrgan,Content.ItemKindTemporary,Content.ModeKindPlayer,Content.TileKind,Paths_LambdaHack,ThRunner1)\r\nLinking Template Haskell (Content.ItemKindActor,Content.ItemKindBlast,Content.ItemKindOrgan,Content.ItemKindTemporary,Content.ModeKindPlayer,Content.TileKind,Paths_LambdaHack,ThRunner2)\r\n[ 9 of 15] Compiling Content.PlaceKind ( GameDefinition/Content/PlaceKind.hs, dist/build/LambdaHack/LambdaHack-tmp/Content/PlaceKind.js_o )\r\n[10 of 15] Compiling Content.ModeKind ( GameDefinition/Content/ModeKind.hs, dist/build/LambdaHack/LambdaHack-tmp/Content/ModeKind.js_o )\r\n[11 of 15] Compiling Content.ItemKind ( GameDefinition/Content/ItemKind.hs, dist/build/LambdaHack/LambdaHack-tmp/Content/ItemKind.js_o )\r\n[12 of 15] Compiling Content.CaveKind ( GameDefinition/Content/CaveKind.hs, dist/build/LambdaHack/LambdaHack-tmp/Content/CaveKind.js_o )\r\n[13 of 15] Compiling Client.UI.Content.KeyKind ( GameDefinition/Client/UI/Content/KeyKind.hs, dist/build/LambdaHack/LambdaHack-tmp/Client/UI/Content/KeyKind.js_o )\r\n[14 of 15] Compiling TieKnot          ( GameDefinition/TieKnot.hs, dist/build/LambdaHack/LambdaHack-tmp/TieKnot.js_o )\r\n[15 of 15] Compiling Main             ( GameDefinition/Main.hs, dist/build/LambdaHack/LambdaHack-tmp/Main.js_o )\r\n[ 1 of 15] Compiling Content.ItemKindTemporary ( GameDefinition/Content/ItemKindTemporary.hs, dist/build/LambdaHack/LambdaHack-tmp/Content/ItemKindTemporary.js_p_o )\r\n[ 2 of 15] Compiling Content.ItemKindOrgan ( GameDefinition/Content/ItemKindOrgan.hs, dist/build/LambdaHack/LambdaHack-tmp/Content/ItemKindOrgan.js_p_o )\r\n[ 3 of 15] Compiling Content.ItemKindBlast ( GameDefinition/Content/ItemKindBlast.hs, dist/build/LambdaHack/LambdaHack-tmp/Content/ItemKindBlast.js_p_o )\r\n[ 4 of 15] Compiling Content.ItemKindActor ( GameDefinition/Content/ItemKindActor.hs, dist/build/LambdaHack/LambdaHack-tmp/Content/ItemKindActor.js_p_o )\r\n[ 5 of 15] Compiling Content.ModeKindPlayer ( GameDefinition/Content/ModeKindPlayer.hs, dist/build/LambdaHack/LambdaHack-tmp/Content/ModeKindPlayer.js_p_o )\r\n[ 6 of 15] Compiling Paths_LambdaHack ( dist/build/autogen/Paths_LambdaHack.hs, dist/build/LambdaHack/LambdaHack-tmp/Paths_LambdaHack.js_p_o )\r\n[ 7 of 15] Compiling Content.TileKind ( GameDefinition/Content/TileKind.hs, dist/build/LambdaHack/LambdaHack-tmp/Content/TileKind.js_p_o )\r\n[ 8 of 15] Compiling Content.RuleKind ( GameDefinition/Content/RuleKind.hs, dist/build/LambdaHack/LambdaHack-tmp/Content/RuleKind.js_p_o )\r\nLinking Template Haskell ()\r\nLinking Template Haskell (Content.ItemKindActor,Content.ItemKindBlast,Content.ItemKindOrgan,Content.ItemKindTemporary,Content.ModeKindPlayer,Content.TileKind,Paths_LambdaHack,ThRunner1)\r\nReferenceError: h$CCS_SYSTEM is not defined\r\n    at eval (eval at h$loadCodeStr (/mikolaj/.ghcjs/x86_64-linux-0.2.0-7.10.3/ghcjs/thrunner.js:141:10), <anonymous>:8281:127)\r\n    at h$loadCodeStr (/mikolaj/.ghcjs/x86_64-linux-0.2.0-7.10.3/ghcjs/thrunner.js:141:10)\r\n    at h$loadInitialCode (/mikolaj/.ghcjs/x86_64-linux-0.2.0-7.10.3/ghcjs/thrunner.js:123:5)\r\n    at h$processQueue (/mikolaj/.ghcjs/x86_64-linux-0.2.0-7.10.3/ghcjs/thrunner.js:73:13)\r\n    at Socket.<anonymous> (/mikolaj/.ghcjs/x86_64-linux-0.2.0-7.10.3/ghcjs/thrunner.js:52:17)\r\n    at emitNone (events.js:86:13)\r\n    at Socket.emit (events.js:185:7)\r\n    at emitReadable_ (_stream_readable.js:433:10)\r\n    at emitReadable (_stream_readable.js:427:7)\r\n    at readableAddChunk (_stream_readable.js:188:13)\r\n$ cabal --version\r\ncabal-install version 1.24.0.0\r\ncompiled using version 1.24.0.0 of the Cabal library \r\n$ node --version\r\nv6.4.0\r\n```"},"comment":{"url":"https://api.github.com/repos/ghcjs/ghcjs/issues/comments/247020719","html_url":"https://github.com/ghcjs/ghcjs/issues/515#issuecomment-247020719","issue_url":"https://api.github.com/repos/ghcjs/ghcjs/issues/515","id":247020719,"user":{"login":"Mikolaj","id":281893,"avatar_url":"https://avatars.githubusercontent.com/u/281893?v=3","gravatar_id":"","url":"https://api.github.com/users/Mikolaj","html_url":"https://github.com/Mikolaj","followers_url":"https://api.github.com/users/Mikolaj/followers","following_url":"https://api.github.com/users/Mikolaj/following{/other_user}","gists_url":"https://api.github.com/users/Mikolaj/gists{/gist_id}","starred_url":"https://api.github.com/users/Mikolaj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mikolaj/subscriptions","organizations_url":"https://api.github.com/users/Mikolaj/orgs","repos_url":"https://api.github.com/users/Mikolaj/repos","events_url":"https://api.github.com/users/Mikolaj/events{/privacy}","received_events_url":"https://api.github.com/users/Mikolaj/received_events","type":"User","site_admin":false},"created_at":"2016-09-14T13:56:15Z","updated_at":"2016-09-14T13:56:15Z","body":"After removing the ASSERT and TRACE cruft from profiling.js it loads fine from index.html in Chrome, but something else fails:\r\n\r\n```\r\nrts.js:11890 Uncaught ReferenceError: h$CCS_SYSTEM is not defined\r\nlib.js:2493 Uncaught ReferenceError: h$CCS_SYSTEM is not defined\r\nout.js:1 Uncaught ReferenceError: h$CC is not defined\r\nrts.js:7959 Uncaught TypeError: Cannot read property 'cc' of undefined\r\n﻿```"}}
{"actor":{"display_login":"Mikolaj"}}