Fork me on GitHub
#cursive
<
2017-08-25
>
danielcompton02:08:14

We have several lein projects in one repo. We want to depend on the src of one from several others (a specs project). However when I add ../specs/src to the source-paths of the other projects, Cursive picks up the source path and reorganises the modules so that the specs project is under that module

danielcompton02:08:13

If I try and edit the modules I get an error > Module "specs" must not contain source root "[...]/specs/src". The root already belongs to module "service"

danielcompton02:08:20

Is there abetter way to set this up?

cfleming06:08:25

@danielcompton If you just add the spec project as a dependency of the others, Cursive will add a module dependency and you’ll be able to access the code.

cfleming06:08:05

You could do that in a cursive profile, perhaps, and then only use that to sync your project in Cursive.

sandbags14:08:23

Is there a way to get a list of what's in the cursive REPL buffer?

sandbags14:08:28

without scrolling back through it?

joelsanchez15:08:53

(ns something.core
  (:require [something.other :as other]))

::other/a-keyword
As a user I want to be able to use "go to definition" (Ctrl+B) when I put the cursor over ::other/a-keyword Current behavior: nothing happens Expected behavior: Cursive opens the something.other namespace

cfleming21:08:20

@joelsanchez So something I’ll be adding shortly is the ability for certain keywords to be treated as if they were definitions, e.g. spec keywords

cfleming21:08:39

But you’d like to navigate to the namespace of arbitrary keywords?

joelsanchez22:08:30

@cfleming yes, provided that the keyword has a namespace and it exists

joelsanchez22:08:45

just opening the namespace, not searching for definitions or anything

joelsanchez22:08:24

many times I'm using a keyword from a namespace and I want to visit that namespace to read/change some code

joelsanchez22:08:15

I instinctively press "Ctrl+B" but immediately I see that there's no one to help me and I'm on my own searching for the namespace in an ocean of code