{"action":"created","issue":{"url":"https://api.github.com/repos/MobiDevelop/robovm/issues/37","repository_url":"https://api.github.com/repos/MobiDevelop/robovm","labels_url":"https://api.github.com/repos/MobiDevelop/robovm/issues/37/labels{/name}","comments_url":"https://api.github.com/repos/MobiDevelop/robovm/issues/37/comments","events_url":"https://api.github.com/repos/MobiDevelop/robovm/issues/37/events","html_url":"https://github.com/MobiDevelop/robovm/issues/37","id":172324555,"number":37,"title":"Line numbers are not correct when building with IDEA","user":{"login":"CoderBaron","id":20406457,"avatar_url":"https://avatars.githubusercontent.com/u/20406457?v=3","gravatar_id":"","url":"https://api.github.com/users/CoderBaron","html_url":"https://github.com/CoderBaron","followers_url":"https://api.github.com/users/CoderBaron/followers","following_url":"https://api.github.com/users/CoderBaron/following{/other_user}","gists_url":"https://api.github.com/users/CoderBaron/gists{/gist_id}","starred_url":"https://api.github.com/users/CoderBaron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CoderBaron/subscriptions","organizations_url":"https://api.github.com/users/CoderBaron/orgs","repos_url":"https://api.github.com/users/CoderBaron/repos","events_url":"https://api.github.com/users/CoderBaron/events{/privacy}","received_events_url":"https://api.github.com/users/CoderBaron/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":11,"created_at":"2016-08-21T14:51:22Z","updated_at":"2016-09-02T17:47:38Z","closed_at":null,"body":"I have created the default project and edited the `robovm.xml` to include `<useLineNumbers>true</useLineNumbers>`.\r\nI also edited the `MyViewController` class and in the touch up inside listener I throw a `RuntimeException`. \r\n\r\nThe stack trace looks like this:\r\n```Java\r\njava.lang.RuntimeException: TEST\r\n\tat com.mycompany.myapp.MyViewController.lambda$new$0(MyViewController.java:32)\r\n\tat com.mycompany.myapp.MyViewController$$Lambda$1.onTouchUpInside(Unknown Source)\r\n\tat org.robovm.apple.uikit.UIControl$ListenerWrapper.handleTouchEvent(UIControl.java:108)\r\n\tat org.robovm.apple.uikit.UIControl$ListenerWrapper.$cb$handleTouchEvent(UIControl.java:0)\r\n\tat org.robovm.apple.uikit.UIApplication.main(UIApplication.java:0)\r\n\tat org.robovm.apple.uikit.UIApplication.main(UIApplication.java:365)\r\n\tat com.mycompany.myapp.Main.main(Main.java:30)\r\n```\r\nThe only correct line number is `UIControl.java:108`.\r\n\r\nNow I changed the `MyViewController` class and removed all code from the constructor and instead throw a `RuntimeException`. Also removed all fields and unused imports.\r\n\r\nNow the stack trace looks like this:\r\n```Java\r\njava.lang.RuntimeException: TEST\r\n\tat com.mycompany.myapp.MyViewController.<init>(MyViewController.java:32)\r\n\tat com.mycompany.myapp.Main.didFinishLaunching(Main.java:17)\r\n\tat com.mycompany.myapp.Main.$cb$application$didFinishLaunchingWithOptions$(Main.java:0)\r\n\tat org.robovm.apple.uikit.UIApplication.main(UIApplication.java:0)\r\n\tat org.robovm.apple.uikit.UIApplication.main(UIApplication.java:365)\r\n\tat com.mycompany.myapp.Main.main(Main.java:30)\r\n```\r\nOnce again, there is only one correct line number: `Main.java:17`\r\nThe `MyViewController` class has only 11 lines of code, still it says again line number 32."},"comment":{"url":"https://api.github.com/repos/MobiDevelop/robovm/issues/comments/244442779","html_url":"https://github.com/MobiDevelop/robovm/issues/37#issuecomment-244442779","issue_url":"https://api.github.com/repos/MobiDevelop/robovm/issues/37","id":244442779,"user":{"login":"Tom-Ski","id":4346114,"avatar_url":"https://avatars.githubusercontent.com/u/4346114?v=3","gravatar_id":"","url":"https://api.github.com/users/Tom-Ski","html_url":"https://github.com/Tom-Ski","followers_url":"https://api.github.com/users/Tom-Ski/followers","following_url":"https://api.github.com/users/Tom-Ski/following{/other_user}","gists_url":"https://api.github.com/users/Tom-Ski/gists{/gist_id}","starred_url":"https://api.github.com/users/Tom-Ski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tom-Ski/subscriptions","organizations_url":"https://api.github.com/users/Tom-Ski/orgs","repos_url":"https://api.github.com/users/Tom-Ski/repos","events_url":"https://api.github.com/users/Tom-Ski/events{/privacy}","received_events_url":"https://api.github.com/users/Tom-Ski/received_events","type":"User","site_admin":false},"created_at":"2016-09-02T17:47:38Z","updated_at":"2016-09-02T17:47:38Z","body":"Did you try with the latest IDEA plugin snapshot?"}}
{"actor":{"display_login":"Tom-Ski"}}