Fork me on GitHub
#babashka-sci-dev
<
2022-04-19
>
teodorlu10:04:39

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

teodorlu10:04:02

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

teodorlu10:04:29

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

borkdude10:04:14

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

borkdude10:04:27

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

teodorlu11:04:38

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

borkdude11:04:16

And running the local script with those search stuffs?

borkdude11:04:25

and also submit an issue please

teodorlu11:04:33

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

borkdude11:04:00

dep search only searches on clojars maybe

teodorlu11:04:41

That might be the case

teodorlu11:04:54

Back to work for me too 🙂

teodorlu10:04:05

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