-
-
Notifications
You must be signed in to change notification settings - Fork 37
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
Consider using MrAnderson to inline dependencies #189
Comments
For me, this would break my usage of rebel-readline. I use Protobuf, but an older version (3.5.1). It's unfortunate that cljfmt brings in the closure compiler which also brings in Protobuf, causing a massive headache in terms of classpath incompatibilities.
Inlining this would break 100% the use of rebel-readline for me. Thankfully, at the moment, I'm able to exclude the Closure compiler stuff like this:
resulting in:
So, for me, inlining would be a show-stopper in my use of rebel-readline (which I like quite a lot). |
maybe you missing a piece of puzzle here (or maybe I do) but MrAnderson not only inlines it also changes ns names and their references (aka inlines and shadows dependencies). so you would not have a clash on the cp with MrAnderson inlined deps. hope this makes sense. more details in the MrAnderson readme or you can have a look on the innards of cider-nrepl artifact |
Ah, I see, okay that's fine then :) |
Rebel-readline was on my list of things to check out and when I've got to it I realised it might benefit from using MrAnderson to inline some dependencies. That should mitigate the problem described in design priorities of the intro file:
and help fixing #15 and maybe #94, #162 too.
I played with both
rebel-readline
andrebel-readline-cljs
a bit. Seems to me that inliningcljfmt
,compliment
andcljs-tooling
forrebel-readline-cljs
working OK. Although MrAnderson can prefix java classes as well I would not touch thejline
stuff for now.On downside the testing/building/releasing gets a bit more complex eg. the build need to make sure that everything is working fine with inlined deps.
Happy to put together a PR for this. I could add some Makefiles and the like as well to support the build -- I would very likely use https://github.com/clojure-emacs/cider-nrepl and https://github.com/clojure-emacs/refactor-nrepl Makefiles as templates.
Thanks for all your open source work btw, really appreciated.
The text was updated successfully, but these errors were encountered: