Fork me on GitHub
#cider
<
2016-07-27
>
yuris05:07:50

@ag, @malabarba - just wanted to ask about the same problem, and saw your messages. I've just updated CIDER to 20160725.136, and bumped up Emacs, and got exactly the same problem. Emacs 25.1.50.5, latest from master, commit 682fdae. The previous version of Emacs was older by just a few weeks, about 130-140 commits, and it was fine. Maybe it will help you to narrow it down.

yuris06:07:42

@malabarba: just checked out Emacs 25 from 4 weeks back, a randomly chosen commit 0644e6f - CIDER is fine. So there you have it - something got broken between 0644e6f and 682fdae. Hope it helps. Let me know if you need any additional info or help in recreating it. Cheers!

PB15:07:55

Is anyone developing in a docker container using emacs and cider? If so, are you able to jump to fn definitions in a different ns? I keep getting no source locations and https://github.com/clojure-emacs/cider/issues/589 doesnt' seem to address it for me

gtrak15:07:11

@petr: I'm using docker-compose and I get around this by mounting my home directories, source, and .m2 so paths line up.

gtrak15:07:53

It feels like overkill to relativize eg resource paths, if cider goes down that route.

gtrak15:07:27

it might be nice to expose some vars or regexes for this just on the client code

gtrak15:07:44

but you will want to mount your source dirs inside the container to enable things like tools.namespace to watch files

PB15:07:02

@gtrak: That is kinda nasty, but I'll take it if it allows me to jump to the location

PB15:07:19

Somthing like this? volumes: - "~/.m2/.:/.m2"

gtrak15:07:29

yea but no tilde on the right side

gtrak15:07:27

not sure about the expansion rules but this has been working for me:

- ~/dev/mycode:/home/gary/dev/mycode
      - ~/.m2:/home/gary/.m2
      - ~/.boot:/home/gary/.boot

PB15:07:13

That's really interesting

gtrak15:07:33

the absolute paths are what need to line up

PB15:07:44

That's fair

gtrak15:07:50

also have to tell it to use /home/gary/.m2

PB15:07:55

That also means I have to run lein deps on the host machien

gtrak15:07:14

environment:
      BOOT_LOCAL_REPO: /home/gary/.m2/repository
      BOOT_HOME: /home/gary/.boot

gtrak15:07:21

so, you don't have to run lein deps on the host

gtrak15:07:27

additionally, I run it as my user 🙂

gtrak15:07:31

hacks upon hacks

PB15:07:35

I see that

PB15:07:41

I appreciate the help:)

gtrak15:07:44

happens to be 1000:

user: 1000:1000

gtrak15:07:07

otherwise when docker writes files it'll be as root, and that can cause problems later

PB15:07:21

Where did you set that?

PB15:07:29

I.e. the user

gtrak15:07:40

in docker-compose.yml service block per service

PB15:07:33

I meant more that I didn't know you could set the user like that

gtrak15:07:50

1000 comes from your host

gtrak15:07:13

so if I cat /etc/group, there is a line:

gary:x:1000:

PB15:07:47

Damn, that's great! Thank you! I'm going to give this a try

gtrak15:07:03

'id -u' also gives it to you

gtrak15:07:09

good luck!

bja20:07:52

err, is anyone else's cider trying to inject to "0.14.0-SNAPSHOT"?

bja20:07:35

ooh, this seems to be because I haven't pinned a particular version.