{"action":"closed","issue":{"url":"https://api.github.com/repos/SINTEF-9012/ThingML/issues/96","labels_url":"https://api.github.com/repos/SINTEF-9012/ThingML/issues/96/labels{/name}","comments_url":"https://api.github.com/repos/SINTEF-9012/ThingML/issues/96/comments","events_url":"https://api.github.com/repos/SINTEF-9012/ThingML/issues/96/events","html_url":"https://github.com/SINTEF-9012/ThingML/issues/96","id":104695687,"number":96,"title":"c/c++: handlers are not generated correctly for bound ports ","user":{"login":"vassik","id":2435107,"avatar_url":"https://avatars.githubusercontent.com/u/2435107?v=3","gravatar_id":"","url":"https://api.github.com/users/vassik","html_url":"https://github.com/vassik","followers_url":"https://api.github.com/users/vassik/followers","following_url":"https://api.github.com/users/vassik/following{/other_user}","gists_url":"https://api.github.com/users/vassik/gists{/gist_id}","starred_url":"https://api.github.com/users/vassik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vassik/subscriptions","organizations_url":"https://api.github.com/users/vassik/orgs","repos_url":"https://api.github.com/users/vassik/repos","events_url":"https://api.github.com/users/vassik/events{/privacy}","received_events_url":"https://api.github.com/users/vassik/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/SINTEF-9012/ThingML/labels/Compilers","name":"Compilers","color":"e10c02"}],"state":"closed","locked":false,"assignee":{"login":"Lyadis","id":10744853,"avatar_url":"https://avatars.githubusercontent.com/u/10744853?v=3","gravatar_id":"","url":"https://api.github.com/users/Lyadis","html_url":"https://github.com/Lyadis","followers_url":"https://api.github.com/users/Lyadis/followers","following_url":"https://api.github.com/users/Lyadis/following{/other_user}","gists_url":"https://api.github.com/users/Lyadis/gists{/gist_id}","starred_url":"https://api.github.com/users/Lyadis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Lyadis/subscriptions","organizations_url":"https://api.github.com/users/Lyadis/orgs","repos_url":"https://api.github.com/users/Lyadis/repos","events_url":"https://api.github.com/users/Lyadis/events{/privacy}","received_events_url":"https://api.github.com/users/Lyadis/received_events","type":"User","site_admin":false},"milestone":null,"comments":0,"created_at":"2015-09-03T13:38:40Z","updated_at":"2015-09-10T09:20:18Z","closed_at":"2015-09-10T09:20:18Z","body":"if sending and receiving messages of bounded ports do not match then handlers in code are generated incorrectly \r\n\r\n```\r\n//coappsm.thingml\r\nthing COAPClientGetPSM includes COAPClientMsg {\r\n\r\n\tprovided port coapport {\r\n\t\treceives get, shutdown, initialize\r\n\t\tsends error_occured\r\n\t}\r\n}\r\n\r\n//coappim.thinml\r\nthing COAPClientPIM includes COAPClientMsg, ClockMsgs {\r\n\r\n\trequired port coapport {\r\n\t\tsends get, shutdown, initialize\r\n\t}\r\n}\r\n\r\nconfiguration COAPClientGetExample\r\n  @output_folder \"/home/tmp/\"\r\n  @debug \"true\"\r\n  @debug_fifo \"true\"\r\n  @debug_message_send \".*\"\r\n  @debug_message_receive \".*\"\r\n  @add_c_libraries \"smcp tmlcaopclient\"\r\n{\r\n\tinstance coapclpsm : COAPClientGetPSM\r\n\tinstance coapclpim : COAPClientPIM\r\n\r\n        connector coapclpim.coapport => coapclpsm.coapport\r\n}\r\n```\r\nI get the following mistake when I try to compile see code:\r\n```\r\nProblem description: Symbol \r\n 'COAPClientGetExample_coapclpim_coapport_handlers' \r\n could not be resolved\r\n```\r\non this line\r\n```\r\nCOAPClientGetExample_receivers[0] = &COAPClientGetExample_coapclpim_coapport_handlers;\r\n```\r\n\r\nIf add 'receives error_occured' to COAPClientGetPSM, the problem goes away"}}