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 2020-10-06T12:29:03.129100Z

Twice today the clj-kondo java process has run amok on my machine. Something in the files I am working with today probably triggers it. Anyone else seen that happen?

borkdude 2020-10-06T12:29:45.129400Z

@pez See this thread: https://clojurians.slack.com/archives/CBE668G4R/p1600900901018900

borkdude 2020-10-06T12:30:37.130300Z

Might be an issue with the clj-kondo extension or interaction with Calva. Not sure yet. Please install this debug plugin: and keep an issue on the clj-kondo output tab

borkdude 2020-10-06T12:30:42.130700Z

and report issues to me

pez 2020-10-06T12:38:09.131500Z

Thanks. Using the debugging build now. Let’s hope the java process runs amok again 😃

pez 2020-10-06T12:41:19.131600Z

I’m running this build now. Seems I am working with things today that triggers the clj-kondo+calva combo to freak out.

borkdude 2020-10-06T12:42:12.131800Z

thanks!

pez 2020-10-06T12:55:26.132Z

Could it be that the output window gets some funny data printed to it?

borkdude 2020-10-06T12:56:01.132200Z

did you install .91?

borkdude 2020-10-06T12:56:39.132400Z

.90 had funny output, that should be fixed with .91

pez 2020-10-06T12:58:10.132600Z

Yes. .91. I was speculating about wether the contents of the Calva output could be what triggers the condition. But maybe not, since we have disabled all linters for it…

borkdude 2020-10-06T13:00:35.132800Z

you disabled the rules, but clj-kondo is still linting it

borkdude 2020-10-06T13:02:08.133Z

can you post (maybe in a gist) the problem that clj-kondo prints to its output panel?

borkdude 2020-10-06T13:02:18.133200Z

it should say somethig like [Error ..] blabla in case of an exception

borkdude 2020-10-06T13:08:41.133600Z

This may be the cause of this CPU spike, if calva keeps printing to the REPL and triggers clj-kondo. But please post output so we know for sure.

borkdude 2020-10-06T13:09:19.133800Z

We can hard code the Calva output file name in the clj-kondo plugin so it's just always ignored

borkdude 2020-10-06T13:09:27.134Z

but first proper diagnosis

borkdude 2020-10-06T13:13:25.134200Z

You can maybe replicate this scenario by printing output to the REPL every second or so

borkdude 2020-10-06T13:13:29.134400Z

and then see what happens

pez 2020-10-06T13:13:39.134600Z

So far no errors and my computer is cool.

borkdude 2020-10-06T13:14:22.134800Z

Do you see any output in the clj-kondo output panel. Like, is it trying to lint the REPL output?

pez 2020-10-06T13:16:25.135Z

Yeah, it prints when the files are changed.

changed file, linting: file:///Users/peter/Projects/app/.calva/output-window/output.calva-repl
found config dir at /Users/peter/Projects/app/.calva/output-window/.clj-kondo
publishing diagnostics

pez 2020-10-06T13:17:12.135200Z

For project files it says the same thing except no file name after the message

found config dir at 

borkdude 2020-10-06T13:18:05.135400Z

that's probably a nil:

(debug "found config dir at" dir)

pez 2020-10-06T13:18:08.135600Z

I’ll notice immediately when I trigger the error, because I have my computer on my lap.

1
borkdude 2020-10-06T13:18:35.135800Z

nice physical feedback and also a nice way to stay warm in these colder days

pez 2020-10-06T13:19:11.136Z

yeah!

borkdude 2020-10-06T13:19:51.136200Z

so I think we can safely ignore output.calva-repl in the plugin right. this is just waste of clj-kondo cycles :)

borkdude 2020-10-06T13:20:47.136400Z

> For project files it says the same thing except no file name after the message I think you might have no .clj-kondo dir for that project, right?

pez 2020-10-06T13:22:29.136600Z

That’s correct.

