jgm / yst

create static websites from YAML data and string templates
GNU General Public License v2.0
380 stars 38 forks source link

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

Open Skrylar opened 12 years ago

Skrylar commented 12 years ago

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.

Skrylar commented 12 years ago

Tried a full uninstall and reinstall of a newer Haskell platform, made sure all the libraries were up to the very latest possible (and some punching to get some of those new packages to work due to weird Windows problems) just in case this was it; it doesn't seem to be it.

jgm commented 12 years ago

If I recall correctly, this is due to a bug in a version of HStringTemplate. Try reinstalling the latest version of HStringTemplate (which fixes the bug), then reinstall yst. See if that fixes things.

+++ Skrylar [Nov 14 12 21:59 ]:

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.

— Reply to this email directly or [1]view it on GitHub. [xJAuenYDiIoVt3LF3y6848DAslDCyjnQ6q-QyN4VMN8jJk6OrmEZuMfqEGf4kNST.gif]

References

  1. https://github.com/jgm/yst/issues/30
Skrylar commented 12 years ago

Try reinstalling the latest version of HStringTemplate (which fixes the bug), then reinstall yst. See if that fixes things.

I did that as part of uninstalling GHC Platform 2012.2 and installing GHC Platform 2012.4; I cleared out the GHC and Cabal package directories and did a full reinstall, the problem with template files not being found is gone but the commitBuffer problem remains.

jgm commented 12 years ago

Is your locale encoding UTF-8?

+++ Skrylar [Nov 14 12 21:59 ]:

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.

-- Reply to this email directly or [1]view it on GitHub. [xJAuenYDiIoVt3LF3y6848DAslDCyjnQ6q-QyN4VMN8jJk6OrmEZuMfqEGf4kNST.gif]

References

  1. https://github.com/jgm/yst/issues/30
Skrylar commented 12 years ago

C:\Users\Skrylar\Desktop\wob>set LANG=en_US.UTF-8

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

C:\Users\Skrylar\Desktop\wob>set LOCALE=en_US.UTF-8

yst: site\events.html: commitBuffer: invalid argument (invalid character)