calva

Wednesdays you might find @U0ETXRFEW in the Gather Calva space. Invite is https://gather.town/invite?token=GZqrm7CR and the password is `Be kind`.
pez 2021-01-06T12:11:51.187600Z

Really cool project you’ve started there with the 12 startups in 12 months, @andyfry01. (I was the guy cheering you on a bit towards the end of yesterdays stream. 😄 ) Not too much Clojure content yesterday, but if you do go down that path, I think you should start a channel here where we can use the opportunity to learn Clojure development together with you. I am particularly interested since it offers me ways to see how you use the tools and where you look for things and such. It was great observing that yesterday on a general level.

pez 2021-01-06T15:12:38.188100Z

So, someone who has never used Clojure is going to use it to spawn 12 startups in 12 months. I think it is worth a channel on this slack and that it could provide learning for a lot of us. I happen to be very interested in start-uppy things and have some experience from the field, but I lack the knowledge about the process as a whole, so find this approach of trying it 12 times in quick succession to be an awesome opportunity to fill in those gaps.

2021-01-06T16:14:32.188300Z

Ha, yeah, I mean it is a bold project for sure. I do have some exposure to all of the underlying ideas of lisp via the Ramda javascript library: https://lispcast.com/ And I've also been a big fan of Eric Normand's newsletter and podcasts: https://lispcast.com/ So I've got a little bit of an idea from having used Ramda and listened to a ton of Eric Normand stuff, but yeah, not much hands on experience with Clojure to speak of! I'll make a channel and post the link 🙂

2021-01-06T16:16:27.188700Z

#startup-in-a-month 👍

bringe 2021-01-06T17:25:12.188900Z

Awesome! Is there inspiration from Pieter Levels here? (just going by the name/goal). Will be awesome to see this done with Clojure. Probably really valuable knowledge can be gained on what challenges you may face as a beginner to Clojure.

teawaterwire 2021-01-06T17:50:48.190800Z

when launching vscode after the lsp work is done, if i hover on a function i see an empty box -- what could be my misconfiguration for that? with the same setup it works for my teammates :thinking_face: 🙏

teawaterwire 2021-01-07T13:15:20.202200Z

sorry i just read this -- let me check!

teawaterwire 2021-01-07T13:17:59.202400Z

running shadow-cljs classpath i get Invalid action "classpath"

teawaterwire 2021-01-07T13:22:23.202600Z

in the tmp file i see a WARN

WARN  clojure-lsp.main: #object[org.eclipse.lsp4j.DidChangeConfigurationParams 0x2d46cda0 DidChangeConfigurationParams [
  settings = {"clojure-lsp":{}}
]]

teawaterwire 2021-01-07T13:28:21.202800Z

hum if i do npx shadow-cljs classpath it works!

teawaterwire 2021-01-07T13:29:23.203500Z

running npm i -g shadow-cljs at the moment 🤞

teawaterwire 2021-01-07T13:31:47.204100Z

now i get the classpath... clearning the cache and lauching vscode again...

teawaterwire 2021-01-07T13:37:03.208600Z

ohy yyyyeahhh --- so this was the global version of shadow!! thanks :))

bringe 2021-01-07T17:08:38.216300Z

Awesome! You're welcome. @ericdallo Just made a change to clojure-lsp to send an error message to the client when the classpath lookup fails, so you'll be notified via error notification in vs code when this happens once we update clojure-lsp in Calva (will do that soon).

🦜 1
bringe 2021-01-06T17:54:57.191100Z

Are you on Windows?

bringe 2021-01-06T18:00:10.191300Z

Also, using lein or clj?

bringe 2021-01-06T18:02:45.191600Z

If on Windows, it's likely (or maybe always) necessary to modify the :classpath-cmd for the project in the .lsp/config.edn. For a Windows clj project I have (image bc screenshotted from a VM).

bringe 2021-01-06T18:03:13.192Z

I believe for lein you may need to change the cmd to ["lein.bat" ...]

bringe 2021-01-06T18:04:09.192200Z

This is something I noticed recently when I fixed a separate issue with lsp+Windows but I forgot about the config change requirement :man-facepalming: . I actually just was reminded this morning before your message and made a note to document it or figure out a no-config-change solution

2021-01-06T18:12:56.192400Z

There is indeed a lot of Pieter Levels influence in the project!

👍 1
teawaterwire 2021-01-06T18:18:58.192600Z

hi - i'm on mac os, in a shadow-cljs project

teawaterwire 2021-01-06T18:19:30.192800Z

(my teammate is also on mac)

bringe 2021-01-06T18:21:01.193Z

And your teammate's works? And they don't have anything in their .lsp/config.edn?

teawaterwire 2021-01-06T18:21:57.193300Z

no because we both tried from a clean install and we don't have a file under .lsp at the moment

bringe 2021-01-06T18:22:42.193500Z

Ah so neither works, ok. Would you mind creating a GH issue please?

teawaterwire 2021-01-06T18:22:53.193700Z

it works for him i meant

teawaterwire 2021-01-06T18:23:13.193900Z

that's why i think there's something wrong on my side --- we have the same version of Calva and Kondo

bringe 2021-01-06T18:24:54.194100Z

Oh, lol. Well that's really weird. An issue would be good, with details about each of your setups (the one that works and that doesn't). Calva version, VS Code version, and MacOS version would all be good details.

teawaterwire 2021-01-06T18:28:06.194400Z

ok i'll do that - thanks!

teawaterwire 2021-01-06T18:32:48.194600Z

just noticed this -- is this normal?

bringe 2021-01-06T19:04:41.195Z

Please create an issue for that too 😄 . That looks like an easy fix.

bringe 2021-01-06T19:05:31.195200Z

Workaround: try making sure your active editor is a code file

bringe 2021-01-06T20:04:01.195400Z

I just realized something while working on something related. clojure-lsp tries to get your classpath info using the shadow-cljs command. If you don't have this installed it won't work.

bringe 2021-01-06T20:04:19.195600Z

Can you run shadow-cljs classpath in a terminal?

bringe 2021-01-06T20:06:00.196Z

Also you can check /tmp/clojure-lsp.out for errors/warnings. In my case I saw Error while looking up classpath info and Cannot run program "shadow-cljs"