pez 2020-10-06T13:22:59.136800Z

Would it make sense to have a way to ignore dirs and/or files via the config?

borkdude 2020-10-06T13:23:57.137Z

so far that's not been needed, by default clj-kondo only lints .clj(s)(c) files

borkdude 2020-10-06T13:25:00.137200Z

I'll just hardcode it for now, until clj-kondo gets support for it. This saves me doing another clj-kondo release for this one plugin only

borkdude 2020-10-06T13:26:22.137400Z

Please install .92

1👍
pez 2020-10-06T13:30:02.138Z

How come it lints a .calva-repl file then?

pez 2020-10-06T13:30:58.138200Z

I’ll wait installing .92 I think. I want the cpu to burn my lap up so that we can try figure out what causes the error. 😃

borkdude 2020-10-06T13:31:38.138400Z

You have config {:linters ^:replace {}}: this will still lint the file but not report any errors

borkdude 2020-10-06T13:31:59.138600Z

I think Calva sets the output window to Clojure mode and this will make it lint with clj-kondo probably

pez 2020-10-06T13:32:02.138800Z

My question was re: > by default clj-kondo only lints .clj(s)(c) files

Jack Arrington 2020-10-06T15:55:08.140200Z

Clj-kondo process has also been acting up for me. Works fine for a while, then starts eating a ton of CPU. I will try to install the debug plugin when I have time.

borkdude 2020-10-06T15:56:36.140700Z

Might be a recent interaction with Calva. Source is still unknown, but please monitor the clj-kondo output panel. This is the latest.

1👍
littleli 2020-10-06T15:59:41.142900Z

I use calva, I jack-in normally, evaluation works great etc. But when I do something wrong and send a snippet that contains something wrong I get quite excessive ouput like this https://gist.github.com/littleli/369b66c1ea822da7f5e5b663484048de Is this expected? It's confusing 😞

pez 2020-10-06T16:10:35.144400Z

@ales.najmann This is expected, and I completely agree. I think @brandon.ringe created an issue where we collected some ideas around how to do this better. Right now I can only find this one though: https://github.com/BetterThanTomorrow/calva/issues/756

bringe 2020-10-06T16:16:30.145100Z

@ales.najmann @pez I found this one. Let's use this one and I'll close the other.

bringe 2020-10-06T16:25:47.146400Z

This may be what I focus on next. Hopefully can in the next week or two.

littleli 2020-10-06T16:26:12.146900Z

You're great guys 👏

1❤️
bringe 2020-10-06T16:27:34.147800Z

Thanks for mentioning the issue. Helps to see more demand for some issue/improvement so we know what to focus on.

1👍
Célio 2020-10-06T21:04:30.151800Z

Hello folks. Does anyone have problems with the default key bindings under MacOS? In my case I use calva.loadFile a lot. It’s by default bound to ctrl+alt+c enter but nothing happens when I hit ctrl+alt+c. Any tips on how to get this key binding to work?

pez 2020-10-06T21:40:28.155600Z

Hi @ccidral ! Not sure I follow. What's supposed to happen when you press the first sequence is that vscode shows a message in the status bar saying that it is waiting for the next key press. That's not happening? If so, see if something else binds ctrl+alt+c.

Célio 2020-10-06T21:41:48.156600Z

Hi @pez that’s correct, I was expecting to see that message in the status bar, but when press ctrl+alt+c nothing happens (ie: no “waiting” message shows up in the status bar).

Célio 2020-10-06T21:44:08.157500Z

I’m running a brand new MacOS Catalina installation. I checked the OS’s keyboard shortcuts but couldn’t find any conflicting shortcut.

pez 2020-10-06T22:05:31.158900Z

If you search for the shortcut in vscode, does that turn up anything but Calva commands?

Célio 2020-10-06T22:15:26.159500Z

No, I searched for ctrl+alt+c under Keyboard Shortcuts but it’s all Calva commands.