babashka-sci-dev

teodorlu 2022-04-19T10:41:39.007849Z

Is neil on master working for you guys? I just updated the binary from master:

neil_local="$HOME/.local/bin/neil"
    wget -O "$neil_local" ""
    chmod +x "$neil_local"
But I'm getting problems with dep versions and dep search:
teodorlu@teod-t490s ~/tmp/temp-2022-04-19 % neil dep versions org.clojure/clojure
:lib org.clojure/clojure :version nil
teodorlu@teod-t490s ~/tmp/temp-2022-04-19 % neil dep search org.clojure/clojure
----- Error --------------------------------------------------------------------
Type:     java.lang.NullPointerException
Location: /home/teodorlu/.local/bin/neil:326:11

----- Context ------------------------------------------------------------------
322:   (let [search-term (first (:cmds opts))
323:         url (str "" search-term)
324:         {search-results :results
325:          results-count :count} (curl-get-json url)]
326:     (when (zero? results-count)
               ^---
327:       (binding [*out* *err*]
328:         (println "Unable to find" search-term  "on Clojars.")
329:         (System/exit 1)))
330:     (doseq [search-result search-results]
331:       (println :lib (format  "%s/%s"

----- Stack trace --------------------------------------------------------------
clojure.core/zero?       - <built-in>
babashka.neil/dep-search - /home/teodorlu/.local/bin/neil:326:11
babashka.neil/dep-search - /home/teodorlu/.local/bin/neil:321:1
babashka.neil/dep        - /home/teodorlu/.local/bin/neil:403:16
babashka.neil/dep        - /home/teodorlu/.local/bin/neil:397:1
babashka.neil/-main      - /home/teodorlu/.local/bin/neil:409:13
babashka.neil/-main      - /home/teodorlu/.local/bin/neil:405:1
babashka.neil            - /home/teodorlu/.local/bin/neil:414:3

teodorlu 2022-04-19T10:51:02.129039Z

last published tag (v0.0.23) works as expected for me, but master fails.

teodorlu 2022-04-19T10:51:06.918289Z

teodorlu 2022-04-19T10:51:29.137159Z

(realizing that I shouldn't just be installing from master if I wanted something stable)

borkdude 2022-04-19T10:59:14.680649Z

@teodorlu Maybe the script should be regenerated on master? I'd appreciate it if you wanted to try that locally to see what's wrong

borkdude 2022-04-19T10:59:27.794119Z

I haven't got time for that today, maybe later in the week

teodorlu 2022-04-19T11:00:38.305049Z

No worries - 0.0.23 works fine. Running bb run gen-script from master produces zero changes in the neil binary here.

borkdude 2022-04-19T11:01:16.882229Z

And running the local script with those search stuffs?

borkdude 2022-04-19T11:02:01.682739Z

maybe we should add a test and revert this commit: https://github.com/babashka/neil/commit/893dc58dade872f28bb27f2ea0a14f3b260de9e7

borkdude 2022-04-19T11:02:25.759529Z

and also submit an issue please

teodorlu 2022-04-19T11:04:33.008109Z

as far as I can tell: 1. both dep versions and dep search are broken on master 2. dep versions works on 0.0.23 3. dep search on 0.0.23 works when searching for hiccup, but fails when searching for org.clojure/clojure

borkdude 2022-04-19T11:06:00.143209Z

dep search only searches on clojars maybe

teodorlu 2022-04-19T11:06:41.457059Z

That might be the case

teodorlu 2022-04-19T11:06:51.104099Z

Quick issue: https://github.com/babashka/neil/issues/24

teodorlu 2022-04-19T11:06:54.968369Z

Back to work for me too 🙂

teodorlu 2022-04-19T10:45:05.674929Z

Also, we don't have something like neil --version, right?