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 expand-script.ss under Petite Chez 9.4 does not work #2

Closed
johnwcowan opened this issue Apr 29, 2016 · 1 comment
Closed

Running expand-script.ss under Petite Chez 9.4 does not work #2

johnwcowan opened this issue Apr 29, 2016 · 1 comment

Comments

@johnwcowan
Copy link

I get:

if [ ! -d a6le ] ; then mkdir a6le ; fi
sed -e 's;^#! /usr/bin/petite --program;#! /usr/bin/petite --program;' src/scheme-prep.ss > a6le/scheme-prep.ss
echo '(reset-handler abort) (source-directories (quote ("src"))) (expand-script "a6le/scheme-prep.ss" "a6le/scheme-prep")' | /usr/bin/petite -q src/expand-script.ss
expanding a6le/scheme-prep.ss with output to a6le/scheme-prep
Exception in fasl-write: #<output port a6le/scheme-prep> is not a binary output port
Makefile:19: recipe for target 'a6le/scheme-prep' failed
make: *** [a6le/scheme-prep] Error 255

This error does not happen when using Chez 9.4.

@dybvig
Copy link
Owner

dybvig commented Apr 29, 2016

This isn't an incompatibility between Chez Scheme and Petite Chez Scheme but instead an old and broken expand-script.ss, which was used only for Petite Chez Scheme and written before the distinction between binary files and text files. I just "fixed" this by removing expand-script.ss and with it the option to use Petite Chez Scheme now that Chez Scheme is open source.

@dybvig dybvig closed this as completed May 5, 2016
LiberalArtist added a commit to LiberalArtist/stex that referenced this issue Nov 18, 2023
 This is a combination of 33 commits.
 This is the 1st commit message:

[DRAFT] use <!DOCTYPE html>

 This is the commit message dybvig#2:

[WIP] katex

 This is the commit message dybvig#3:

[FIXUP] katex/fonts

 This is the commit message dybvig#4:

fixup

 This is the commit message dybvig#5:

tar --dereference

Otherwise, it would archive katex/fonts as a symlink,
and chmod would fail.

The long option `--dereference` is portable to at least GNU tar and
FreeBSD tar, but the short versions of the option are incompatible:
GNU says `-h`, FreeBSD says `-L`.

 This is the commit message dybvig#6:

fixup tar --dereference

 This is the commit message dybvig#7:

link katexmacros; try explicit `make KATEX=$(KATEX)`

 This is the commit message #8:

no $

touch csug.hthirdrun
echo -n gifs= > math/csug/mathfiles
(cd math/csug; echo *.tex | sed -e "s/\.tex/.gif/g") >> math/csug/mathfiles
echo -n htmls= >> math/csug/mathfiles
(cd math/csug; echo *.katex | sed -e "s/\.katex/.html/g") >> math/csug/mathfiles
make[2]: Entering directory '/home/philip/code/racket/Chez-stex-tmp/csug/math/csug'
/gnu/store/kn10fd3x3fxw714f5p2zfq3ch8qnhm74-profile/bin/katex -i 0.katex -o 0.html --macro-file katexmacros
/gnu/store/xa79qcdvp7xan4iwc8023082x1j22ypk-katex-0.16.9/lib/node_modules/katex/guix-node-cjs/katex.js:13212
        throw error;
        ^

ParseError: KaTeX parse error: Can't use function '$' in math mode at position 1: $̲\Rightarrow$
    at new ParseError (/gnu/store/xa79qcdvp7xan4iwc8023082x1j22ypk-katex-0.16.9/lib/node_modules/katex/guix-node-cjs/katex.js:153:22)
    at _Parser.parseFunction (/gnu/store/xa79qcdvp7xan4iwc8023082x1j22ypk-katex-0.16.9/lib/node_modules/katex/guix-node-cjs/katex.js:12776:17)
    at _Parser.parseGroup (/gnu/store/xa79qcdvp7xan4iwc8023082x1j22ypk-katex-0.16.9/lib/node_modules/katex/guix-node-cjs/katex.js:13013:25)
    at _Parser.parseAtom (/gnu/store/xa79qcdvp7xan4iwc8023082x1j22ypk-katex-0.16.9/lib/node_modules/katex/guix-node-cjs/katex.js:12679:27)
    at _Parser.parseExpression (/gnu/store/xa79qcdvp7xan4iwc8023082x1j22ypk-katex-0.16.9/lib/node_modules/katex/guix-node-cjs/katex.js:12598:29)
    at _Parser.parse (/gnu/store/xa79qcdvp7xan4iwc8023082x1j22ypk-katex-0.16.9/lib/node_modules/katex/guix-node-cjs/katex.js:12562:30)
    at parseTree (/gnu/store/xa79qcdvp7xan4iwc8023082x1j22ypk-katex-0.16.9/lib/node_modules/katex/guix-node-cjs/katex.js:13172:25)
    at renderToDomTree (/gnu/store/xa79qcdvp7xan4iwc8023082x1j22ypk-katex-0.16.9/lib/node_modules/katex/guix-node-cjs/katex.js:13222:22)
    at Object.renderToString (/gnu/store/xa79qcdvp7xan4iwc8023082x1j22ypk-katex-0.16.9/lib/node_modules/katex/guix-node-cjs/katex.js:13203:22)
    at writeOutput (/gnu/store/xa79qcdvp7xan4iwc8023082x1j22ypk-katex-0.16.9/lib/node_modules/katex/cli.js:94:26) {
  position: 0,
  length: 1,
  rawMessage: "Can't use function '$' in math mode"
}

Node.js v18.18.2

 This is the commit message #9:

katexmacros for csug

 This is the commit message #10:

fixup punt-to-latex

 This is the commit message #11:

fixup --katex-finished

 This is the commit message #12:

fixup

 This is the commit message #13:

really fixup

 This is the commit message #14:

mostly documentation things (don't check in doc/katex for now)

 This is the commit message #15:

stex.stex build nicely; handled schemeghostRightarrow

 This is the commit message #16:

fixup KATEX_CSS default

 This is the commit message #17:

fixup for eof from get-string-all

 This is the commit message #18:

KATEX_FLAGS

 This is the commit message #19:

make variable propagation works

 This is the commit message #20:

tweak

 This is the commit message #21:

[TMP] seek smathdisplay

 This is the commit message #22:

export KATEX KATEX_FLAGS

 This is the commit message #23:

Revert "[TMP] seek smathdisplay"

This reverts commit ff169c9.

 This is the commit message #24:

note lack of epsfbox; add comment about display mode

 This is the commit message #25:

tweaks

 This is the commit message #26:

should have been in previous commit

 This is the commit message #27:

revert some probably unnecessary html updates

 This is the commit message #28:

[TMP] revert td nowrap

 This is the commit message #29:

[TMP] revert mdash ndash

 This is the commit message #30:

revert self-closing img for non-katex mode

 This is the commit message #31:

use old doctype unless katex

 This is the commit message #32:

revert gratuitous change to self-closing for (style-sheet)

 This is the commit message #33:

increment version to 1.3
LiberalArtist added a commit to LiberalArtist/stex that referenced this issue Nov 18, 2023
 This is a combination of 2 commits.
 This is the 1st commit message:

support katex

 This is the commit message dybvig#2:

fixup
LiberalArtist added a commit to LiberalArtist/stex that referenced this issue Nov 18, 2023
 This is a combination of 2 commits.
 This is the 1st commit message:

support katex

 This is the commit message dybvig#2:

fixup

[FIXUP] rebuild docs

minor doc edit
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

No branches or pull requests

2 participants