Fork me on GitHub
#calva
<
2021-08-31
>
cyppan08:08:14

Is there a way to have Calva (or via another extension) auto-import Clojure namespaces / Java packages while we type ? For instance when I type (str/starts-with or (BasicAWSCredentials.

pez08:08:57

Calva does not have anything like this today. Might be something to ask about in #lsp.

cyppan09:08:34

ok thank you

Christian Pekeler09:08:37

Start your project with a REPL and connect , then how do I stop the project again, i.e. not just disconnect the REPL?

pez11:08:39

@christian239, Actually, and this is bad design, the project will be stopped if you disconnect.

pez11:08:40

However, don’t rely on that. The real way to kill the project is to press ctrl+c in the jack-in terminal where the project is started.

Christian Pekeler11:08:57

Thanks. Disconnecting isn’t stopping my leiningen/shadow-cljs project, but ctrl-c works. I thought I wasn’t seeing a “Stop your project” command to mirror the “Start your project” command.

pez13:08:28

Yes, there should be such a command of course. Please file a request about it on GH. I’ll smack on the good-first-issue label on it. 😃

pez13:08:09

Happy to hear that disconnect doesn’t kill the server. Not sure why I though it would. 😂

Jakub Holý (HolyJak)19:08:32

Hi! Is navigating to the namespaces of dependencies and the autocompletion of these supposed to work? My project is https://github.com/holyjak/minimalist-fulcro-template-backendless and I am connected to the (shadow-cljs) REPL but e.g. clicking on the com.fulcrologic.fulcro.dom require in ui.cljs to navigate there does not work, typing (dom/ proposes a single completion out of the 10s there. 🙏

pez19:08:24

I get Classpath lookup failed in clojure-lsp. Some features may not work correctly. from clojure-lsp when opening the project. I have no idea why, but anyway.

pez19:08:21

Before connecting the REPL I can navigate to com.fulcrologic.fulcro.dom and I get lots of completions. Let’s see what happens after connecting the REPL…

pez20:08:54

It works when I have jacked-in as well. Maybe this is a dependency issue for you. I have submitted a PR to the repo with Calva friendly configuration and some Gitpod convenience. See if that works as you expect, please: https://github.com/holyjak/minimalist-fulcro-template-backendless/pull/1

pez20:08:19

You (or anyone) can try the instructions in the PR against this URL before merge if you like: https://gitpod.io/#https://github.com/PEZ/minimalist-fulcro-template-backendless

pez20:08:00

I submitted similar Calva config as a PR to your fulcro_exercises project as well the other day, btw. (No Gitpod config there yet, but I can add if you like 😄 )

Jakub Holý (HolyJak)21:08:22

thank you! will have a look tomorrow But for you this worked without these changes? i.e. is st. wrong with my Calva?

Jakub Holý (HolyJak)21:08:26

Sorry about the exercises PR, no idea why I did not get / overlooked the email about t

pez22:08:39

I overlook those e-mails all the time. I read them on my phone so then they are read, and I forget about them when I'm at the computer and can actually do something about them.

pez22:08:53

Does the lookup for you work before you connect the REPL? Because the only thing I can think happens is that when the REPL is connected, it is preferred by Calva over the static answer that clojure-lsp provides. And if you don't have the right dependencies then the REPL lookup might be bad. So my next question is: How do you start the REPL?

bringe01:09:51

> I overlook those e-mails all the time. FWIW, I believe I have emails like this marked as read automatically, and I rely on GitHub notifications, which has a pretty nice interface for marking things as done, etc.

bringe01:09:51

Most of my notifications lately are from Calva, but it seems they can be grouped by repo.

Hukka06:09:05

I have installed a small browser extension that shows how many unread github notifications I have

pez19:08:41

It’s supposed to work. I’ll have a look at the project.

🙏 1
az20:08:41

Hi all, I have a luminus + reframe project. I’ve tried with lein and now deps.edn to add in reveal in the clj project. For some reason if I run the jack-in sequence for server + client, the reveal profile or alias doesn’t seem to get picked up. If I jack-in to the server only, reveal will launch. Any thoughts?

pez20:08:17

That’s interesting, I can’t say I understand why. But it’s hopeful that it works with in the server only scenario. If you can publish a public repository with your config I can have a look. Tomorrow, it’s getting late here.

pez20:08:59

Also, I’m not sure if you are aware that the shadow-cljs admin UI has a very nice inspector as well, which might work while we figure out how get reveal to work. shadow-cljs prints the URL to this UI in the jack-in terminal, I think it starts on port 9631 (but I’m tired so might have the port wrong).

az21:08:44

Thank you @U0ETXRFEW I will keep working on it and If I’m still stuck I will try to move this to a public repo