Fork me on GitHub
#polylith
<
2024-02-17
>
jdhollis20:02:43

Running into a weird issue with a component test namespace and Cursive—“Load file in REPL” has no effect. RESOLVED

jdhollis20:02:58

I can switch the file’s namespace in the REPL. And I can evaluate forms in the REPL. But I have to eval everything in the namespace manually.

jdhollis20:02:05

Not sure whether this is a Cursive thing or a Polylith thing, but I pulled up a non-Polylith project to verify and did not have the same problem there.

jdhollis20:02:10

I'm running Cursive 1.13.2-eap3-2023.3 in IDEA 2023.3.4 and poly 0.2.18.

jdhollis20:02:47

Going to try spinning up an empty poly project and see whether that provides any insight.

jdhollis20:02:13

Initially I didn't have "Resolve over whole project" checked, and I got this error when trying to load the test file—

jdhollis20:02:29

Checking that setting suppressed the error, but the file still doesn't load.

jdhollis20:02:45

Ah. Found the issue.

jdhollis20:02:04

I did not add components/entities/test to :test's :extra-paths.

👍 2
furkan3ayraktar20:02:06

Glad you found it! I was trying to find the link to the documentation page that explains it. https://cljdoc.org/d/polylith/clj-poly/0.2.19/doc/testing?q=Test#from-the-repl it is if anyone else stumbles upon this thread.

1
jdhollis20:02:20

Yeah. I was re-reading the long GitHub issue around Polylith support for Cursive and that tipped me off.

🙌 1
jdhollis20:02:29

Polylith seems to fit really well with Rama development, by the way.

😯 2
👌 1
👀 1
💯 1
boolpath20:02:34

How so? Can you macroexpand on that?

jdhollis21:02:32

As a disclaimer, I haven't deployed to an actual cluster yet.

jdhollis21:02:07

But the projects feature in Polylith fits well with Rama.

jdhollis21:02:31

You need to be able to deploy individual modules to the Rama cluster.

jdhollis21:02:00

But I can still wrap each module up in a component with a shared interface to the rest of the system.

jdhollis21:02:50

It's letting me keep related functionality grouped while being able to deploy pieces independently.

❤️ 1
jdhollis21:02:37

Probably would fit a Datomic project well similarly.

boolpath22:02:54

> You need to be able to deploy individual modules to the Rama cluster. that would be great if indeed possible > while being able to deploy pieces independently. 💯 I’d love to see that. Please share when you do 🙂