-
Notifications
You must be signed in to change notification settings - Fork 10
Conversation
Any chance you could add some tests? The first changes were much smaller, There's core.async namespaces that you can use for macros, included in the On Mon, May 19, 2014 at 8:05 PM, cichli notifications@github.com wrote:
|
Refactoring can be done once the functionality's there, I'm not too worried On Mon, May 19, 2014 at 8:35 PM, Gary Trakhman gary.trakhman@gmail.comwrote:
|
Thanks for the feedback - I'll add tests for all the new features this evening. From a quick look at the compiler dump we can cover everything, but it might be useful to generate a new dump with some more complex ns declarations to make sure all the edge cases are caught correctly. Is there any reason we can't include a cljs project in test-resources, and then analyse that at test time to create a test env? That would make it much easier to add new test cases etc. as issues arise. This will obviously introduce a test-time dependency on clojurescript, but brings the benefit of being able to test against multiple clojurescript versions. Thoughts? |
Ah, that could work, too. Just more work, and the compiler dump was an end I don't think there's been analyzer format changes since I started on this, On Tue, May 20, 2014 at 7:05 AM, cichli notifications@github.com wrote:
|
Yes, adding tests was indeed useful - I've ironed out a bunch of edge cases. The info tests could do with cleaning up a bit and I also couldn't find any cases of One thing to note: I had to add dependencies for clojurescript, core.async and om to be able to load the macros for the new tests. I'm not sure if that's desirable - they're in the :dev profile anyway. |
Oh, and please let me know if you want me to squash the commits. |
I'll review this within the next few days, but sounds good so far. |
👏 |
👍 |
This adds full support for autocompletion and info of macros (both referred and namespace-qualified). Additionally, info now supports referred var names.
There's still a bit of tidying/refactoring to be done - there are a few similar-but-not-quite-the-same functions for macros and vars that could probably be merged, but I'm hesitant to do this until we have support for imports so we can see what that looks like. Additionally, I'm still quite new to Clojure and am not 100% sure of the most appropriate way to go about creating a common abstraction over them - any suggestions for improvement / comments would be much appreciated :).