How can I run clj with -Sdeps in git bash
powershell -command clj -Sdeps "{:deps {viebel/klipse-repl {:mvn/version \"0.2.3\"}}}" -m klipse-repl.main
=> Unknown option: "-i"
good question
Hmmm… let’s see in PowerShell, the following works:
clj -Sdeps '{:deps {viebel/klipse-repl {:mvn/version ""0.2.3""}}}' -m klipse-repl.main
I expect this is not the only way to get this working from git bash… but…
powershell -command 'clj -Sdeps "{:deps {viebel/klipse-repl {:mvn/version """"0.2.3""""}}}" -m klipse-repl.main'
@minhnhat10bkI tried the above from cmd.exe and that didn’t seem to work (or maybe I did something wonky)
well cmd.exe is probably different than git bash.
in a next version of Windows 10 they will have some for of unified shell for cmd.exe, powershell and git bash?
or so I read somewhere
https://www.theverge.com/2019/5/6/18527870/microsoft-windows-terminal-command-line-tool
it’s just a GUI thing so it seems
I’m no Windows guy anymore, but I recently learned that PowerShell is cross-platform now. For what that’s worth.
I might become a Windows guy again at some point, considering the Macbook Pro I want right now is 4200+ dollars
or might switch to linux
but since Windows is going to support a linux shell, it might be a viable future alternative again
Ok, I jabbed away at a cmd.exe version and found this works:
powershell -command clj -Sdeps '{:deps {viebel/klipse-repl {:mvn/version """"""0.2.3""""""}}}' -m klipse-repl.main
That’s a lotta double quote escaping!I have a friend who runs a Hackintosh. He seems to be always fiddling and tweaking though.
yeah, I don’t like the tweaking, that’s why I’m a little bit wary of the combination linux and me… I always tweak until I’m either very tired or break the system 😛
I can’t say that I understand the escape rules. Perhaps it gets confusing because we are dealing with powershell escape rules and whatever shell you are using escape rules.
I ran linux for a while. A bit tweakier than Mac, but I liked it.
you’re back on Mac now I presume?
yes
maybe I just gotta pay Apple tax and get on with my life 😉
maybe you’ll get some funding from Clojurists Together to afford this lavishness.
haha, I can afford it, but it just seems a bit much for a laptop
Oh MacBook Pro… I read Mac Pro.
neh, I’m a laptop dude
currently iMac for me.
This is the one I would buy next: https://www.dropbox.com/s/f5j42bgje2twnzl/Screenshot%202019-06-14%2018.33.07.png?dl=0 It seems it’s cheaper in dollars than euros
nice! I’m sure you will find a way to rationalize the purchase! :simple_smile:
haha… 🙂
I’ve been an Apple guy since the early 90's but I’m switching to Windows.
I already switched from a MacBook to a Dell Windows 8 machine for casual use several years ago (and it’s now running Windows 10 Insider builds).
My desktop is a 27" iMac but it runs Windows 10 (Insider builds again) via Parallels and I do most day-to-day stuff in Windows — and only run *nix script stuff on the Mac via Terminal.
But I’ve recently been doing more and more with WSL/Ubuntu (bash) and Powershell.
I use Atom/Chlorine as my Clojure editor and that understands how to translate load-file
paths if it detects that your editor is running on Windows but your REPL is running on WSL (so <drive>:\path\to\the\file.clj
becomes /mnt/<drive>/path/to/the/file.clj
automatically).
So Atom/Chlorine works with both clj
on Powershell and clj
on bash on Windows 🙂
(back when I started with Apple, it was System 6, so I bought Tenon Intersystems’ “Mach Ten” which was a parasitic/hosted BSD 4.3 Unix, based on the Mach 2 kernel — so I’ve always had a Mac that can run *nix stuff 🙂 )
Windows has only become viable for me with WSL since so much of our work stack assumes *nix.
Microsoft’s Surface Book 2 is what makes me drool these days — it’s 2019 and Apple still won’t do a touch screen laptop! Argh!
I want 32GB mem
but there are much cheaper laptops with 32GB on which I could run Windows
@seancorfield thanks for sharing, although you haven’t shared the ‘why’
Ah… I think Apple has somewhat lost its way as far as developers are concerned.
Microsoft has done a huge amount of open source work lately and is very aggressively pushing to draw in developers with tooling and embracing Linux.
I also love, love, love having a touch screen, even when I’m developing, so it’s just frustrates the heck out of me that Apple still will not embrace that.
Plus, there’s also the “Apple tax” on new devices.
Like I say, I’ve been doing development on Macs for about 27 years now. I’ve used every version of Windows since 3.11… but I only started to like Windows with 8, and it still wasn’t viable for development, for me, until 10 got WSL (and early Insider builds of it couldn’t even run a JVM!).
I’ve had three iPhones, over the years, but I mostly run a Microsoft suite on the current one (Edge, Cortana, Outlook, Todo). My wife just replaced her 5S with an XS ($1,200! 🤯 ) but I’ll probably replace my 5S eventually with an Android, maybe a OnePlus 7… and MS has great integration with Android (hand off of tasks, messaging in Windows, etc) which Apple seems to make very difficult 😞
So… I’m just about done with Apple… Never thought I’d see the day where I’d prefer Windows over macOS, and Microsoft apps over Apple apps… 😲
Yeah, I think I want 32G in my next dev machine. I’ve lived with 16G for a long time and I want MOAR!
yeah, I’m just a little bit before the tipping point, but I can see it happening
Def. something to consider before you drop $4k on a new machine 🙂
I’ll wait at least until September (I think)
If work would spring for it, I’d get a Surface Studio 2 in a heart beat 🙂 to replace my iMac. But it’s more likely I’d get a reasonably high end Dell touch screen desktop.
If money was no object for me, personally, I’d probably get a loaded Surface Book 2 for on-the-go use.
only 16GB
but it’s a cool machine
Yeah, the 16G limit is… disappointing… My current Dell laptop is only 8G (and 128G SSD). Cost $1,500 back in the day. $999 would get me a similar spec brand new Surface Pro 6 + Type Cover right now. So tempting as a fun, portable, casual device — that I could run Clojure on and do some dev work 🙂 (My Dell is a convertible tablet/laptop).
@seancorfield how’s the Docker support on Windows?
Haven't tried it myself on Pro but read a friend's blog who switched from Linux to Windows talks a lot about Docker/Kubernetes... and he seems happy...
https://marcesher.com/2018/01/02/going-back-to-windows-windows-windows/ -- read it and see how you feel
thanks!