Fork me on GitHub
#cider
<
2020-04-19
>
EmmanuelOga06:04:30

sup, I notice cider adds imports for some of my stuff sometimes. I wonder if there's a way to import arbitrary symbols. I imagine if I have a class name there may be something that looks for that class name on my classpath and adds the import

dpsutton06:04:28

can you give an example of what you mean?

EmmanuelOga06:04:52

this is saves me one step but I still need to know where the class is coming from: https://github.com/clojure-emacs/clj-refactor.el/wiki/cljr-add-import-to-ns

EmmanuelOga06:04:23

I'd like to not have to type the whole package name (many times because I don;t know and I need to google the package name)

EmmanuelOga06:04:17

on the cljr-auto-clean-ns the user knew that they had to type java.util.Date

EmmanuelOga06:04:40

but I'm guessing it could be possible to get all the different classes named "Date" from the classpath and offer a popup or something

EmmanuelOga06:04:47

I wonder if someone already did something like that

dpsutton06:04:12

Try cider-javadoc. I think it can look at all of the classes for you

dpsutton06:04:19

Might help in doscoverability

EmmanuelOga06:04:34

apparently there's a library to scan resources in the classpath, including classes and files under teh resources folder

EmmanuelOga06:04:06

tempted to embark on a big yak shaving trip, but I better go back to my code at hand 🙂