{"action":"created","issue":{"url":"https://api.github.com/repos/clojure-emacs/cider/issues/1392","labels_url":"https://api.github.com/repos/clojure-emacs/cider/issues/1392/labels{/name}","comments_url":"https://api.github.com/repos/clojure-emacs/cider/issues/1392/comments","events_url":"https://api.github.com/repos/clojure-emacs/cider/issues/1392/events","html_url":"https://github.com/clojure-emacs/cider/issues/1392","id":114227849,"number":1392,"title":"Transfer meaningful file and line information on hot code eval","user":{"login":"kotarak","id":40587,"avatar_url":"https://avatars.githubusercontent.com/u/40587?v=3","gravatar_id":"","url":"https://api.github.com/users/kotarak","html_url":"https://github.com/kotarak","followers_url":"https://api.github.com/users/kotarak/followers","following_url":"https://api.github.com/users/kotarak/following{/other_user}","gists_url":"https://api.github.com/users/kotarak/gists{/gist_id}","starred_url":"https://api.github.com/users/kotarak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kotarak/subscriptions","organizations_url":"https://api.github.com/users/kotarak/orgs","repos_url":"https://api.github.com/users/kotarak/repos","events_url":"https://api.github.com/users/kotarak/events{/privacy}","received_events_url":"https://api.github.com/users/kotarak/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-30T09:01:18Z","updated_at":"2015-10-30T09:05:27Z","closed_at":null,"body":"Working on a function in a file, hot evaling it in the repl server and testing it immediately is a very fast way of working. Unfortunately the file and line information is not kept during hot eval. In case of an exception you get rather useless location information.\r\n\r\nIn VimClojure I implemented said information transfer to the backend and it worked rather well for debugging. I simply proxied the reader during eval and also set the compiler location specific Vars.\r\n\r\ncf. [`make-reader` and `with-repl*`](https://bitbucket.org/kotarak/vimclojure/src/22bbb523b40189aea180bf2ace8eeffe24cb456b/server/src/main/clojure/vimclojure/repl.clj?fileviewer=file-view-default#repl.clj-102)\r\n\r\nIs there a chance to have this implemented in cider also? And if yes, where should I start?\r\n\r\nPS: I know that the location info of code below said function might get of out sync. I consider this less annoying than having no info at all during debug. And it can be easily fixed by hot eval if necessary."},"comment":{"url":"https://api.github.com/repos/clojure-emacs/cider/issues/comments/152465383","html_url":"https://github.com/clojure-emacs/cider/issues/1392#issuecomment-152465383","issue_url":"https://api.github.com/repos/clojure-emacs/cider/issues/1392","id":152465383,"user":{"login":"bbatsov","id":103882,"avatar_url":"https://avatars.githubusercontent.com/u/103882?v=3","gravatar_id":"","url":"https://api.github.com/users/bbatsov","html_url":"https://github.com/bbatsov","followers_url":"https://api.github.com/users/bbatsov/followers","following_url":"https://api.github.com/users/bbatsov/following{/other_user}","gists_url":"https://api.github.com/users/bbatsov/gists{/gist_id}","starred_url":"https://api.github.com/users/bbatsov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bbatsov/subscriptions","organizations_url":"https://api.github.com/users/bbatsov/orgs","repos_url":"https://api.github.com/users/bbatsov/repos","events_url":"https://api.github.com/users/bbatsov/events{/privacy}","received_events_url":"https://api.github.com/users/bbatsov/received_events","type":"User","site_admin":false},"created_at":"2015-10-30T09:05:27Z","updated_at":"2015-10-30T09:05:27Z","body":"Details here https://github.com/clojure-emacs/cider/commit/2c24aaae2219689c05e7165a9b7b3acdbecae21d"}}