Perl 6 - the future is here, just unevenly distributed

IRC log for #darcs, 2015-09-04

| Channels | #darcs index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
00:22 mizu_no_oto joined #darcs
01:14 mizu_no_oto joined #darcs
01:46 ilbot3 joined #darcs
01:46 Topic for #darcs is now http://darcs.net/ | logs: http://irclog.perlgeek.de/darcs/ | darcs 2.10.0 is out http://darcs.net/Releases/2.10
02:41 mizu_no_oto joined #darcs
03:33 vikraman joined #darcs
06:44 mempko joined #darcs
07:27 dixie_ joined #darcs
10:21 mizu_no_oto joined #darcs
12:59 mempko joined #darcs
15:52 Riastradh joined #darcs
17:38 Komanda joined #darcs
17:38 Komanda new to darcs
17:39 Komanda running osx
17:39 Komanda what is the best way to start?
17:39 Komanda oh i simply used the darcs command & it just works
17:39 Komanda thanks guys
17:39 Komanda left #darcs
18:01 Riastradh joined #darcs
18:08 Komanda joined #darcs
18:08 Komanda does darcs have any working osx gui at the moment?
20:15 Riastrad1 joined #darcs
20:16 IbnFirnas joined #darcs
20:16 IbnFirnas joined #darcs
20:16 Meeh joined #darcs
20:48 maerwald I don't think there is any gui at the momand
20:50 sm what about notdan_'s thing.. screenshots!?
20:51 sm or Heffalump.. got a screenshot for http://pasteboard.co ?
20:57 komanda3 joined #darcs
20:58 Komanda adding data to repository has been really easy
20:58 Komanda only having a trouble with restong my "working directory" to a certain point in time( patch, tag, whatever)
20:59 Komanda not really sure how i should do this
20:59 Komanda revert doesnt have a -p or -t option that allows me to selct a patch or a tag
21:07 sm Komanda: instead of revert, which isn't the right command, do darcs get -p ... to another directory. Or darcs obliterate in the current directory (if you don't mind erasing patches). Or darcs show contents to just dump the content of files.
21:09 Komanda i found this in the docs
21:09 Komanda http://darcs.net/manual/Darcs_commands.html#SECTION00600010000000000000
21:10 sm also re guis, I just remembered there is darcsum if you use emacs
21:10 sm also vc-darcs
21:10 byorgey joined #darcs
21:11 Komanda sm: so there is no way to modify my workingspace folder where i'm making continous change to a certain point in time that i have tagged?
21:11 Komanda i have to create new folder & "darcs get"
21:11 Komanda hmm
21:11 Komanda thats a bummer
21:12 sm it's pretty easy: darcs get . -p ... old.tmp
21:12 sm or, obliterate
21:13 sm darcs obliterate -p ... -a (if you really don't mine erasing those patches)
21:13 maerwald I wanted to write a GTK gui for darcs at some point, because I have already done gtk stuff, but time, you know...
21:14 maerwald and then I'd have to understand at least some of the darcs code... which I am very afraid of
21:15 sm maerwald: I'd guess it would be reasonably pleasant and quick to make a git-gui or gitk equivalent with haskell + gtk (or hsqml)
21:15 sm I think you could just copy how darcsden uses the darcs api
21:15 maerwald the most work will be gtk widget stuff and how to format things properly... but you still have to know how to get the darcs output
21:16 sm there's the glade ui designer right
21:16 maerwald yep, have been using that
21:16 * sm would like to see it in action
21:17 maerwald but if you don't do FRP gui stuff, you'll have to abuse IORefs
21:17 maerwald :/
21:17 sm so what
21:17 sm FRP would be a distraction
21:18 maerwald here I've done some gtk stuff, mostly ugly https://github.com/hasufell/CGA
21:18 sm maybe irrelevant, but for a terminal UI (curses-style), I can say brick is pretty nice
21:20 maerwald unfortunately there are not many GTK widgets that represent a state... most of the time you get a state info and have to save it somewhere yourself
21:21 sm maerwald: is that a problem ?
21:21 maerwald if you abuse IORefs, then no :)
21:23 maerwald I think the best thing is to start with a simpe history viewer and then work your way up
21:24 sm thanks for the link, interesting..
21:24 sm I agree!
21:25 sm if your CGA project had a stack.yaml, I would definitely give it a try
21:25 maerwald compilation was difficult last time I tried, but I can see if I can improve it
21:25 maerwald diagrams is a heavy lib
21:26 sm it's in stackage though
21:26 sm gtk too, apparently
21:27 Komanda "darcs failed:  Can't pull from current repository!"      darcs pull location/of/current/repo
21:27 Komanda why is that
21:27 Komanda pulling my current local repo is exactly what i want to do
21:27 sm Komanda: you pull from one repo into another. You should give the location of a different repo, not the one you're currently in
21:28 Komanda sm: but why?
21:28 Komanda doesnt make any sense to me as a nooby
21:28 sm that's good feedback. But what are you expecting it to do ?
21:28 Komanda what is the philosophy behind that decision?
21:28 Komanda i want it to use as personal versioncontrol/backup
21:29 Komanda i want to update my "working directory" / "workspace folder" to a certain point in time
21:29 Komanda with as little hassle as possible
21:30 sm you may want to run these commands with --help first. darcs pull --help says "Pull is used to bring changes made in another repository into the current repository" .. does it make sense ?
21:30 Komanda yes i have run the help commands
21:30 Komanda & tried a lot of commands
21:30 Komanda but nothing seems to work
21:31 sm you want to update your working directory to a certain point in time. Do you already have some patches recorded ?
21:31 sm darcs log will show them
21:31 Komanda yes i have :]
21:31 Komanda that was really easy <3
21:31 sm and you want to move backward in time to an older version ?
21:32 Komanda yes i have a tag v0.1
21:32 sm and are the patches since that tag saved in another repository elsewhere ? or is this the only place they exist ?
21:33 Komanda yes i have a handfull of patches
21:33 Komanda lets say i want to restore my working directory to patch b57216bbde42805129e662693b064eb07c7f2b6e
21:33 Komanda how would i do that?
21:34 Komanda i have already got something working manually
21:35 Komanda oh wait
21:35 sm Komanda: I didn't understand your answer, so I'm going to assume this is the only copy of this repo and you don't want to lose the recent patches. Then you must darcs get another copy of the repo to see it's earlier state
21:36 sm eg: darcs get . -t v0.1 tmp-0.1
21:36 Komanda sm: but then it creates another directory right?
21:36 sm yup
21:36 Komanda i want my working directory to be updated to the v0.1
21:37 Komanda basically overwritten
21:37 Komanda all stuff in working directory is irrelevnt
21:37 sm ok, and you don't care about losing the newer patches. Then it's the obliterate command
21:37 sm darcs obliterate -t 0.1 [-a]
21:37 Komanda well i care about the newer patches in darcs
21:37 Komanda but not about the cahnges made in my working directory
21:37 sm ok, then it's get to another directory. :)
21:38 sm to clear the unrecorded changes, it's darcs revert -a
21:39 Komanda sm: hmm, but can i do "darcs revert -a  -p b57216bbde42805129e662693b064eb07c7f2b6e" ?
21:39 sm no
21:39 Komanda basically disregard working directory & get back to certain point in time
21:39 Komanda hmm looks i will have to write my own script
21:39 sm reverting uncommitted changes, and getting an older version, are considered separate operations
21:39 sm but it's not hard. Just run two commands
21:40 sm have you used other version control systems before darcs ?
21:41 Komanda timemachine
21:41 sm ok
21:41 Komanda :')
21:41 Komanda but addng my data to darcs couldnt have been easier
21:42 Komanda adding*
21:42 Komanda darcs site seems to be down :[
21:42 sm so timemachine is always showing you a separate copy of your directory - it won't mess up your latest stuff
21:42 Komanda back up
21:42 Komanda site working again
21:43 sm it's the same with darcs, you have to get the old stuff as a separate copy, so as not to mess up your latest stuff. Unless you force it.
21:44 Komanda sm: so what ways are there to force it?
21:44 sm here's one way: darcs revert -a && darcs obliterate -t v0.1 -O -a
21:44 Komanda i could write a script that creates a new folder, does darcs pull & overwrites my working fodler
21:44 Komanda folder*
21:44 Komanda sm: thanks >3
21:44 Komanda <3
21:45 sm that will throw away any unrecorded changes, and undo any patches since the v0.1 tag, but also will save those patches in a file in case you want them back
21:46 sm this is a reasonable way to do it if you really want just one directory to think about
21:46 Komanda sm: it worked, thank you so much
21:48 sm you're welcome.. good luck
21:50 sm Komanda: a correction (one must always test...)
21:51 sm it should have been: darcs revert -a && darcs obliterate --from-tag v0.1 -O -a
21:52 sm the previous one removed only the tag, this removes it and the patches after it
21:52 Komanda http://stackoverflow.com/questions/29288356/how-to-go-back-to-a-tag-in-darcs
21:52 sm (so you have to re-do the tag)
21:52 Komanda i was reading this
21:53 Komanda more noobs seem to be having the same problem
21:53 Komanda maybe it would be an idea to
21:53 Komanda change " revert          Discard unrecorded changes." into " revert          Discard changes."
21:53 Komanda so you could do
21:54 Komanda revert -p [patch here]  -t [tag here]
21:54 * sm finds that stackoverflow answer confusing
21:54 Komanda then it would basically simply overwrite the current current working riectory with that patch/tag
21:54 Komanda would work more intuatively
21:58 sm Komanda: that might not be what you want, if you have important unrecorded changes you forgot about
21:58 sm I agree it's unfortunate that --from-tag deletes the tag. It would be nicer if it didn't
21:59 maerwald sm: there are 3 packages missing in stack: glase, gloss and dequeue
22:02 sm maerwald: I see.. hopefully if you keep adding the extra-deps lines it suggests, things will work out
22:02 maerwald "The following package identifiers were not found in your indices: glade-0.12"
22:02 maerwald no idea what that means
22:02 maerwald after I have added it to extra-deps
22:02 sm it's glade-0.12.0 on hackage
22:03 sm the .0 is needed
22:03 sm (if it suggested 0.12, that would be a bug)
22:07 maerwald lots of "Failure when adding dependencies"
22:07 maerwald this is not fun
22:08 sm I would give it a try, but I'm having trouble cloning from github
22:09 maerwald you can write the best dependency resolver... it doesn't help when the input is junk (in this case, too tight version constraints)
22:10 sm sure, it can't (or, doesn't) override bad manual constraints
22:11 sm I usually get to fix a few of those too on a big project
22:11 maerwald I do >= and fix things when new APIs break it
22:11 maerwald people should just stop using <
22:12 maerwald we don't do that in distributions either (most of the time)
22:12 sm if you're on board with that, you can just trust in stack[age] and remove all your upper bounds
22:12 sm and deal with the ire of the PVP-ers :)
22:16 sm maerwald: just curious, did you run stack solver in CGA ? Here, it "Couldn't find .cabal file"
22:17 maerwald there is no such file, you probably have to change the project name in CG2.cabal to CG2
22:17 maerwald there is a mismatch between cabal filename and project name
22:18 maerwald I should get rid of gloss anyway, it's not really needed
22:19 maerwald just used it out of laziness
22:19 sm ah interesting.. renaming CG2.cabal to CGA.cabal or changing the name in CG2.cabal to CGA doesn't helps tack >:|
22:19 maerwald everything is broken :(
22:20 maerwald this is what I get http://lpaste.net/140286
22:21 * sm is confused now
22:21 sm maerwald: looks like the containers and ghc-prim bounds are too tight
22:22 maerwald "latest is 0.13.2.1, but 0.13.2.1 found"
22:22 sm have you built this with ghc 7.10 already ?
22:22 maerwald love that message
22:22 maerwald it pulled ghv-7.10 on its own
22:22 maerwald I couldn't even stop it
22:22 sm you have to choose a snapshot based on the GHC you want
22:22 maerwald I chose the snapshot with the least missing deps
22:22 maerwald that requires 7.10
22:23 sm if this has only been built with 7.8 it might be easier to go with lts-2 and just add more extra-deps
22:23 sm on the other hand, updating for 7.10 is probably on your todo list
22:24 maerwald I'll try with lts-2.2 then
22:24 maerwald 7.10 basically broke every package I was using :D
22:24 maerwald last time I tried
22:25 haasn joined #darcs
22:25 sm yup
22:25 sm lts-2.22
22:27 maerwald diagrrams-lib is missing there
22:27 maerwald that's pretty bad
22:29 sm maerwald: I can say that "stack --resolver lts-2 init --solver" seems to find a build plan (basically cabal's)
22:31 sm but I can see the c deps are going to be scary. Let's see if this mac has them..
22:32 maerwald I think alex was the most troublesome one
22:32 sm stack makes alex/happy troubles go away, at least
22:33 maerwald I think I had to build it with -fasm, because it was broken with -fllvm
22:33 sm wow.. I never heard of that with alex
22:36 sm boom.. Ambiguous occurrence ‘die’ when building cairo
22:36 maerwald right, cairo was a pain too
22:36 sm ugh, why is it using ghc-7.10
22:36 maerwald byorgey even told me to sotp using it ;)
22:37 maerwald but then I was too lazy to switch the drawing backend
22:40 sm and now we suffer! :)
22:42 maerwald oh my, dequeue API changed too
22:42 sm I'm wrong again.. it still insists on picking ghc 7.10
22:42 * sm gives up arguing with the almight stack
22:43 maerwald stack --resolver lts-2.12 init --solver --force
22:43 maerwald got the deps installed with that
22:43 maerwald but now my actual code is broken :D
22:43 sm that picks ghc 7.10 too (here, anyway), -v shows it
22:44 sm anyway, sounds like you're making good progress
22:44 maerwald huh, not here (but I have a ghc-7.8 installed system-wide)
22:45 maerwald yeah, it's just the dequeue API that needs a fix
22:49 maerwald it builds
22:50 sm can I pull your stack.yaml ?
22:50 maerwald I'll push, sec
22:51 maerwald github is lagging today
22:52 maerwald sm: try now
22:56 sm with that, stack build --dry-run fails horribly here... :( I'm surprised
22:56 maerwald fascinating :D
22:58 maerwald do you know docker? I could make a working image :P
22:58 maerwald but then you need X-forward haha
22:58 maerwald omg
22:58 sm no thank you :)
22:59 sm here's what I got FWIW.. https://gist.github.com/simonmichael/7e3fa5d52fb742e60701
22:59 sm I need to eat.. good luck
23:00 maerwald you probably have local cabal packages installed? I removed them all here, did "cabal install stack" and then went ahead with the stack setup
23:00 Heffalump that looks worse than cabal error messages :-)
23:01 maerwald Heffalump: I thought stack makes everything easier? ;)
23:02 sm this is the first time it has really scared me :)
23:03 sm but then, your stack config is bypassing the whole snapshot system
23:04 maerwald ^^

| Channels | #darcs index | Today | | Search | Google Search | Plain-Text | summary