Fork me on GitHub
#leiningen
<
2016-10-24
>
sophiago16:10:03

hi. i've been trying to get checkouts to work for the first time all weekend with quite a degree of frustration and wondering if anyone is around who could help. i suspect it could be a problem with my symlink: i know i'm creating it correctly, although it's appearing incorrectly in osx finder (not always reliable). however, it's my understanding lein should fall back on maven's cached version as it's up to date. it does appear to be doing so, in face i'm receiving two messages for checkouts failing as well as a built-in function i have overridden, except it's throwing an error in the linked library i do not get when running that library on its own. ...so you can imagine with all these variables how my head is spinning quite a bit by now

mping16:10:41

@sophiago what do you mean by checkouts?

sophiago17:10:42

@mping sorry for disappearing. a lot of this was usual piss poor error messages i needed a very experienced clojurian to talk me through. so at this point seems the only issue is the checkout failing, not anything else i referred to. and, rather unfortunate for me, but i suspect that's due to the symlink being screwed up...which i can only explain from creating a .bash_profile against best practices 😞

trptcolin17:10:36

@sophiago: it might help to post the two projects (the main project and the checkout one) along with the directory structure under the root project (specifically the checkouts directory). and also the command you're using to create the symlink. that way we can try and rule out any symlink issues and/or issues with the specific libraries

sophiago17:10:03

@trptcolin i'm 99% certain i know the bash is correct: ln -s target location

sophiago17:10:34

the problem i see in osx finder is it shows up as a file that when examined is an alias to itself

sophiago17:10:46

...read that right 😕

trptcolin17:10:41

@sophiago i swear i get the ln -s syntax mixed up at least half the time because my puny brain can't distinguish the meaning of "target" & "location"

sophiago17:10:42

however in terminal it does appear to include 8 items, which would be accurate for the checkout project

trptcolin17:10:20

does ls -l checkouts show you what you expect? a symlink to the root directory of the project that you want as a checkout dependency?

sophiago17:10:36

yes, that's the thing. it does. only in finder does it appear screwed up. so i obviously trust terminal not finder

sophiago17:10:58

however i get two error messages when calling lein run that checkouts are failing

sophiago17:10:15

it's falling back on the cached version

sophiago17:10:30

the error is that it does not contain a project.clj

sophiago17:10:41

the dependency obviously do

sophiago17:10:37

you know what. idk why i pushed back on just posting both for you to examine if you offered

trptcolin17:10:23

that's what i was just thinking - might help to verify if it's an issue totally confined to your machine, in which case that narrows the scope of possible issues down

sophiago17:10:50

where would be good for me to zip them up and post them?

trptcolin17:10:52

[not the "stupid you" part!!!!]

sophiago17:10:20

well, kind of stupid to deny oneself that level of free help

sophiago17:10:35

"no i will not accept a free sla from a stranger!"

trptcolin17:10:39

hmm, dropbox, github, anywhere you can make public is fine

sophiago17:10:28

yeah i have both, lemme see which would be easier for just a one off

sophiago17:10:23

@trptcolin lol so i realized i back everything up on dropbox daily and just had to back it up now and create a public link to share 😛

sophiago17:10:11

first is the project i'm working on, second is the checkout i linked to

trptcolin17:10:25

got it; downloading

sophiago17:10:33

also re: the symlink issue, i was just assuming it must have been due to editing my .bash_profile all along while not remembering what was in there...i just checked and it's two lines: one with some corny ascii art for my term prompt and another to correct the color profile on ansi terms

trptcolin17:10:11

ok, so yeah, i see these Could not find artifact symbolic-algebra:symbolic-algebra:jar:0.1.0 errors after adding the symlink. is that the one you saw? just to confirm before proceeding

sophiago17:10:05

no, i think at one point

sophiago17:10:12

are you seeing that in the lein log?

trptcolin17:10:34

when running both lein run and lein repl

sophiago17:10:44

ok no that's not what i get at all

sophiago17:10:13

oh...because i have a cached version to fall back on maybe?

