Fix bootstrap

db4
Slava Pestov 2009-04-12 16:31:25 -05:00
parent 5aab0078a0
commit 7a33780bc2
3 changed files with 14 additions and 9 deletions

View File

@ -14,6 +14,10 @@ $nl
"To run help lint, use one of the following two words:"
{ $subsection help-lint }
{ $subsection help-lint-all }
"Once a help lint run completes, failures can be listed:"
{ $subsection :lint-failures }
"Help lint failures are also shown in the " { $link "ui.tools.error-list" } "."
$nl
"Help lint performs the following checks:"
{ $list
"ensures examples run and produce stated output"

View File

@ -5,17 +5,16 @@ words quotations io ;
ARTICLE: "compiler-errors" "Compiler warnings and errors"
"After loading a vocabulary, you might see messages like:"
{ $code
":errors - print 2 compiler errors."
":warnings - print 50 compiler warnings."
":errors - print 2 compiler errors"
":warnings - print 50 compiler warnings"
}
"These warnings arise from the compiler's stack effect checker. Warnings are non-fatal conditions -- not all code has a static stack effect, so you try to minimize warnings but understand that in many cases they cannot be eliminated. Errors indicate programming mistakes, such as erroneous stack effect declarations."
$nl
"The precise warning and error conditions are documented in " { $link "inference-errors" } "."
"These messages arise from the compiler's stack effect checker. Production code should not have any warnings and errors in it. Warning and error conditions are documented in " { $link "inference-errors" } "."
$nl
"Words to view warnings and errors:"
{ $subsection :errors }
{ $subsection :warnings }
{ $subsection :linkage } ;
{ $subsection :errors }
{ $subsection :linkage }
"Compiler warnings and errors are also shown in the " { $link "ui.tools.error-list" } "." ;
HELP: compiler-error
{ $values { "error" "an error" } { "word" word } }

View File

@ -16,7 +16,9 @@ ARTICLE: "tools.test.run" "Running unit tests"
{ $subsection test }
{ $subsection test-all }
"The following word prints failures:"
{ $subsection :failures }
{ $subsection :test-failures }
"Help lint failures are also shown in the " { $link "ui.tools.error-list" } "."
$nl
"Unit test failurs are instances of a class, and are stored in a global variable:"
{ $subsection test-failure }
{ $subsection test-failures } ;
@ -70,5 +72,5 @@ HELP: test
HELP: test-all
{ $description "Runs unit tests for all loaded vocabularies." } ;
HELP: :failures
HELP: :test-failures
{ $description "Prints all pending unit test failures." } ;