GithubHelp home page GithubHelp logo

Comments (10)

ranjitjhala avatar ranjitjhala commented on June 24, 2024

Yikes! will look into this ASAP. (hope its not my recent changes...)

On Mon, Mar 2, 2015 at 6:53 PM, Chris Tetreault [email protected]
wrote:

I figured I'd build the new book, and restart following my issues with
chapter 6. I cloned the repo and ran make which output:

$ make
pandoc --from=markdown+lhs --to=html5 -s --mathjax --standalone --parse-raw --mathjax --section-divs --filter web/templates/codeblock.hs --filter templates/html.hs --variable=notitle --highlight-style=tango --template=web/templates/page.template src/00-preamble.lhs src/03-poly.lhs src/99-bib.lhs -o web/dist/foo.html
pandoc: Could not find data file templates/web/templates/page.template
make: *** [site] Error 97

There is no web folder in templates, and the web in the project root is
empty. On github, it links to another repository.

After it occurred to me that this was trying to build a webpage, and I
want a pdf, I ran make book:

$ make book
cat src/00-preamble.lhs src/01-intro.lhs src/02-basic.lhs src/03-poly.lhs src/04-datatypes.lhs src/05-measure-bool.lhs src/06-measure-int.lhs src/07-measure-sets.lhs src/08-case-study-lazy-queues.lhs src/09-case-study-associative-maps.lhs src/10-case-study-pointers.lhs src/11-case-study-AVL.lhs src/99-bib.lhs > dist/pbook.lhs
/bin/sh: 1: cannot create dist/pbook.lhs: Directory nonexistent
make: *** [book] Error 2

If you create dist in the project root:

$ make book
cat src/00-preamble.lhs src/01-intro.lhs src/02-basic.lhs src/03-poly.lhs src/04-datatypes.lhs src/05-measure-bool.lhs src/06-measure-int.lhs src/07-measure-sets.lhs src/08-case-study-lazy-queues.lhs src/09-case-study-associative-maps.lhs src/10-case-study-pointers.lhs src/11-case-study-AVL.lhs src/99-bib.lhs > dist/pbook.lhs
pandoc --highlight-style=tango --from=markdown+lhs --biblio templates/sw.bib --chapters --latex-engine=pdflatex --template=templates/default.latex --filter templates/inside.hs dist/pbook.lhs -o dist/pbook.pdf
pandoc: Error running filter templates/inside.hs
templates/inside.hs not found in path
make: *** [book] Error 83

templates/inside.hs does exist, and giving it 777 permissions doesn't
help. I looked into it a bit, but I can't figure out why it doesn't work. I
noticed that there is a pre-built pdf in the repository already, so I'm
going to move ahead with that. I just thought I'd share the issues I had
with it, and what I found out.

Reply to this email directly or view it on GitHub
#7.

Ranjit.

from liquidhaskell-tutorial.

christetreault avatar christetreault commented on June 24, 2024

Is the .pdf in the repo the latest and greatest?

from liquidhaskell-tutorial.

ranjitjhala avatar ranjitjhala commented on June 24, 2024

@christetreault I think I fixed all the above. Can you do a

git pull
make

(perhaps better to clone a new repository and start from scratch)

You should get the finished PDF in dist/pbook.pdf

there is a "snapshot" of the book in pdf/programming-with-refinement-types.pdf

from liquidhaskell-tutorial.

christetreault avatar christetreault commented on June 24, 2024

No luck. Now I'm getting:

$ make
cat src/00-preamble.lhs src/01-intro.lhs src/02-basic.lhs src/03-poly.lhs src/04-datatypes.lhs src/05-measure-bool.lhs src/06-measure-int.lhs src/07-measure-sets.lhs src/08-case-study-lazy-queues.lhs src/09-case-study-associative-maps.lhs src/10-case-study-pointers.lhs src/11-case-study-AVL.lhs src/99-bib.lhs > dist/pbook.lhs
PANDOC_TARGET=latex pandoc --highlight-style=tango --from=markdown+lhs --biblio templates/sw.bib --chapters --latex-engine=pdflatex --template=templates/default.latex --filter templates/Figures.hs --filter templates/inside.hs dist/pbook.lhs -o dist/pbook.pdf
pandoc: Error running filter templates/Figures.hs
templates/Figures.hs not found in path
make: *** [book] Error 83

The contents of templates:

$ ls -al templates/
total 456
drwxrwxr-x  2 chris chris   4096 Mar  3 12:40 .
drwxrwxr-x 10 chris chris   4096 Mar  3 12:40 ..
-rw-rw-r--  1 chris chris   6064 Mar  3 12:40 book.tex
-rw-rw-r--  1 chris chris   7452 Mar  3 12:40 default.latex
-rw-rw-r--  1 chris chris    251 Mar  3 12:40 figHtml.template
-rw-rw-r--  1 chris chris    102 Mar  3 12:40 figLatex.template
-rw-rw-r--  1 chris chris   3519 Mar  3 12:40 Figures.hs
-rw-rw-r--  1 chris chris   5763 Mar  3 12:40 haskellListings.tex
-rw-rw-r--  1 chris chris   2673 Mar  3 12:40 html.hs
-rw-rw-r--  1 chris chris      0 Mar  3 12:40 html.template
-rw-rw-r--  1 chris chris   3452 Mar  3 12:40 inside.hs
-rw-rw-r--  1 chris chris 411918 Mar  3 12:40 sw.bib

All this after I cloned a fresh repo.

from liquidhaskell-tutorial.

ranjitjhala avatar ranjitjhala commented on June 24, 2024

Hm. thought i added that! can you try now?

from liquidhaskell-tutorial.

christetreault avatar christetreault commented on June 24, 2024

Nope, same error still...

Perhaps I am missing some dependency? I installed Pandoc from the Ubuntu repo. Otherwise I didn't install anything special...

from liquidhaskell-tutorial.

ranjitjhala avatar ranjitjhala commented on June 24, 2024

Odd can you swing by my office tomorrow afternoon?

On Mar 3, 2015, at 5:00 PM, Chris Tetreault [email protected] wrote:

Nope, same error still...


Reply to this email directly or view it on GitHub.

from liquidhaskell-tutorial.

christetreault avatar christetreault commented on June 24, 2024

Sure, Is 1:30 good?

from liquidhaskell-tutorial.

ranjitjhala avatar ranjitjhala commented on June 24, 2024

Yup!

On Tue, Mar 3, 2015 at 6:28 PM, Chris Tetreault [email protected]
wrote:

Sure, Is 1:30 good?

Reply to this email directly or view it on GitHub
#7 (comment)
.

Ranjit.

from liquidhaskell-tutorial.

christetreault avatar christetreault commented on June 24, 2024

Tutorial builds now; closing this issue.

from liquidhaskell-tutorial.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.