Commit Graph

23226 Commits

Author SHA1 Message Date
Robby Findler
b063604ab4 fix begin-for-syntax test 2011-11-08 22:02:12 -06:00
Matthew Flatt
2d70017091 win32: avoid line-wrap in `meesage%' display
Also, adjust text measuring to ensure that it is as close
as possible to measurements for a control.
2011-11-08 06:55:40 -07:00
Matthew Flatt
7d607fdd93 fix errortrace for phase N outside of module 2011-11-07 13:16:17 -07:00
Eli Barzilay
af3019fa5a Allow internal definitions in a `for/vector' with a #:length.
Closes PR 12340.
2011-11-07 12:17:46 -05:00
Robby Findler
bfa6b1d953 Fixed some bugs in the double-stacktrace window; adjusted the repl to
be able to insert more with-stack-checkpoint calls in useful places;
adjust test suites to match the change in when the stacktrace icon
shows up
2011-11-07 07:42:14 -06:00
Robby Findler
e1ce0a0d1e Change the drracket repl so that it doesn't show the stacktrace button
for syntax errors (i.e., exn:fail:syntax? exceptions)

Overall, it seems important to (in most cases) not show the stack that
leads to the point where raise-syntax-error is called, so as not to
confuse users who might think that that stack is useful information
in understanding how to fix the syntax error.

I've resisted this technique for avoiding those stacks for a long
time, mostly because common syntax errors in the standard settings
don't usually get the stacktrace button because they usually have
empty stacks (partly thanks to the with-stack-checkpoint dance).

But now that the underlying racket-generated stack is shown too, and
not just the errortrace-generated stack, it is harder to make those go
away. More precisely, DrRacket used to be able to rely on the fact
that files that were compiled to .zo files would not have the
instrumentation in them and thus stackframes from that code would not
show up in the stacktrace. No longer.

