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

Clojars release 1.1.4 might be broken - completable-future is missing in my jar #52

Closed
ieugen opened this issue Jan 18, 2022 · 17 comments
Closed
Assignees

Comments

@ieugen
Copy link
Member

ieugen commented Jan 18, 2022

Hello,

I added this library to my project to test it out.
I'm using com.climate/claypoole {:mvn/version "1.1.4"} with deps.edn.

I copied the examples and I got an error when I tried to run the piece of code with:

(def cfut (cp/completable-future pool (my-fn ["b" :a :d])))

I got this in Calva:

; Syntax error compiling at (src/ro/ieugen/training/parallel/claypool.clj:23:11).
; No such var: cp/completable-future
; Evaluation of file claypool.clj failed: class clojure.lang.Compiler$CompilerException

Checked the jar file locally and found out the macro is missing.
File looks kind of old (July 2016) so maybe the build might be broken?

Perhaps some other fixes are also missing from latest release.

Captură de ecran de la 2022-01-19 00-42-18

@ieugen
Copy link
Member Author

ieugen commented Jan 18, 2022

I saw that 1.1.4 is quite old and completable-future is quite new code.
Would be nice to have a new release that supports them.

@leon-barrett
Copy link
Contributor

Yeah, the issue is basically that I no longer have rights to that repo in Clojars after I left the company, so I tried to deploy it, and I failed. I probably need to fork the repo and set up a new Claypoole package (maybe just claypoole), but I haven't done so yet; I was unsure if anyone needed it. Sounds like you do.

@ieugen
Copy link
Member Author

ieugen commented Jan 19, 2022

Yes we use it.
I think others use it too.
It pops up on Clojurians Slack channel.
Too bad it needs compiled java classes. otherwise it could have been migrated to deps.edn and use git branch dependency .

@ieugen
Copy link
Member Author

ieugen commented Jan 19, 2022

If the java code does not change that often, it could be published as a separate library from the Clojure parts and use deps.edn (with git dependencies) for the clojure parts.

@ieugen
Copy link
Member Author

ieugen commented Jan 21, 2022

@leon-barrett Do you have plans to fork the project and do that part?
IF you don't have time to maintain it maybe we can try to see if we can push it towards clj-commons or some other org where more people can get involved.
https://github.com/clj-commons

I am not affiliated with them but I would contribute some patches.

@borkdude
Copy link

If the java code does not change that often, it could be published as a separate library from the Clojure parts and use deps.edn (with git dependencies) for the clojure parts.

deps.edn also supports preparation of a lib with Java sources in it now:

https://clojure.org/reference/deps_and_cli#prep

@leon-barrett
Copy link
Contributor

Yeah, I wrote Clojure professionally from 2012-2017, but I haven't touched it in a while now. I'd love to hand this project off. clj-commons sounds like a great idea. I'll see about getting it transferred there.

(I contacted people at Climate to see about getting updated versions pushed, but I wouldn't hold my breath.)

@leon-barrett
Copy link
Contributor

leon-barrett commented Jan 21, 2022

Okay, I filed issue clj-commons/meta#66 edit: but closed it in favor of clj-commons/meta#65

@ieugen
Copy link
Member Author

ieugen commented Jan 21, 2022

If they are not interested in maintaining it (and it seems this is the case) maybe they would like to transfer it so that other people can maintain it.

Thanks for being open to the idea and active in contacting your former employees.
Let's hope they agree.

@jmelching
Copy link

Just let me know where and how to transfer and I'll move it.

@leon-barrett
Copy link
Contributor

@jmelching Thanks! I think you'll transfer it to https://github.com/slipset , and then then they can transfer it on to the organization https://github.com/clj-commons/ . Discussion at clj-commons/meta#65 (comment)

When slipset is ready, you can transfer it via instructions available at https://docs.github.com/en/repositories/creating-and-managing-repositories/transferring-a-repository .

Thanks again!

@slipset
Copy link
Member

slipset commented Jan 24, 2022

@jmelching I'll invite you to clj-commons, and you'll be able to do the transfer.

@slipset
Copy link
Member

slipset commented Jan 24, 2022

@jmelching You should have gotten an invite. To transfer the repo, you need to the repo's "settings" tab and all the way down at the bottom, in the "Danger zone" there is a button "Transfer". Click that, and follow instructions.

@jmelching
Copy link

This is complete. https://github.com/clj-commons/claypoole

@slipset
Copy link
Member

slipset commented Jan 24, 2022

Excellent! Thanks a lot

@slipset slipset closed this as completed Jan 24, 2022
@ieugen ieugen reopened this Jan 25, 2022
@ieugen
Copy link
Member Author

ieugen commented Jan 25, 2022

I think this should be closed after the new release is done that includes the changes in the examples (completable-future).
Let me know if you think otherwise.

ieugen added a commit that referenced this issue Feb 8, 2022
Signed-off-by: Eugen Stan <eugen.stan@netdava.com>
@ieugen ieugen self-assigned this Feb 8, 2022
ieugen added a commit that referenced this issue Feb 10, 2022
Signed-off-by: Eugen Stan <eugen.stan@netdava.com>
@ieugen
Copy link
Member Author

ieugen commented Feb 24, 2022

Should be fixed in release 1.2.2 on clojars (pending announcement) and available o latest branch.

@ieugen ieugen closed this as completed Feb 24, 2022
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

5 participants