Fork me on GitHub
#clj-on-windows
<
2022-04-11
>
didibus02:04:14

Anyone who upgraded to Win 11, can you tell me if the taskbar can be set to "use small buttons" and "combine when taskbar is full" ?

thheller05:04:59

the win11 taskbar is horrible and no it can't be configured much. there are 3rd party hacks but I don't quite trust those. an official update is supposed to be coming but no idea when

Serafeim Papastefanos08:04:07

Hello friends. The instructions on https://github.com/clojure/tools.deps.alpha/wiki/clj-on-Windows are not working. this is true for like 2-3 years

didibus05:04:40

I recommend the last bit (Which I added to that page :p) > There is also a Clojure based launcher compiled with GraalVM as a native executable which works with cmd.exe as well as powershell -- see https://github.com/borkdude/deps.clj to get started with it, or just run the following from PowerShell: PowerShell -Command "iwr -useb https://raw.githubusercontent.com/borkdude/deps.clj/master/install.ps1 | iex" and you're ready to type deps at cmd.exe or the powershell prompt to use it. Remark how it's called deps and not clj or clojure, that means it is safe to try this one out on top of the default PowerShell based clj on windows command.

didibus05:04:49

So you can just run: > PowerShell -Command "iwr -useb https://raw.githubusercontent.com/borkdude/deps.clj/master/install.ps1 And now you can type deps wherever people say you'd type clj, and it should work on windows.

Serafeim Papastefanos05:04:56

Yes I'm already using deps.exe and it works great!

๐Ÿ‘Œ 1
Serafeim Papastefanos08:04:36

if the clj tools aren't going to support windows properly then please write it to the docs and mention lein that runs on windows without problems

borkdude08:04:56

You can also try https://github.com/borkdude/deps.clj as a workaround, it's a drop-in for clj tools

Serafeim Papastefanos08:04:32

that works thank you

Serafeim Papastefanos08:04:16

here's the error i get for anybody interested:

PS C:\users\serafeim> clj
clj : The 'clj' command was found in the module 'ClojureTools', but the module could not be loaded. For more informatio
n, run 'Import-Module ClojureTools'.
At line:1 char:1
+ clj
+ ~~~
    + CategoryInfo          : ObjectNotFound: (clj:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CouldNotAutoloadMatchingModule

PS C:\users\serafeim>
PS C:\users\serafeim>
PS C:\users\serafeim> Import-Module ClojureTools
Import-Module : File C:\Users\serafeim\Documents\WindowsPowerShell\Modules\ClojureTools\ClojureTools.psm1 cannot be loa
ded because running scripts is disabled on this system. For more information, see about_Execution_Policies at https:/go
..
At line:1 char:1
+ Import-Module ClojureTools
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : SecurityError: (:) [Import-Module], PSSecurityException
    + FullyQualifiedErrorId : UnauthorizedAccess,Microsoft.PowerShell.Commands.ImportModuleCommand

Serafeim Papastefanos08:04:57

I installed it using powershell.exe -noprofile -executionpolicy bypass -file .\win-install-1.10.3.1087.ps1 as per the docs

littleli10:04:22

@spapas you could also used https://github.com/littleli/scoop-clojure if it fits your need.

Serafeim Papastefanos10:04:19

Thanks @ales.najmann but I am not using scoop (nor any other package manager) on windows

๐Ÿ†— 1