{"action":"created","issue":{"url":"https://api.github.com/repos/OpenModelica/OMSimulator/issues/516","repository_url":"https://api.github.com/repos/OpenModelica/OMSimulator","labels_url":"https://api.github.com/repos/OpenModelica/OMSimulator/issues/516/labels{/name}","comments_url":"https://api.github.com/repos/OpenModelica/OMSimulator/issues/516/comments","events_url":"https://api.github.com/repos/OpenModelica/OMSimulator/issues/516/events","html_url":"https://github.com/OpenModelica/OMSimulator/issues/516","id":382593810,"node_id":"MDU6SXNzdWUzODI1OTM4MTA=","number":516,"title":"Printout line of error ","user":{"login":"robha67","id":38733290,"node_id":"MDQ6VXNlcjM4NzMzMjkw","avatar_url":"https://avatars3.githubusercontent.com/u/38733290?v=4","gravatar_id":"","url":"https://api.github.com/users/robha67","html_url":"https://github.com/robha67","followers_url":"https://api.github.com/users/robha67/followers","following_url":"https://api.github.com/users/robha67/following{/other_user}","gists_url":"https://api.github.com/users/robha67/gists{/gist_id}","starred_url":"https://api.github.com/users/robha67/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robha67/subscriptions","organizations_url":"https://api.github.com/users/robha67/orgs","repos_url":"https://api.github.com/users/robha67/repos","events_url":"https://api.github.com/users/robha67/events{/privacy}","received_events_url":"https://api.github.com/users/robha67/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-11-20T10:22:08Z","updated_at":"2018-11-20T13:07:32Z","closed_at":null,"author_association":"NONE","body":"It is difficult to locate composite modeling errors for large models expressed in Lua. Printing out the line of the error in the lua script (in the log file and the command window) would simplify debugging drastically. For example: the following error is communicated in the log file\r\n\r\n | error:   [addConnectorToTLMBus] Not available for TLM systems\r\n\r\nTo identify the connector that poses the problem is most time consuming if hundreds of connectors exist in the model. \r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/OpenModelica/OMSimulator/issues/comments/440266980","html_url":"https://github.com/OpenModelica/OMSimulator/issues/516#issuecomment-440266980","issue_url":"https://api.github.com/repos/OpenModelica/OMSimulator/issues/516","id":440266980,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MDI2Njk4MA==","user":{"login":"lochel","id":8457302,"node_id":"MDQ6VXNlcjg0NTczMDI=","avatar_url":"https://avatars3.githubusercontent.com/u/8457302?v=4","gravatar_id":"","url":"https://api.github.com/users/lochel","html_url":"https://github.com/lochel","followers_url":"https://api.github.com/users/lochel/followers","following_url":"https://api.github.com/users/lochel/following{/other_user}","gists_url":"https://api.github.com/users/lochel/gists{/gist_id}","starred_url":"https://api.github.com/users/lochel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lochel/subscriptions","organizations_url":"https://api.github.com/users/lochel/orgs","repos_url":"https://api.github.com/users/lochel/repos","events_url":"https://api.github.com/users/lochel/events{/privacy}","received_events_url":"https://api.github.com/users/lochel/received_events","type":"User","site_admin":false},"created_at":"2018-11-20T13:07:32Z","updated_at":"2018-11-20T13:07:32Z","author_association":"MEMBER","body":"Yes, I agree and it is a good example for a bad error message. However, we cannot print the line number, because the Lua scipt is processed by the Lua interpreter.\r\nI think error messages should always dump the system/component/connector/… that is involved. Also wrong arguments should be printed to make it easy to spot the correspondent call in the scripts. I tried to improve most of the error messages during the last weeks. @robbr48, can you please improve the TLM related messages?"}}
{"actor":{"display_login":"lochel"}}