So, it seems time to try this alternative.
2011-11-06 21:14:51 -06:00
Robby Findler
cac37b0b6a added test cases for phase issues in the module language repl 2011-11-06 21:14:51 -06:00
Mike Sperber
17ca888a97 Synch German string constants with latest. 2011-11-05 13:31:47 +01:00
Robby Findler
3f8d6eb2b2 adjust call to get-info/full so that it respects the contract 2011-11-04 21:48:04 -05:00
Matthew Flatt
64ae5268d6 fix sandbox parameterization order 2011-11-04 16:02:54 -06:00
Matthew Flatt
6e7ad71ae5 ffi/unsafe: handle out-of-memory on malloc
Also fix some int vs. intpt_t problems.
2011-11-04 15:29:28 -06:00
Tony Garnock-Jones
4f007cc9ce uClibc doesn't support getcontext(). 2011-11-04 11:16:35 -04:00
Danny Yoo
899bc0616b Adding an example for `define-match-expander'. 2011-11-04 11:16:35 -04:00
Robby Findler
65fd0234ad add a unicode test to scheme-lexer.rkt
and change the tests so they all run with port line
counting enabled (or else the unicode test fails)

adjust module-lexer.rkt tests so they can run in either
port-counting mode or not (but currently run them all in
port-counting mode because scheme-lexer doesn't work without it)

also make a first stab at what needs to change in the module
lexer to make it work in non port line-counting mode
2011-11-03 22:41:27 -05:00
Matthew Flatt
4314b2ac28 make OpenGL gears example report a good error on failure 2011-11-03 17:42:36 -06:00
Matthew Flatt
0f6c267798 add #:fail argument to with-gl-context' in canvas%' 2011-11-03 17:42:36 -06:00
Matthew Flatt
9bd0486ca0 fix non-tail loop in GL lock manager thread
The non-tail loop would cause the gears example to grandually
slow down, for example.
2011-11-03 17:42:36 -06:00
Robby Findler
b7541c5d1b Revert "IN PROGRESS: starting to fix the repl-test for the new error icons"
This reverts commit 8ec968fe8f.
2011-11-03 17:14:06 -05:00
Robby Findler
d00aed6f1b fix the module reader for the case when there are non-ASCII unicode characters
in comments before the #lang line

also add an #:init-position argument to peeking-input-port
2011-11-03 17:13:17 -05:00
Robby Findler
8ec968fe8f IN PROGRESS: starting to fix the repl-test for the new error icons 2011-11-03 17:13:17 -05:00
Eli Barzilay
cfc465932e Add a history note on the lazy change, make the TR history specify 5.2. 2011-11-03 17:09:58 -04:00
Matthew Flatt
9896cb6851 streamline get-byte' (especially as used by read-[bytes-]line')
Applies in the case of simple ports without line counting, etc.
Also, `read-line' keeps track of whether all bytes are ASCII
(which is easy) to shortcut general UTF-8 decoding.
2011-11-03 09:12:13 -06:00
Matthew Flatt
4bbb2d41aa cocoa: fix some GL problems 2011-11-03 09:12:13 -06:00
Matthew Flatt
a495c9f349 fix channel/semaphore sync bug 2011-11-03 09:12:13 -06:00
Eli Barzilay
40f3388051 Shuffle the sandbox parameters so they make a bit more sense.
(Specifically, more restrictions come earlier.)
2011-11-02 17:46:40 -04:00
Eli Barzilay
90f7a98dd6 Fix the default `sandbox-make-code-inspector'.
It now creates an inspector based on the original code inspector instead
of the (implicit) wrong default used by `make-inspector'.  Change
`sandbox-make-inspector' too, to make it explicit.
2011-11-02 17:40:24 -04:00
Eli Barzilay
b9bd1db58a Move the namespace creation so that it happens under the code-inspector.
This fixes a security issue where a toplevel evaluator could still use
things like `ffi/unsafe'.
2011-11-02 17:40:24 -04:00
Eli Barzilay
ad934255c5 Capitalize all subsection headers. 2011-11-02 17:40:24 -04:00
Eli Barzilay
8f1a4de253 Document `numeric'; closes PR 12338. 2011-11-02 17:40:24 -04:00
Eli Barzilay
1eec2b75e3 Improve unix installer tester.
* The installer is a command-line argument.

* Make it work in xterm too, by unsetting TERM.

* Works with version-less directories, from release installers.
2011-11-02 17:40:24 -04:00
Matthew Flatt
98cde53fa0 fix rename trans `free-identifier=?' propagation in int-def context
Closes PR 12333
2011-11-02 10:02:19 -06:00
Matthew Flatt
c7a0f1bef8 guard a space-safety test with a 3m check 2011-11-02 08:12:58 -06:00
Matthew Flatt
b42daeacf0 remove unused field 2011-11-02 08:12:58 -06:00
Matthew Flatt
3885f4683b add missing `render%' init argument doc 2011-11-02 08:12:58 -06:00
Matthew Flatt
8d91efcee4 fix `get-bytevector-all' bug
Closes PR 12327
2011-11-02 08:12:58 -06:00
Matthew Flatt
e361acae0b handin server: add support for HTTPS uploads (when enabled) 2011-11-02 08:12:58 -06:00
Jay McCarthy
8b38c8e933 Changed the exn thrown 2011-11-01 13:01:09 -06:00
Jay McCarthy
6466c480b0 DrDr, test this push 2011-11-01 11:16:47 -06:00
Jay McCarthy
c2065b2128 Improving error messages for non-serializable continuation pieces 2011-11-01 11:16:47 -06:00
Robby Findler
cc86b6f06e disable incremental-keybindings.rkt 2011-11-01 11:33:07 -05:00
Robby Findler
5128f08810 minor docs fix 2011-11-01 09:51:28 -05:00
Ryan Culpepper
98d8acfd4e avoid including lazy-required names in (all-defined-out)
closes PR 12335
2011-10-31 18:19:07 -06:00
Robby Findler
8edfd4e87e add docs for the #:stronger argument to the contract constructors
closes PR 12312
2011-10-31 16:59:19 -05:00
Robby Findler
0ce6c75591 Rackety (mostly letrec-values => define and minimizing dependencies) 2011-10-31 09:14:34 -05:00
Robby Findler
64dfdb3c7f Change the expansion of reduction-relation so that it generates less code
(by expanding into a call to a 30 or so line procedure, instead of putting
that code directly into the result of the macro).

This produces about a 6x speedup on this reduction-relation

  (reduction-relation L (--> 0 1) (--> 1 2) ... (--> 99 100))

where L is

  (define-language L)

The time it takes to run "racket r6rs.rkt" in the shell from the
directory collects/redex/examples/r6rs speeds up by about 10% (15%
with errortrace enabled), in the case where all .zo files are built,
except the ones in the r6rs directory. (Also worth noting that "racket
-l redex" takes more than 50% of that time.) And the change has no
noticeable effect on the time it takes to run r6rs-test.rkt.
2011-10-31 08:53:09 -05:00
Robby Findler
41f68af64a delay the construction of the compatible-closure grammar (the 'cross' thing)
until it is actually used. (This can make a big difference for large grammars
in models that don't actually use the compatible closure stuff.)
2011-10-30 22:36:53 -05:00
Ryan Culpepper
1dade8ee1d db: added support for postgresql arrays 2011-10-30 18:51:16 -06:00
Ryan Culpepper
e2e63684de data/order: added support for transparent structs, added tests 2011-10-30 18:51:16 -06:00
Robby Findler
e362888d6d add a menu item to put the interactions window beside/below the definitions window 2011-10-29 20:56:42 -05:00
Matthew Flatt
d9b9cbe16a fix space-safety bug in composable continuations 2011-10-29 09:37:12 -06:00