{"action":"created","issue":{"url":"https://api.github.com/repos/ocsigen/eliom/issues/313","repository_url":"https://api.github.com/repos/ocsigen/eliom","labels_url":"https://api.github.com/repos/ocsigen/eliom/issues/313/labels{/name}","comments_url":"https://api.github.com/repos/ocsigen/eliom/issues/313/comments","events_url":"https://api.github.com/repos/ocsigen/eliom/issues/313/events","html_url":"https://github.com/ocsigen/eliom/issues/313","id":160372994,"number":313,"title":"Eliom and OCaml 4.03.0","user":{"login":"balat","id":552142,"avatar_url":"https://avatars.githubusercontent.com/u/552142?v=3","gravatar_id":"","url":"https://api.github.com/users/balat","html_url":"https://github.com/balat","followers_url":"https://api.github.com/users/balat/followers","following_url":"https://api.github.com/users/balat/following{/other_user}","gists_url":"https://api.github.com/users/balat/gists{/gist_id}","starred_url":"https://api.github.com/users/balat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/balat/subscriptions","organizations_url":"https://api.github.com/users/balat/orgs","repos_url":"https://api.github.com/users/balat/repos","events_url":"https://api.github.com/users/balat/events{/privacy}","received_events_url":"https://api.github.com/users/balat/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-06-15T09:06:50Z","updated_at":"2016-06-15T12:39:24Z","closed_at":null,"body":"Many things seem to be broken with OCaml 4.03. I don't really understand te problem yet.\r\nIt seems to involve react signal in client side code.\r\nAn exemple of minimal broken program is the following:\r\n```ocaml\r\n[%%client\r\nlet _ =\r\n  let s, set = React.S.create 4 in\r\n  ignore\r\n    (React.S.map\r\n       (fun pos ->\r\n          print_endline \"aaaa\";\r\n       ) s);\r\n  set 65;\r\n  set 76;\r\n  let elt = Eliom_content.Html.D.p [pcdata \"CLICK\"] in\r\n  Eliom_content.Html.Manip.appendToBody elt;\r\n  Lwt.async (fun () ->\r\n    Lwt_js_events.clicks (Eliom_content.Html.To_dom.of_element elt) (fun _ _ ->\r\n      print_endline \"clic\";\r\n      set 66;\r\n      Lwt.return ()\r\n    ))\r\n]\r\n```\r\nClicking on th element displays \"clic\" but not \"aaaa\".\r\n\r\n(To compile Eliom with OCaml 4.03.0 you need dev version of ocamlnet).\r\n "},"comment":{"url":"https://api.github.com/repos/ocsigen/eliom/issues/comments/226174737","html_url":"https://github.com/ocsigen/eliom/issues/313#issuecomment-226174737","issue_url":"https://api.github.com/repos/ocsigen/eliom/issues/313","id":226174737,"user":{"login":"balat","id":552142,"avatar_url":"https://avatars.githubusercontent.com/u/552142?v=3","gravatar_id":"","url":"https://api.github.com/users/balat","html_url":"https://github.com/balat","followers_url":"https://api.github.com/users/balat/followers","following_url":"https://api.github.com/users/balat/following{/other_user}","gists_url":"https://api.github.com/users/balat/gists{/gist_id}","starred_url":"https://api.github.com/users/balat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/balat/subscriptions","organizations_url":"https://api.github.com/users/balat/orgs","repos_url":"https://api.github.com/users/balat/repos","events_url":"https://api.github.com/users/balat/events{/privacy}","received_events_url":"https://api.github.com/users/balat/received_events","type":"User","site_admin":false},"created_at":"2016-06-15T12:39:24Z","updated_at":"2016-06-15T12:39:24Z","body":"(at least I guess).\r\nThe initial example I'm trying to reduce is Ot_carousel.ribbon.\r\nIt has very weird behaviours related to React.S.map (or here React.S.l3) on injected signals.\r\nSometimes it works, other times not ...\r\nThe ribbon is completely broken.\r\n\r\nI don't know if the culprit is ocaml 4.03 or some change in other recent packages (js_of_ocaml ?)\r\n "}}
{"actor":{"display_login":"balat"}}