sophiago17:10:36

the only error i'm getting currently is about having two -mains

trptcolin17:10:48

ah, makes sense, you've got something in ~/.m2/repository?

trptcolin17:10:14

you know what... i have an idea

sophiago17:10:22

i didn't check, but assume so since i ran lein install on the dep and it's up to date

sophiago17:10:47

my issue is really this:

sophiago17:10:58

(WARN ignoring checkouts directory /Users/sophiagold/Desktop/Clojure/power-series/checkouts/.DS_Store as it does not contain a project.clj file.) (WARN ignoring checkouts directory /Users/sophiagold/Desktop/Clojure/power-series/checkouts/symbolic-algebra_sparse as it does not contain a project.clj file.)

trptcolin17:10:18

what's your lein version?

sophiago17:10:19

(i get everything twice, which i'm told is normal and nothing to worry about)

sophiago17:10:31

ah...it's not up to date because i used brew

sophiago17:10:44

so now i can't update it i guess?

sophiago17:10:48

i have to do a clean install?

trptcolin17:10:54

for that first error, you can just delete the .DS_Store directory

sophiago17:10:44

in the project file or checkouts or both?

sophiago17:10:51

both i assume?

trptcolin17:10:14

/Users/sophiagold/Desktop/Clojure/power-series/checkouts/.DS_Store is the one that's complaining, so i was just saying that one

sophiago17:10:25

hmm... it has a way of returning

sophiago17:10:36

i assume i can do this on cli?

sophiago17:10:45

to make it permanent?

trptcolin17:10:23

maybe, but i'm a bit confused about that second error: what do you get when you do:

ls -l /Users/sophiagold/Desktop/Clojure/power-series/checkouts/symbolic-algebra_sparse 

trptcolin17:10:55

also when adding a trailing slash to that

trptcolin17:10:02

ls -l /Users/sophiagold/Desktop/Clojure/power-series/checkouts/symbolic-algebra_sparse/

sophiago17:10:34

same for both... shows the last attempt at creating that symlink, appears to have worked

sophiago17:10:53

although should i

sophiago17:10:02

let me just post the output

trptcolin17:10:12

for the second command, i see here a project.clj file among the rest of the directory listings

sophiago17:10:16

i'm not sure if it should have an absolute path in the second part

sophiago17:10:28

lrwxr-xr-x 1 sophiagold staff 23 Oct 24 11:32 /Users/sophiagold/Desktop/Clojure/power-series/checkouts/symbolic-algebra_sparse/ -> symbolic-algebra_sparse

sophiago17:10:54

past the arrow, should the that be an absolute path to the project i'm symlinking?

sophiago17:10:08

(sorry typing degrades)

trptcolin17:10:27

yeah that's surprising

trptcolin17:10:26

relative paths in symlinks aren't something i've got a full mental model of, but i think that means it points to itself. i'd try deleting the symlink & re-creating w/ the absolute path as the target.

sophiago17:10:24

ah ok, interesting

sophiago17:10:37

finder says it points to itself

sophiago17:10:49

so we're returning to thinking it's a broken symlink

sophiago17:10:51

i got help with this on #macosx and was told i did it correctly and not to trust the finder, but they also called the linux folks in #bash "idiots" and then proceeded on some creepy rant about "SJWs" that would have fit in on silicon valley

sophiago17:10:29

well...that's half of irc

trptcolin17:10:33

once i do the lein install on the dependency, i get to that same duplicated -main issue, which is because of the :refer :all in power-series.core

sophiago17:10:50

good to know i can just delete that

sophiago17:10:07

but i'll try ln-s with an absolute path for the target

trptcolin17:10:08

remove that (and update one non-ns-qualified reference to sub) and you should be golden

sophiago17:10:35

you're saying just the target or both?

trptcolin17:10:55

i was saying remove the :refer :all, sorry

trptcolin17:10:21

the symlink i'm not 100% sure about

sophiago17:10:40

seems i should maybe try absolute paths for both?

sophiago17:10:02

i think i remember already doing that? not 100% sure tho

trptcolin17:10:05

oh, both arguments to ln, i see. yeah can't hurt (assuming you're only using this symlink locally)

