Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running mdz build in project root encounters an error #86

Closed
CFiggers opened this issue Oct 3, 2022 · 3 comments · Fixed by #87
Closed

Running mdz build in project root encounters an error #86

CFiggers opened this issue Oct 3, 2022 · 3 comments · Fixed by #87

Comments

@CFiggers
Copy link
Contributor

CFiggers commented Oct 3, 2022

System info:

  • Janet version: $ janet -v => 1.24.1-0817e627
  • Mendoza version: $ mdz version => 0.0.1
  • OS: $ lsb_release -d => Description: Ubuntu 22.04.1 LTS

Steps to reproduce:

  1. Clone janet-lang/spork: $ gh repo clone janet-lang/spork
  2. cd into cloned repo: $ cd spork
  3. Attempt to build using Mendoza: $ mdz build

Results:

Removing directory site...
Unloading cached modules...
Parsing content doc/argparse.mdz as mendoza markup
Loading syntax /usr/local/lib/janet/mendoza/syntax/janet.syntax.janet
Parsing content doc/formatting.mdz as mendoza markup
Parsing content doc/generators.mdz as mendoza markup
Parsing content doc/htmlgen.mdz as mendoza markup
Parsing content doc/http.mdz as mendoza markup
Parsing content doc/index.mdz as mendoza markup
Parsing content doc/message-protocol.mdz as mendoza markup
Parsing content doc/misc.mdz as mendoza markup
Parsing content doc/networked-repl.mdz as mendoza markup
Parsing content doc/path.mdz as mendoza markup
Parsing content doc/regex.mdz as mendoza markup
Parsing content doc/rpc-protocol.mdz as mendoza markup
Parsing content doc/temple.mdz as mendoza markup
Parsing content doc/test.mdz as mendoza markup
Writing HTML to site/http.html
Writing HTML to site/index.html
Writing HTML to site/formatting.html
Writing HTML to site/message-protocol.html
Writing HTML to site/networked-repl.html
Writing HTML to site/rpc-protocol.html
Writing HTML to site/path.html
Writing HTML to site/argparse.html
error: match error at line 10, column 1
  in peg/match [src/core/peg.c] on line 1669
  in render [/usr/local/lib/janet/mendoza/render.janet] on line 63, column 23
  in render [/usr/local/lib/janet/mendoza/render.janet] on line 67, column 11
  in render [/usr/local/lib/janet/mendoza/render.janet] on line 43, column 34
  in _mendoza-template [/usr/local/lib/janet/mendoza/templates/mdzdoc/main.html] on line 6, column 369
  in render [/usr/local/lib/janet/mendoza/render.janet] (tailcall) on line 66, column 11
  in render-page [/usr/local/lib/janet/mendoza/init.janet] on line 139, column 7
  in build [/usr/local/lib/janet/mendoza/init.janet] (tailcall) on line 154, column 5
@sogaiu
Copy link
Contributor

sogaiu commented Oct 4, 2022

I get similar output (just differs for the src/core/peg.c line).

Version info here:

@sogaiu
Copy link
Contributor

sogaiu commented Oct 4, 2022

I tried @pepe's changes in #87 -- I no longer see any error output.

@pepe
Copy link
Member

pepe commented Oct 4, 2022

It would be great to have a spork.janet-lang.org site with these generated docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants