Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Annotate defnk/fnk meta with their :file #127

Open
emidln opened this issue Jun 15, 2016 · 1 comment
Open

Annotate defnk/fnk meta with their :file #127

emidln opened this issue Jun 15, 2016 · 1 comment

Comments

@emidln
Copy link

emidln commented Jun 15, 2016

It'd be nice to grab the source for a fnk during development or for debugging. I wrote https://gist.github.com/f2ee7ec7753bb83de1b974c919e1eb0b to do so, but it is very much a hack. Can we annotate the :file metadata of at least defnk (if not fnk) so that (a normal clojure.repl/source) would work?

@w01fe
Copy link
Member

w01fe commented Jun 16, 2016

I believe defnk does have the file, line, and column, and source seems to work for me -- can you please show a transcript of the problem? (I also don't think this stuff belongs on a fnk, just the defnk var).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants