babashka-sci-dev 2022-04-19

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

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

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

@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

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

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

And running the local script with those search stuffs?

and also submit an issue please

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

dep search only searches on clojars maybe

That might be the case

Back to work for me too 🙂

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