jgm / jgm/yst

yst: Could not load template: layout.tex.st

Open
#30 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
Haskell
Stars
407
Forks
38
PR merge metrics
No merged PRs in 30d

Description

After running a simple:
# yst create wob

It creates the directory, places in test files, and then promptly complains that it cannot find the layout file that it placed in the directory (I checked, it's there.) If I remove the ".tex.st" portion, it then explodes with a different useless error message (layout.tex.st is now layout_tex.st, and the config file is properly adjusted):
# yst

yst: site\april_events.tex: commitBuffer: invalid argument (invalid character)

I'm a little baffled about this; it looks like there's some kind of internal library conflicts going on; I updated cabal, cabal-install, then reinstalled pandoc, hstringtemplate and yst. Now I'm down to:

yst: site\april_events.tex: commitBuffer: invalid argument (invalid character)

from the base install. It appears to be related to UTF characters in the Haskell API, from searching it looks like a few other Haskell programs have developed this issue in recent versions of GHC.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing `yst create wob` and then `yst` with the generated site. Inspect the generated `layout.tex.st`, the adjusted configuration, and the reported `site/april_events.tex` input; the issue is done when templates load without renaming and UTF characters no longer trigger the invalid-character error.

Written by the indexing model from the issue text.

Assessment

Tech stack
haskell
Domain
tooling, web-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.