clj-on-windows

Cj Pangilinan 2021-02-28T09:53:10.003400Z

Hi how do i uninstall clojure tools which is installed via powershell?

chucklehead 2021-03-01T00:47:15.007400Z

From a PS session where you haven't run any clj commands this should work Get-Module -Name ClojureTools | Split-Path | Remove-Item -Recurse

Cj Pangilinan 2021-03-01T00:52:38.010700Z

Get-Module -Name ClojureTools doesn't return anything. even in Get-InstalledModule. but in Documents/WindowsPowerShell/Modules/, there's a ClojureTools.

Cj Pangilinan 2021-03-01T00:53:05.010900Z

I plan to install clojure via scoop, since that's the way I installed most of my tools.

Cj Pangilinan 2021-03-01T00:53:45.011100Z

Can I just delete the ClojureTools in Documents/WindowsPowerShell/Modules/?

chucklehead 2021-03-01T00:54:06.011300Z

yeah, the installer script just unzips a ps module there

Cj Pangilinan 2021-03-01T00:55:16.011500Z

ok. thank you. i just thought deleting it may cause some problems in the future that's why i want to know the right way to uninstall the ps module

chucklehead 2021-03-01T02:07:41.011700Z

unfortunately AFAIK there's no generic way in PowerShell (other than just deleting the folder)...in general PS just searches for modules in the paths registered in $env:PSModulePath. For things installed via install-package/install-module you can use uninstall-module, some modules just install into one of the default locations, some ship installers that add app folders to $env:PSModulePath, etc.

👍 1
borkdude 2021-02-28T20:07:15.005200Z

@seancorfield I could be mistaking, but he asked *un*installing and that isn't described here: https://github.com/clojure/tools.deps.alpha/wiki/clj-on-Windows

seancorfield 2021-02-28T20:07:29.005500Z

Oh, my bad! Yes, sorry.

seancorfield 2021-02-28T20:07:54.005900Z

Gone! 🙂

borkdude 2021-02-28T20:08:13.006300Z

But I agree, scoop is pretty convenient :) (#scoop)

seancorfield 2021-02-28T20:09:06.007Z

(I still hold that the best way to develop Clojure on Windows 10 is via WSL2 -- and using brew for managing the installs on Ubuntu)

👍 1
Cj Pangilinan 2021-03-03T02:33:08.016600Z

I have yet to try this WSL2. I already installed it. But it needs a distro like ubuntu. until now, i haven't continue installing one.

seancorfield 2021-03-03T02:48:32.016800Z

@cjpangilinan I thought it auto-installed Ubuntu by default when you first started it up, but it's been a while. I know several distros were easily installable from the Microsoft Windows Store (who would ever have thought?).

borkdude 2021-02-28T20:11:08.007200Z

I don't disagree.