I prefer what you did
Or even just inside a .clj-kondo folder in the homedir
As an example, currently on my windows machine, my homedir has no .config
but it has .sqlworkbench
, .vscode
, .lein
, .git
, etc.
I decided to switch my (old) laptop from WSL1 to WSL2, and ended up installing Ubuntu 20 and now I'm rebuilding my Clojure dev env on WSL2... Sigh. Yak. Shave. Yak. Shave.
Install homebrew for Linux, install gcc, install clj-kondo, install jdk, install clojure, install atom... Oh, hey, look, with Xlaunch I can run the Linux version of Atom on WSL!
@seancorfield What is XLaunch?
A free X11 server for Windows.
I run REBL that way and figured it might be interesting to try to run Atom that way too.
Is it the same thing as VcXsrv ?
I've been running FireFox and Emacs through my windows x server without issues. They both feel like native apps.
Yup, it's a version of VcXsrv
Kind of amazing how it all works so seamlessly
Also apparently they are working on official Wayland support, so eventually I think we won't even need an additional X server. But ya, I've been really impressed with WSL 2
Yeah, that was mentioned in the opening welcome to wslconf today.
@borkdude I wasn't awake early enough to catch all of you talk, but it looked great from the part I saw.
I didn't realize that you did all your dev on a remote machine like that!
if there's a video, please post!
slides: https://speakerdeck.com/borkdude/porting-a-macos-clojure-dev-setup-to-windows-wsl2 video is coming later
I don't do all of my dev remotely, but for parts that are resource intensive I do. Having access to a powerful linux machine and/or Windows machine is very handy. Also when you need to test Windows things quickly.
Oh geeze, the video is already up: @alexmiller @seancorfield https://youtu.be/j5jLPzBRtKI
Nice! Thank you!
I may try to take good notes as I set up my new Windows laptop on Friday and write up a blog post about setting up Clojure dev on WSL2. But I suspect I'll be too excited once it arrives Thursday afternoon/evening and I'll just dive right in! 🙂 That was partly why I switched my older laptop over to WSL2 last night, to get a feel of what might need to be done.
Kohei Ota's talk from session one was really good too. He went from a local macOS dev env to Windows when he joined HP, so he talked about building a local dev env with WSL2 to get a Mac-like experience. He also picked VS Code, but with their WSL "remote" extension experience.
I'm going to experiment with running Atom from Linux via X and see how I like it. I'm too used to Atom and my various code-based configuration to switch to VS Code at this point.
I'll watch your talk from the beginning after I've fed the cats and had a coffee -- I don't normally get up until nearly 9 am (so I was awake almost two hours early to try to catch your talk @borkdude 🙂 )
I'm honored - I'm not too good at early mornings myself ;)
thx, I'll watch when I get a chance
cool, let me know what you think
@seancorfield I also took some notes here: https://blog.michielborkent.nl/2020/07/26/remote-wsl2-clojure/
Thanks! Added to my reading list for later today 🙂
I didn't list Calva + the VSCode ssh extension there, but it's crazy good for working on a remote machine
They have a similar extension for working in Docker containers and WSL (which you mentioned today earlier).
Also, for folks interested in WSL in more depth, here's the playlist from the earlier WSL conference (May 2020, I believe): https://www.youtube.com/playlist?list=PLwFSk464RMxnZkvZ1HKrlNyj-s6Zq4fWe
Several of the current WSL conf talks are already posted here https://www.youtube.com/user/celebrateubuntu/videos
not sure if your xps is a hidpi screen so you may have already dealt with this, but you may have some dpi issues with the surface laptop and trying to run Atom as a forwarded X app.
this has some useful pointers https://superuser.com/questions/1370361/blurry-fonts-on-using-windows-default-scaling-with-wsl-gui-applications-hidpi
X410 also has some settings for this. It's not free, but only 10$ or so and has a trial period
I do have similar problems with tunneling to my laptop, but that's because XQuartz doesn't support Retina
I've heard of folks running into this on macOS with OpenJFX and I've seen the JVM property for dealing with gtk scaling but hadn't thought about it for Windows. Thanks @chuck.cassel! Bookmarked.
Excellent talk @borkdude! Thanks!