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

Make find-definition work on code eval'd via the repl. #33

Open
austinhaas opened this issue Jul 1, 2021 · 0 comments
Open

Make find-definition work on code eval'd via the repl. #33

austinhaas opened this issue Jul 1, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@austinhaas
Copy link
Owner

When code is originally loaded, via require, symbols will have metadata associated with them that indicates the file and line from where it was loaded. If you eval the code after that, :file will be changed to "NO_SOURCE_PATH".

I really don't know the best way to handle this. That metadata really only tells you where the code originally came from; if you edit any of the source files, that info may become stale.

It would be good to know how Clojure sets those values in the first place. This might be a good place to start: clojure/clojure@6bbfd94

@austinhaas austinhaas added the enhancement New feature or request label Jul 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant