Don't print compiler warnings during bootstrap, they're useless
parent
4165804ee8
commit
5e17832dbb
|
@ -1,6 +1,7 @@
|
||||||
- sometimes fep when closing window
|
- sometimes fep when closing window
|
||||||
- windows rollover broken again
|
- windows rollover broken again
|
||||||
- compile error after reloading library/math/float.factor
|
- compile error after reloading library/math/float.factor
|
||||||
|
- move window while factor is busy: mouse gets messed up!
|
||||||
|
|
||||||
+ ui:
|
+ ui:
|
||||||
|
|
||||||
|
|
|
@ -5,8 +5,12 @@ kernel kernel-internals listener math memory modules namespaces
|
||||||
optimizer parser sequences sequences-internals words ;
|
optimizer parser sequences sequences-internals words ;
|
||||||
|
|
||||||
[
|
[
|
||||||
! Wrap everything in a catch which starts a listener so you
|
print-warnings off
|
||||||
! can see what went wrong, instead of dealing with a fep
|
|
||||||
|
[
|
||||||
|
! Wrap everything in a catch which starts a listener so
|
||||||
|
! you can see what went wrong, instead of dealing with a
|
||||||
|
! fep
|
||||||
[
|
[
|
||||||
"Cross-referencing..." print flush
|
"Cross-referencing..." print flush
|
||||||
H{ } clone changed-words set-global
|
H{ } clone changed-words set-global
|
||||||
|
@ -21,7 +25,8 @@ optimizer parser sequences sequences-internals words ;
|
||||||
|
|
||||||
"compile" get [
|
"compile" get [
|
||||||
windows? [
|
windows? [
|
||||||
"resource:/library/windows/dlls.factor" run-file
|
"resource:/library/windows/dlls.factor"
|
||||||
|
run-file
|
||||||
] when
|
] when
|
||||||
|
|
||||||
\ number= compile
|
\ number= compile
|
||||||
|
@ -60,9 +65,10 @@ optimizer parser sequences sequences-internals words ;
|
||||||
"Initializing native I/O..." print flush
|
"Initializing native I/O..." print flush
|
||||||
"native-io" get [ init-io ] when
|
"native-io" get [ init-io ] when
|
||||||
|
|
||||||
! We only do this if we are compiled, otherwise it
|
! We only do this if we are compiled, otherwise
|
||||||
! takes too long.
|
! it takes too long.
|
||||||
"Building online help search index..." print flush
|
"Building online help search index..." print
|
||||||
|
flush
|
||||||
H{ } clone parent-graph set-global xref-help
|
H{ } clone parent-graph set-global xref-help
|
||||||
H{ } clone term-index set-global index-help
|
H{ } clone term-index set-global index-help
|
||||||
] when
|
] when
|
||||||
|
@ -97,5 +103,6 @@ optimizer parser sequences sequences-internals words ;
|
||||||
|
|
||||||
"factor.image" resource-path save-image
|
"factor.image" resource-path save-image
|
||||||
] [ print-error :c ] recover
|
] [ print-error :c ] recover
|
||||||
|
] with-scope
|
||||||
|
|
||||||
0 exit
|
0 exit
|
||||||
|
|
|
@ -5,6 +5,10 @@ USING: errors generic hashtables inference io kernel math
|
||||||
namespaces optimizer parser prettyprint sequences test threads
|
namespaces optimizer parser prettyprint sequences test threads
|
||||||
words ;
|
words ;
|
||||||
|
|
||||||
|
SYMBOL: print-warnings
|
||||||
|
|
||||||
|
t print-warnings set-global
|
||||||
|
|
||||||
SYMBOL: batch-errors
|
SYMBOL: batch-errors
|
||||||
|
|
||||||
GENERIC: batch-begins ( batch-errors -- )
|
GENERIC: batch-begins ( batch-errors -- )
|
||||||
|
@ -17,7 +21,10 @@ M: f compile-begins drop "Compiling " write . flush ;
|
||||||
|
|
||||||
GENERIC: compile-error ( error batch-errors -- )
|
GENERIC: compile-error ( error batch-errors -- )
|
||||||
|
|
||||||
M: f compile-error drop error. flush ;
|
M: f compile-error
|
||||||
|
drop
|
||||||
|
dup inference-error-major? print-warnings get or
|
||||||
|
[ dup error. flush ] when drop ;
|
||||||
|
|
||||||
GENERIC: batch-ends ( batch-errors -- )
|
GENERIC: batch-ends ( batch-errors -- )
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue