Fork me on GitHub
#cursive
<
2018-12-04
>
tengstrand12:12:17

Hi! I’m thinking about creating a Polylith plugin (https://github.com/tengstrand/lein-polylith) to IDEA/Cursive. I’m not sure about if it’s possible to integrate with Cursive because it’s not open source or if it will be enough to integrated against IDEA. Does anyone have an idea here…maybe @cfleming?

tanzoniteblack19:12:18

is there a way that I can get defrecord+ from potemkin to resolve the same as defrecord. More explicitly: I want the indentation to be the same

tanzoniteblack19:12:12

oh, nevermind. Putting the indentation at level 1 works just fine. It just hadn't saved when I hit enter

tanzoniteblack19:12:59

or...not? It works in one namespace but not another

tanzoniteblack19:12:02

getting the protocols it implements would be nice as well

tanzoniteblack19:12:18

(same story for defprotocol+ )

kenny19:12:06

Was the set indentation for a form via alt+enter removed?

lellis20:12:21

Hi all! Anyone have success running REBL with cursive?

shaun-mahood20:12:39

@lellis: Are you using deps.edn or leiningen?

shaun-mahood20:12:01

https://github.com/jayzawrotny/lein-rebl-example should get you working - I got it to load from a cursive REPL with it

lellis20:12:56

@shaun-mahood The feature "Follow REPL" work for you?

lellis21:12:45

When u enter code into your repl, appear on rebl too or only when enter in rebl console?

lellis21:12:56

Here this not happen.

lellis21:12:19

I will try your example, tks.

shaun-mahood21:12:03

@lellis Was just testing - it's only working for me in the rebl console when I run it in either Cursive or from lein on my shell. Just investigating to see if I did something wrong since I thought I had it working on another machine over the weekend.

lellis21:12:35

Yeap here too, only fully work when run under clojure cli from terminal

cfleming21:12:41

@teng That’s a lot of documentation 🙂. Can you give me an idea of what you’d like the plugin to do?

tengstrand06:12:50

Polylith has its own directory structure for its building blocks and uses symbolic links to fake a monolithic development environment (and systems). My idea was to support adding/renaming/deleting components and bases directly in IDEA/Cursive and also have a Polylith project view. It would also be nice if git worked for the monolithic views (that use symbolic links). The Leiningen plugin documentation is probably a better place to start at! https://github.com/tengstrand/lein-polylith

cfleming06:12:48

Interesting, so there probably wouldn’t be any Clojure-specific functionality, correct?

tengstrand06:02:27

That’s correct.

cfleming22:12:54

@tanzoniteblack Note that if you adjust the indentation of a form it will reformat that one, but won’t automatically reformat all the others in your project. Are you seeing that after customising the indentation, even after reformatting in another namespace the indentation is incorrect?

cfleming22:12:14

@kenny No, that should still be there.

cfleming22:12:44

@lellis @shaun-mahood I haven’t tried REBL under Cursive yet, but I plan to soon.

👍 4
kenny22:12:46

I'm only getting Resolve as... with alt+enter.

cfleming22:12:03

@kenny Are you getting any errors in your log?

kenny22:12:28

Well.. maybe. But none that occur right after doing alt+enter.

cfleming22:12:51

@kenny Are you seeing that for everything, or only certain symbols?

kenny22:12:56

Everything

cfleming22:12:51

Can you check whether the intention is disabled? Settings-&gt;Editor-&gt;Intentions-&gt;Clojure-&gt;Indentation

kenny22:12:37

It was. How could it have gotten disabled?

cfleming22:12:08

So there’s something about the way that Cursive presents those intentions which makes it look like you have to press right rather than enter on them. If you do that, you can easily accidentally disable them.

kenny22:12:33

Using the right arrow on the keyboard disables the intention?

cfleming22:12:26

Well, it opens a submenu which contains the option to disable it, among other options.

cfleming22:12:42

It’s happened to a few people and that’s the only explanation I can come up with.

kenny22:12:22

Oh I see. Gotcha.