-
Notifications
You must be signed in to change notification settings - Fork 63
Incomplete code in tut sheds doesn't fail #65
Comments
dammit |
I think fixing this would break my use case, where I would like to be able to guarantee that an expensive expression compiles for my document generation, but I don't want the calculation to run.
(For @ceedubs: I wrapped the whole thing in a shed, but the parser will treat the closing shed you intend to have printed as closing the whole thing, but only if it's alone on a new line, so the closing ```s are followed by unicode 00A0 (non-breaking-space). The parser also trims regular spaces from lines so just using a space key space doesn't work.) |
Seems like a pretty specialized use case ... I'm inclined to say use a |
Sounds reasonable, think my doc would read ok with the example in a |
Fix #65: assure incomplete input doesn't pass compilation
Tut 0.6.4 adds a fix for tpolecat/tut#65, which makes sure that incomplete input does not pass compilation
Tut 0.6.4 adds a fix for tpolecat/tut#65, which makes sure that incomplete input does not pass compilation
Discovered in version 0.4.0.
If a tut shed ends when a normal REPL would prompt for more input, tut doesn't complain that the code is incomplete.
example input (I'm using apostophes because I can't figure out how to escape backticks in GitHub markdown):
what I see in output:
I seem to forget closing braces and hit this often :)
Edit: I had been using
tut:silent
a lot and forgot thattut
includes thescala>
prompt in the output, so I wrote an irrelevant detail.The text was updated successfully, but these errors were encountered: