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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG: uninstall not working for some scripts #65

Closed
amitnovick opened this issue May 12, 2023 · 3 comments
Closed

BUG: uninstall not working for some scripts #65

amitnovick opened this issue May 12, 2023 · 3 comments

Comments

@amitnovick
Copy link

Hello! 馃

Firstly, bookmark-files-combiner is a babashka script I installed a week ago with bbin install and now I want to uninstall it (so I can install a newer version afterwards).

  • My input at the terminal:
bbin uninstall bookmark-files-combiner
  • Expectation: script is uninstalled globally

  • What happened instead: script did not uninstall and outputs an error:

----- Error --------------------------------------------------------------------
Type:     clojure.lang.ExceptionInfo
Message:  Invalid script coordinates.
If you're trying to install from the filesystem, make sure the path actually exists.
Data:     {:script/lib "bookmark-files-combiner", :procurer :unknown-procurer, :artifact :unknown-artifact}
Location: /home/amit/.babashka/bbin/bin/bbin:1192:5

----- Context ------------------------------------------------------------------
1188:   (println (str (util/bin-dir cli-opts))))
1189: 
1190: (defn- throw-invalid-script [summary cli-opts]
1191:   (let [{:keys [procurer artifact]} summary]
1192:     (throw (ex-info "Invalid script coordinates.\nIf you're trying to install from the filesystem, make sure the path actually exists."
          ^--- Invalid script coordinates.
If you're trying to install from the filesystem, make sure the path actually exists.
1193:                     {:script/lib (:script/lib cli-opts)
1194:                      :procurer procurer
1195:                      :artifact artifact}))))
1196: 
1197: (defn- new-script [cli-opts]

----- Stack trace --------------------------------------------------------------
babashka.bbin.scripts/throw-invalid-script - /home/amit/.babashka/bbin/bin/bbin:1192:5
babashka.bbin.scripts/throw-invalid-script - /home/amit/.babashka/bbin/bin/bbin:1190:1
babashka.bbin.scripts/load-script          - /home/amit/.babashka/bbin/bin/bbin:1243:11
babashka.bbin.scripts/load-script          - /home/amit/.babashka/bbin/bin/bbin:1228:1
babashka.bbin.scripts                      - /home/amit/.babashka/bbin/bin/bbin:1273:20
... (run with --debug to see elided elements)
babashka.bbin.cli/bbin                     - /home/amit/.babashka/bbin/bin/bbin:1341:1
babashka.bbin.cli                          - /home/amit/.babashka/bbin/bin/bbin:1347:3
clojure.core/apply                         - <built-in>
babashka.bbin.cli                          - /home/amit/.babashka/bbin/bin/bbin:1351:3
babashka.bbin.cli                          - /home/amit/.babashka/bbin/bin/bbin:1349:1
@rads
Copy link
Collaborator

rads commented May 12, 2023

Thanks for the report. I鈥檒l get this fixed soon.

@rads rads changed the title BUG: uninstall not working BUG: uninstall not working for some scripts Jun 19, 2023
@rads
Copy link
Collaborator

rads commented Jun 19, 2023

This will be fixed in the upcoming 0.2.0 release.

@rads
Copy link
Collaborator

rads commented Sep 28, 2023

0.2.0 has been released.

@rads rads closed this as completed Sep 28, 2023
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

2 participants