Fork me on GitHub
#calva
<
2019-06-25
>
andremidea13:06:23

For some reason, go-to definition stopped working since I upgraded to the new calva (it’s been a while since i last used it), I jacked-in, loaded the namespace as usual, but it does not work. Is there a place where I can find logs other than the Calva says and the developer console? (those where mostly empty)

pez13:06:56

@andremidea, do you have any nrepl dependency stuff in your project file or profile? (It used to be how you connected Calva, but now it would interfere with jack-in.)

andremidea13:06:21

yes! removing the nrepl dependency and upgrading lein did the job 🙂 many thanks!!

metal 4
pez15:06:49

That is really good to know. The README should probably contain a message about checking this for people coming from old Calva.

grounded_sage15:06:48

I’ve got a strange problem with setting up Calva on a new computer. It’s an early 2015 MacBook running macOS Sierra. Structural editing is not working. Parinfer is not working. Tab key is not indenting.

pez15:06:34

@grounded_sage, can you check the development console and see if you have any messages there that can hint us about what is not happening?

grounded_sage19:06:55

That’s the error. If I remove the Calva extension this error disappears.

grounded_sage19:06:33

Calva version 2.0.19

pez19:06:13

Yes, those are from the Calva extension, but it is something everybody gets and should not disable things. I wonder what is going on… What version of VS Code is it?

grounded_sage20:06:13

Version 1.35.1

pez06:06:35

What other extensions are installed?

grounded_sage07:06:54

Only that one. We are on holidays and I don’t have a laptop atm so decided to use partners. I think it was originally called a MacBook C. I have done a VScode install. Calva is the only extension added.

pez07:06:31

So then you have Calva and Clojure Warrior as the only extensions?

grounded_sage07:06:57

I will try deleting VScode and doing a fresh install in a few hours when I have the laptop again. Though I don’t think this is the problem. Does VScode hold any meta settings/config that lingers after deleting the app.

grounded_sage07:06:15

Yes those are only extensions

grounded_sage07:06:04

The computer has never has VScode. Installed prior

pez07:06:13

I don't think so VSCode keeps anything, but I'm not an expert on the subject.

pez07:06:37

Did I ask you if you could run the commands w/o keyboard shortcuts?

pez07:06:29

Maybe you could try install VSCode Insiders to see if a clean install helps...

grounded_sage07:06:40

How do you run commands without keyboard shortcuts?

pez07:06:57

Select them from the command palette.

grounded_sage07:06:11

The biggest thing that jumped out to me at first when I installed was that I couldn’t tab in a clj/cljs file.

grounded_sage07:06:18

Other files work fine.

grounded_sage07:06:10

I will try both of those when at computer. Command pallete and VScode insiders.

pez07:06:27

You are not supposed to be able to tab in a clj file with Calva. What should happen is that the code in the ”current” form gets formatted.

pez08:06:48

(`tab` is assigned as a keyboard shortcut to Format current form)

grounded_sage08:06:12

I’m still very new to VScode. I saw that Calva has Parinfer. Does it still do the bracket inference based on indentation? I know that Parinfer has gone through some changes since I last used also.

grounded_sage08:06:25

I was also having issues doing slurp/barf commands. It wasn’t working then it worked then it stopped working. So I’m just a little confused about what behaviours I should have.

pez08:06:57

Calva has very limited Parinfer. So, no. But it has a command that can infer parens from indentation ctrl+alt+p. However, the structure can't be too broken for that to work.

grounded_sage08:06:48

Ok cool. Well this has been enlightening. I might have just not known how to use my tools :p

pez08:06:02

That sounds like a glitch. I have had problems with the paredit commands getting disabled when going between the repl window and the editors, but I had hoped those were sorted out.

grounded_sage08:06:24

I will report back after I experiment with it again.

pez08:06:29

I should make a short intro video.

grounded_sage08:06:08

I don’t really think I need Parinfer. Paredit and an auto format seems like the best way to handle lisp syntax.

grounded_sage08:06:03

Yea video would probably help. I’ll have another look at the docs because it might have just been me glancing over it all to lightly.

grounded_sage15:06:59

Decided to try an OS update. Perhaps could have waited for your response @pez haha. So will be a little while until I can give some more info

pez15:06:04

Haha, well, Mojave will do that Mac good. 😃

Daniel Hines16:06:25

just fired up the new REPL window for the first time… THIS IS SO COOL!!!

aw_yeah 4
Daniel Hines16:06:08

It feels much closer to my flow with Spacemacs… Except… I actually know how to use VS Code (as opposed to Emacs 😛 )