Fork me on GitHub
#calva
<
2022-05-17
>
pinkfrog06:05:12

Can I disable this warning on main-otps for all projects? It’s a little bit annoying though.

pez07:05:00

Nope. It's per project.

littleli08:05:10

Is there a way to pass custom java parameters during jack-in? If not I'd like to request this as a feature.

pez09:05:41

You can use jackInEnv for this. Unless I am misunderstanding the question.

littleli09:05:06

I'll try and reach back. Thanks for the answer :)

pez10:05:51

You can also add them project.clj/deps.edn, and select the appropriate profile/alias at jack-in.

Yehonathan Sharvit12:05:18

Is there a way to evaluate a whole file (beside selecting the whole file and then evaluating the selection)?

pez12:05:33

There is a command Calva: Load Current File and Dependencies.

pez14:05:44

There has been some discussion in #growth and #community-development about populating http://ask.clojure.org with common questions, and their answers, from this slack. I decided to try with this one, as it is quite frequent, and also about a very important thing. It looks like so: https://ask.clojure.org/index.php/11892/calva-is-there-a-way-to-evaluate-a-whole-file If more Calva friends want to help with making it easier to google for Calva answers, please feel encouraged to contribute in this way. 🙏 ❤️ calva

💯 3
alpox17:05:07

I actually remembered that there was a command to evaluate the whole file but could lately not find it anymore within the editor. I was filtering for all kinds of commands with "file" and "eval" in it but it wouldnt list what I expected. Only looking it up online made me find it. Maybe adding the word "eval" in the name would help finding it?

🙏 1
bringe03:05:31

That’s probably a good idea. An issue would be welcome!

pez14:05:44

There has been some discussion in #growth and #community-development about populating http://ask.clojure.org with common questions, and their answers, from this slack. I decided to try with this one, as it is quite frequent, and also about a very important thing. It looks like so: https://ask.clojure.org/index.php/11892/calva-is-there-a-way-to-evaluate-a-whole-file If more Calva friends want to help with making it easier to google for Calva answers, please feel encouraged to contribute in this way. 🙏 ❤️ calva

💯 3
cmdrdats21:05:19

Good morning - I'm struggling quite a lot with the default indent position when creating new lines - in the below screenshot, opening the line sets the cursor in line with the blue { instead of the yellow ( and when the file saves, it jumps right back to the start of the line. If I manually hit 'tab', it goes to the right place, but it's driving me up the wall 🙈

cmdrdats21:05:15

this is with 'format as you type' OFF

cmdrdats21:05:53

with format-as-type on, life is even worse - I think it's because I'm working in ssh, so the small delay throws things off while I type

cmdrdats21:05:24

hmm, 'new indent engine' + 'format as you type' together actually seems to work better...

pez08:05:57

Yes, the old indent way is a bit slow. The new one is the default, iirc. Still, we might not be awaiting some promise correctly. Please file an issue about this.

cmdrdats09:05:22

cool thanks - I'll do so

cmdrdats21:05:00

related to cursor jumping around, but probably an entirely different issue (?) on backspace removing an empty collection, it does weird things with the cursor which causes all manner of havoc when you're working at speed. this happens even without working in ssh mode, but it's more pronounced by ssh working because of the larger lag.

cmdrdats21:05:31

first image is single backspace, second image is double backspace

cmdrdats21:05:20

ah, this seems to be related to the 'paredit: default key map' - it happens on 'strict', but not 'original'

pez08:05:42

The first one works as expected/designed, as far as I can see. The second one I can't reproduce, but I am not running it remotely, so might not have the necessary lag.

cmdrdats08:05:32

The issue with the first one is that i only backspaced once, often if i backspace twice, I’ll end up deleting the ‘r’ in the tr if i get the timing wrong

cmdrdats08:05:15

The second one is quite intermittent, sometimes i end up deleting the ‘r’ instead - I’ll try dig into logging and create an issue with maybe a small repo to have all the settings the same

pez08:05:01

The first one: Calva formats the enclosing form (sometimes form_s_, depending) after Paredit edit commands. So that is why the behaviour is expected. You can maybe get it to work a bit more like what you want by playing around with your formatter config.

pez08:05:15

For the second one, I suspect it is the same cause as with the other post you made. I think we should be able to fix it.

cmdrdats09:05:52

ah cool - thanks 🙂 I'll just create the one issue then