sophiago18:10:09

ah!! a real symlink

sophiago18:10:27

idk for some reason i thought i tried that before

sophiago18:10:03

@trptcolin and the message you said could be eliminated by deleting that .DS_Store? i still have one of those. doesn't seem to be a real concern, but could you elucidate at all?

trptcolin18:10:42

sure. i've never had any bad effects from deleting .DS_Store 🙂 http://apple.stackexchange.com/questions/69467/consequences-of-deleting-ds-store

sophiago18:10:20

no, i'm just saying mine immediately return

sophiago18:10:38

it's like the nietzsche of osx

sophiago18:10:46

hmm... sorry, could be just that i did it from finder

sophiago18:10:04

most people have it set so they can't even see that from finder

sophiago18:10:10

let's try now

trptcolin18:10:43

sorry, yeah i guess there's some action you can do in finder, maybe even just viewing certain directories, that'll make it return ¯\(ツ)

trptcolin18:10:08

either way, it's just a warning and it should be ignoring that directory anyway so you should be 👍 on that

trptcolin18:10:18

[aside from the annoyance of the warning message]

sophiago18:10:46

right..it's not an error. nbd anyway

sophiago18:10:37

well, looks like i'm good (not really, i have a very confusing error...just doesn't seem lein related). thanks so much for your help!

sophiago18:10:56

while i'm here. are you on the lein dev team?

trptcolin18:10:52

i've made some contributions in the past, but not much recently

trptcolin18:10:52

hah, looks like i'm still #3 on the commit chart, but i bet it's mostly small changes (repl version bumps)

sophiago18:10:05

ah ok. i asked because i'm kind of "lone wolf" status rn and lein is not exactly my ideal project, but it's so amazingly well organized and they have all those issues that are tagged as not requiring much knowledge of the codebase. so i've obviously considered just jumping in and starting patching stuff since it seems like the #1 easiest way for me to do semi-large scale open source work at this point

sophiago18:10:58

and even if it's not my interest, contributing to a build tool must be a great learning experience, right?

trptcolin18:10:21

yep! it was the first big one i helped out on, and i learned a ton.

sophiago18:10:05

like if my long term interests involve PLT and compiler design and such? and i'm i no way above grunt work? i would think this is not a bad choice. i just waffle to some degree because i'm deeply ambivalent about the jvm seeing as i really don't like java one bit and that limits what i'll eventually do in this area

sophiago18:10:28

i'm sure it's all transferrable

trptcolin18:10:04

sure. yeah, definitely lots of organizational / git / compatibility stuff that'll cross over into any other project

trptcolin18:10:22

[debugging skills too]

sophiago18:10:34

i'm at the very beginning of learning Haskell so i just may put it off to see what the ecosystem is like over there as far as opportunities...as well as my ability to do anything with them in a reasonable time frame...

sophiago18:10:48

anyway, i deeply appreciate your help today. and i suppose it also reflects on my view of lein organization-wise as extremely positive, whether i end up contributing or not 😄

trptcolin18:10:26

👍 sure thing, glad we got it sorted out!

deactivateduser21:10:39

G'day everyone! I hate to be that guy, but I was wondering whether it would be possible to get an ETA on this: https://github.com/technomancy/lein-licenses/pull/6 ?

deactivateduser21:10:46

This is holding me up, and while I can test locally using a hand-rolled build of @bcarrell's change, that doesn't work so well for externally hosted tooling (Travis CI, etc.).

trptcolin22:10:17

hmm, tricky issue: lein changes an :internal API, and this plugin breaks. which lein versions should this plugin work with?

trptcolin22:10:52

although i guess for a dev-time-only tool it should be ok to roll forward

trptcolin22:10:07

it's not like people have lein version managers and run 2 different lein versions (i think / hope)

trptcolin22:10:58

i'll add a comment to the PR, just verified it. afaik only technomancy has access here.