Fork me on GitHub
#calva
<
2020-11-17
>
gekkou04:11:03

i cant for the life of my get code completion working for clojurescript. ive tried with and without shadow-cljs and still cant seem to get it working. ive been able to connect to a repl at least, but was really hoping i could get code completion working

bringe16:11:11

You've made sure to connect to the cljs repl (not the clj repl)? If a browser app, need to open the app in the browser to connect. Just checking some things off the list here.

bringe16:11:17

@U0ETXRFEW Does much more cljs dev than I do, so he may be able to assist you further.

bringe16:11:44

Oh, also make sure you're loading the file with the load file command.

gekkou04:11:17

anyone have any ideas here or any github repos with examples that worked for them?

alekszelark20:11:03

Guys, I managed to reproduce an annoying bug. The brackets highlighting sometimes doesn’t work. Usually it happens when I just typing code but I don’t know how to reproduce it predictably. In the video it’s reproduced by pasting some code. First, I paste the code, you can see that brackets are not highlighted, then I switch up the window and go back. After this trick everything is ok again. However, I can easily break it again by evaluating the ns form.

pez20:11:27

It's a bit hard to follow what's going on. What did it mean to switch up the window?

alekszelark07:11:19

it simply means changing an active tab

alekszelark07:11:45

once I go back, the highlighting is working again

alekszelark07:11:30

to break it in this particular case I need to re-evaluate the ns form. In other cases it might be something different which results in the problem.

alekszelark07:11:45

but as I said they are hard to reproduce

alekszelark13:11:12

@U0ETXRFEW so what do you think of it?

pez14:11:03

Not sure. I am not quite following still. 😃 I know there is a bug with how sometimes only the currentöy active tab is getting the extra highlighting treatment. But there seems to be something more going on there when you evaluate the ns form.

alekszelark11:11:28

It isn’t necessary related to an ns form evaluation. More often it happens when I just typing code and re-evaluate some other forms and the type something again.

pez13:11:33

Does it matter if the repl window is visible or not when you evaluate code?

alekszelark15:11:20

Yes, it’s visible.

alekszelark15:11:06

I can easily reproduce it even with a simpler example

pez21:11:40

Cool. I wonder why I have not seen this... Have you filed an issue? I think that with that repro we should be able to track it down.

pez12:11:29

Awesome. Thanks!