{"action":"created","issue":{"url":"https://api.github.com/repos/janestreet/jbuilder/issues/138","repository_url":"https://api.github.com/repos/janestreet/jbuilder","labels_url":"https://api.github.com/repos/janestreet/jbuilder/issues/138/labels{/name}","comments_url":"https://api.github.com/repos/janestreet/jbuilder/issues/138/comments","events_url":"https://api.github.com/repos/janestreet/jbuilder/issues/138/events","html_url":"https://github.com/janestreet/jbuilder/issues/138","id":234975952,"number":138,"title":"Tracking paths to error locations","user":{"login":"mmottl","id":1189131,"avatar_url":"https://avatars0.githubusercontent.com/u/1189131?v=4","gravatar_id":"","url":"https://api.github.com/users/mmottl","html_url":"https://github.com/mmottl","followers_url":"https://api.github.com/users/mmottl/followers","following_url":"https://api.github.com/users/mmottl/following{/other_user}","gists_url":"https://api.github.com/users/mmottl/gists{/gist_id}","starred_url":"https://api.github.com/users/mmottl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmottl/subscriptions","organizations_url":"https://api.github.com/users/mmottl/orgs","repos_url":"https://api.github.com/users/mmottl/repos","events_url":"https://api.github.com/users/mmottl/events{/privacy}","received_events_url":"https://api.github.com/users/mmottl/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":13,"created_at":"2017-06-10T03:04:59Z","updated_at":"2017-11-27T12:13:15Z","closed_at":"2017-09-22T10:46:28Z","author_association":"CONTRIBUTOR","body":"My directory structure is as follows:\r\n```\r\njbuild\r\njbuild-workspace\r\nsrc/\r\n  jbuild\r\n  ...\r\nexamples/\r\n  foo.ml\r\n  jbuild\r\n  ...\r\n```\r\n\r\n`src` contains a library and `examples` example applications.  If I go to the `examples` directory and issue a build command from there (e.g. from an editor), an error in example `foo.ml` would be reported using location `examples/foo.ml`.  This is a problem for inferring correct error locations.  The editor does not know where the root of this path is, because we are in a (potentially even deeper) subdirectory.\r\n\r\nCould you please print the absolute path of the root for error messages for a particular build when `jbuilder` is invoked so editors can infer the correct path?  E.g. Vim allows you to pattern match on the build output to keep track of directory stacks for correct errors locations.  A somewhat unique string should be used to correctly identify this location message, preferably an existing `make`-like `Entering directory` message that Vim or Emacs already understand."},"comment":{"url":"https://api.github.com/repos/janestreet/jbuilder/issues/comments/347164393","html_url":"https://github.com/janestreet/jbuilder/issues/138#issuecomment-347164393","issue_url":"https://api.github.com/repos/janestreet/jbuilder/issues/138","id":347164393,"user":{"login":"bobot","id":102849,"avatar_url":"https://avatars0.githubusercontent.com/u/102849?v=4","gravatar_id":"","url":"https://api.github.com/users/bobot","html_url":"https://github.com/bobot","followers_url":"https://api.github.com/users/bobot/followers","following_url":"https://api.github.com/users/bobot/following{/other_user}","gists_url":"https://api.github.com/users/bobot/gists{/gist_id}","starred_url":"https://api.github.com/users/bobot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bobot/subscriptions","organizations_url":"https://api.github.com/users/bobot/orgs","repos_url":"https://api.github.com/users/bobot/repos","events_url":"https://api.github.com/users/bobot/events{/privacy}","received_events_url":"https://api.github.com/users/bobot/received_events","type":"User","site_admin":false},"created_at":"2017-11-27T12:13:14Z","updated_at":"2017-11-27T12:13:14Z","author_association":"COLLABORATOR","body":"Indeed I forget to say that I don't see any problem for the first point."}}
{"actor":{"display_login":"bobot"}}