Discussion about all editors used for Clojure/ClojureScript
richiardiandrea 2018-10-18T02:01:58.000100Z

There is a concept of project type used for launching the nRepl server and then cljs repl type for automatically execute the cljs upgrade cimmand in the Clojure repl. Both prompt in case of inconsistent detection and they they don't prompt in case of defaults

pez 2018-10-18T06:47:17.000100Z

@rymndhng What I meant was that the detection mechanism gets brittle as the number of possibilities explode. The actual injection of dependencies stabilizes things, as you point out. Another reason to mimic Cider here (apart from that Calva's name demands it :face_with_cowboy_hat:) is to be able to shrink the Getting Started text to a minimum. There is something wrong when I have to spend so much of it on talking about dependencies (failing in most cases to help people anyway).


i completely agree 😄 i went through this pain with cider before it started injecting deps

vemv 2018-10-18T07:34:19.000200Z

I miss this kind of feature in Emacs https://github.com/magit/magit/issues/2942 - clojure-specific syntax highlighting in diffs, so I can code-review stuff more accurately.

vemv 2018-10-18T07:35:19.000100Z

I know IntelliJ does this pretty well, how about vim? Apparently it also features this. I guess one could use vim as an improved git show / git diff?

vemv 2018-10-18T07:35:55.000100Z

If anyone has this setup already (or can, easily) I'd appreciate some guidance 🙂

dominicm 2018-10-18T08:06:21.000100Z

Vim doesn't do any better when looking at a diff.

dominicm 2018-10-18T08:06:40.000100Z

Gitgutter is useful some of the time, but isn't generalized to diffs.

vemv 2018-10-18T09:28:34.000100Z

Useful, thanks. Recently I tried to hack <https://github.com/syohex/emacs-git-gutter/> to generalize it to diffs, but wasn't trivial

pez 2018-10-18T10:21:53.000100Z

VS Code handles this nicely, using the regular edit buffers for diffing and overlaying the syntax colored text with transparent diffing colors.

pez 2018-10-18T10:24:11.000100Z

Which means Calva can still help you evaluate Clojure code and such even when diffing. I have had use for that a few times.

martinklepsch 2018-10-18T13:51:53.000100Z

re command not found: I also had this yesterday and ended up reinstalling Calva since it seemed like it wasn't properly installed or activated. Regardless of whether that was the correct assessment it worked after reinstalling 😄 /cc @kmiasko

dominicm 2018-10-18T14:22:07.000100Z

https://code.visualstudio.com/assets/docs/editor/versioncontrol/merge-conflict.png this is lovely

pez 2018-10-18T14:26:25.000100Z

@martinklepsch: There is a an irritating error where Calva refuses to activate when the first file opened is not a clojure file. Not sure if that was what happened in your case, but anyway, I must spend some time to try pin it down. VS Code loves to open up all sorts of files at startup, unprompted by the user.

martinklepsch 2018-10-18T14:27:27.000100Z

it could be but I'm not sure... could Calva delay activation until a clojure file is opened?

martinklepsch 2018-10-18T14:27:32.000100Z

would that make sense?

pez 2018-10-18T14:37:33.000100Z

That is what it tries to do today. Maybe I should look for a way to always activate it instead. I hesitate because I suspect the issue is just a symptom for something I should fix and not hide. 😃

pez 2018-10-18T14:45:22.000100Z

I probably shouldn't admit this, but Calva still has a command that activates it. Problem is that Calva can't register the command without being activated. 😲 Late night hacking is not always the best idea.


i completely agree 😄 i went through this pain with cider before it started injecting deps