Fork me on GitHub
#perun
<
2016-03-24
>
bwstearns02:03:04

hey @all. I'm a relatively new clojurian but really enjoying the language so far. Looking through the issues now but I was wondering if there was any task for perun that was relatively newbie friendly. I'm not a novice programmer, just new to Clojure.

bwstearns02:03:25

ok, now I feel dumb, I just tried to spin up a Simplest Thing Possible (tm) and got clojure.lang.ExceptionInfo: Unable to resolve symbol: perun in this context

podviaznikov02:03:32

You didn’t try using perun yourself yet, right?

bwstearns02:03:39

that's what I am trying to do, just following the user tutorial so I understand how to use it

bwstearns02:03:22

It seems like I'm missing some installation step since it's a boot error

bwstearns02:03:16

I get it at the boot --help step

;;  build.boot

(set-env!
 :source-paths #{"src" "content"}
 :dependencies [[perun "0.3.0" :scope "test"]])

(require '[io.perun :refer :all])


;; boot.properties

#
#Mon Jan 18 23:19:36 CET 2016
BOOT_CLOJURE_NAME=org.clojure/clojure
BOOT_CLOJURE_VERSION=1.7.0
BOOT_VERSION=2.5.5
BOOT_EMIT_TARGET=no

podviaznikov03:03:31

I think you need single quote before [[

bwstearns03:03:05

oh wait... I seem to be an idiot, you need to run boot related commands from inside /content?

podviaznikov03:03:03

sorry, not quite sure what you mean by from inside /content

bwstearns03:03:04

I was running it from /my-app

bwstearns03:03:23

mkdir my-website                         # creates the directory
cd my-website                            # moves you into the directory
so now you're in /my-website "Create the directory content and place a file index.markdown inside it, containing the following" and now I guess you're in the directory /my-website/content/ not /my-website

bwstearns03:03:49

this appears to make a difference because I get the error in the my-website dir but not the my-website/content dir

podviaznikov03:03:20

Looking into Getting started guide

podviaznikov03:03:01

no you actually need to run boot command from my-website not my-website/content

podviaznikov03:03:11

did you try adding missing '

podviaznikov03:03:42

For some reason GitHub rendered example wrong. I see in the source but it’s not displayed

bwstearns03:03:49

Sorry for the misunderstanding (also for the wiki edit collision just there)

podviaznikov03:03:17

no worries. I’m actually surprised that single quote is not rendered

podviaznikov03:03:35

let me know if you hit more problems

bwstearns03:03:44

Thanks, will do.

bwstearns03:03:58

And it works, awesome.

podviaznikov05:03:53

great, good that it works. I don’t have idea for beginner friendly tasks/bugs yet but I will think about it more

martinklepsch08:03:56

@bwstearns: Sorry about that quoting issue, githubs code block renderer just drops them for some reason :(

bwstearns15:03:06

@martinklepsch: no worries. That's the beauty of open source. To paraphrase, many feet make all mines trigger? Did anyone discover what was up with the missing quote?

martinklepsch15:03:30

@bwstearns: you mean the reason?

martinklepsch15:03:12

@bwstearns: I have no clue, to make it worse in some places the quote is displayed perfectly in others in the same code block it's not there at all

bwstearns15:03:50

That is bizarre.

bwstearns15:03:18

OK. Figured out the ' thing

bwstearns15:03:38

putting '[[ makes it disappear, putting it in front of '[ [ does not

bwstearns15:03:46

Even though it's in a codeblock is it still doing something expecting a link or something?

martinklepsch15:03:14

you're amazing if that's true!

bwstearns15:03:38

Adding "arbitrary formatting conundra" to linkedin skills.

martinklepsch15:03:02

@bwstearns: thanks for fixing that!

martinklepsch15:03:21

man I've spent what felt like hours trying to figure this out 😄

bwstearns15:03:35

@martinklepsch: no problem. It looks less pretty now but it executes. I'll find out how to bug someone at github about it because the formatting really shouldn't be eating that quote mark. I looked through their markdown specification and it really shouldn't be happening.

bwstearns15:03:47

@martinklepsch: mind if I CC you on the support email?

martinklepsch15:03:56

cool, thanks for puttin in the effort @bwstearns

bwstearns15:03:54

@martinklepsch: no worries. I'll try to make sure that I document/submit fixes for any toe stubbing while using the project 😄

podviaznikov17:03:06

wow, good job finding workaround for the quote issue

podviaznikov17:03:00

@bwstearns: as an idea for a new task todo I would suggest looking into http://www.metalsmith.io/. They have list of plugins. Maybe you would find some plugin useful and would like to implement similar one in the perun.

bwstearns17:03:58

@podviaznikov: nice. Looking at it now.

podviaznikov17:03:35

it’s is just for inspiration. Maybe @martinklepsch would have some suggestions/ideas too

martinklepsch17:03:59

I wanted to write a task that renders plain edn data in some way. I.e. I have a list of books I've read in an edn file and I want a books.html file made from it

martinklepsch17:03:45

it's pretty straightforward I think

martinklepsch17:03:21

but to properly integrate you'll need to accustom yourself with how perun works

podviaznikov17:03:31

Yeah, that is a good one. You can also put this lis right now in the perun.base.edn and it would be available in all pages. But I agree that having it not in the global meta is better way

bwstearns17:03:53

Interesting.