{"action":"closed","issue":{"url":"https://api.github.com/repos/dart-lang/sdk/issues/20126","labels_url":"https://api.github.com/repos/dart-lang/sdk/issues/20126/labels{/name}","comments_url":"https://api.github.com/repos/dart-lang/sdk/issues/20126/comments","events_url":"https://api.github.com/repos/dart-lang/sdk/issues/20126/events","html_url":"https://github.com/dart-lang/sdk/issues/20126","id":84586317,"number":20126,"title":"report errors in the original line","user":{"login":"sigmundch","id":2049220,"avatar_url":"https://avatars.githubusercontent.com/u/2049220?v=3","gravatar_id":"","url":"https://api.github.com/users/sigmundch","html_url":"https://github.com/sigmundch","followers_url":"https://api.github.com/users/sigmundch/followers","following_url":"https://api.github.com/users/sigmundch/following{/other_user}","gists_url":"https://api.github.com/users/sigmundch/gists{/gist_id}","starred_url":"https://api.github.com/users/sigmundch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sigmundch/subscriptions","organizations_url":"https://api.github.com/users/sigmundch/orgs","repos_url":"https://api.github.com/users/sigmundch/repos","events_url":"https://api.github.com/users/sigmundch/events{/privacy}","received_events_url":"https://api.github.com/users/sigmundch/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dart-lang/sdk/labels/Area-Pkg","name":"Area-Pkg","color":"ededed"},{"url":"https://api.github.com/repos/dart-lang/sdk/labels/Pkg-PolymerBuild","name":"Pkg-PolymerBuild","color":"ededed"},{"url":"https://api.github.com/repos/dart-lang/sdk/labels/PolymerMilestone-Next","name":"PolymerMilestone-Next","color":"ededed"},{"url":"https://api.github.com/repos/dart-lang/sdk/labels/Priority-Medium","name":"Priority-Medium","color":"ededed"},{"url":"https://api.github.com/repos/dart-lang/sdk/labels/Triaged","name":"Triaged","color":"ededed"},{"url":"https://api.github.com/repos/dart-lang/sdk/labels/Type-Defect","name":"Type-Defect","color":"ededed"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2014-07-21T15:37:55Z","updated_at":"2015-06-05T23:13:35Z","closed_at":"2015-06-05T23:13:35Z","body":"We have situations where we report errors in a line that is transformed, so users can't see where the error really comes from. For example:\n\n&gt; [Warning bwu_fontawesome_iconset_svg|example/index.html\\]: line 1537, column 1: private symbols cannot be used in event handlers\n\nThis error is detected in script compactor after all the inlining is done, so we end up reporting an error in line 1537 for a file with just 66 lines.\n\nProbably the easiest solution is to move some of the checks for private symbols into the linter, which is processing files before any transformation happens.\n\nTo avoid parsing all the template expressions twice, we could pass the extracted data as an asset to the later phase."}}