Commit Graph

19612 Commits

Author SHA1 Message Date
Robby Findler
eeb79e0e48 add more detail to the hopefully-help-me-debug log messages that drracket reports about the online check syntax bug 2011-08-05 21:39:35 -05:00
Robby Findler
a090a0e903 adjust the tabify and tabify-selection methods so they do nothing when the colorer is frozen or stopped
closes PR 12087
2011-08-05 21:39:31 -05:00
Robby Findler
7a001e3dd2 avoid using paren balancing stuff when the colorer is frozen (when user pushes f1)
closes PR 12088
2011-08-05 21:39:28 -05:00
Vincent St-Amour
6e6d16b6c9 Add documentation about using Racket with popular text editors. 2011-08-05 17:31:13 -04:00
Matthias Felleisen
e3c3418fae i hate git mv and rm 2011-08-05 12:50:49 -04:00
Matthias Felleisen
a61ecf1583 organized tests according to style file 2011-08-05 12:46:26 -04:00
Matthias Felleisen
a51e2494b6 bug fix: when the initial world is a final world, big-bang should use only the final draw handler -- if it exists 2011-08-05 12:46:25 -04:00
Matthias Felleisen
271f1c19ef added directory for tests expected to fail 2011-08-05 12:46:25 -04:00
Matthew Flatt
f7fd274e80 fix `defstruct' to use more long-name layout options 2011-08-05 10:03:38 -06:00
Matthew Flatt
ad7fddf878 add column-attributes' support and use it to fix struct' rendering 2011-08-05 10:03:38 -06:00
Matthew Flatt
b7afb3cf8f Scribble: support for "boxable" blocks in Latex output
For example, if you make a multi-column table with a
`racketblock' in each column, then the columns size
to fit the code --- instead of forcing the table width
to match the page width and forcing each column to take
an equal share width.
2011-08-05 10:03:38 -06:00
Matthew Flatt
4ac85de974 Scribble: style adjustments to deter code wrapping
For HTML, the style used in the output of `racketblock' now
disables line wrapping, and the Rkt text styles inherit
line-wrap behavior. This doesn't solve the general problem
of code overflowing the horizontal space, but it makes the
failure mode usefully better.

A new 'vertical-inset nested-flow style is used by
`defproc', `defform', etc. It has no effect for HTML,
but it introduces suitable vertical space for Latex output
(in case you want to use `defproc' in a SIGPLAN-format
paper, for example).
2011-08-05 10:03:37 -06:00
Matthew Flatt
378ca5ffc2 Scribble Latex: change 'boxed to use a blue vertical bar
... to the left of a definition, instead of a horizontal line
before the definition
2011-08-05 10:03:37 -06:00
Matthew Flatt
a2446dc019 fix `reverse' error message
Closes PR 12090
2011-08-05 10:03:37 -06:00
Robby Findler
c2fdf43189 add a file I shoudl have added in an earlier commit (for the drracket read-language docs) 2011-08-05 09:02:34 -07:00
Casey Klein
576272362b Adds define-judgment-form form 2011-08-05 07:19:23 -05:00
Casey Klein
8887ea2ef3 Refactors meta-function implementation further 2011-08-05 07:19:22 -05:00
Casey Klein
6e38233286 Deletes dead code 2011-08-05 07:19:22 -05:00
Casey Klein
7898018cad Factors out name-consistency check 2011-08-05 07:19:22 -05:00
Casey Klein
24dc005ff4 Removes special case for typesetting recursive calls
This case doesn't appear necessary, since LWs are constructed in an
expansion step that occurs after all of the meta-function names
(including the current one) are bound.
2011-08-05 07:19:21 -05:00
Casey Klein
c1198d0687 Makes tests executable from outside their directory 2011-08-05 07:19:21 -05:00
Casey Klein
3dc677d270 Factors out parsing of relation contracts 2011-08-05 07:19:21 -05:00
Casey Klein
c9c2bb8ad7 Refactors construction of meta-function and relation lws 2011-08-05 07:19:20 -05:00
Eli Barzilay
1a65678924 Add a note to the command-line help text, and describe the functionality
in case someone really wants to use this.
2011-08-05 02:44:57 -04:00
Eli Barzilay
d048954f04 Poll mirrors for the download web pages.
This is triggered by an environment variable that points at a file that
is used to cache polling results.  If the variable is not specified just
use all mirror links as usual.  This way, for random builds when people
try things out there is no problem, while the nightly builds (and my
manual builds when there are changes) do the right thing.

The file holds information about the polls, and verifies that the
download exists -- if not, the link is not shown.  If it is, then it
tries to get the size of the remote file (via HEAD or via FTP), and if
it doesn't match our download information, then drop it too.  If no size
informaion is available, include it, but re-poll after a few days.  Even
if the size matches, a re-poll will be done after a month, so stale
mirrors will not stick.
2011-08-05 02:05:59 -04:00
Eli Barzilay
5a7ddd6611 Add an optional path argument to `ftp-directory-list'. 2011-08-05 01:14:16 -04:00
Eli Barzilay
6a1336e75e Return a file size string when possible.
This takes the advice from
  http://files.stairways.com/other/ftp-list-specs-info.txt
further: search for the date by an explicit occurrence of a known month
name.  This means that we won't see files with bad names (they'd be
filtered out of the result), but the filtered out entries are ones that
would not be usable with `ftp-make-file-seconds'.

When the month is found, and the entry is a file, look for a number
preceding the month, and if found, return it as the file size string.
This is a minor change in the API.  (But it's probably better to either
revise it further, or eventually make it irrelevant by exposing the
interesting functionality via `net/url'.)
2011-08-05 01:14:16 -04:00
Eli Barzilay
4daaa84636 Removed a bunch of bytes->strings conversions since output does that anyway.
Also got rid of `filter-tcp-data', and just use `port->lines' instead.
2011-08-05 01:14:16 -04:00
Eli Barzilay
234015b34d Make `ftp-make-file-seconds' use a correct year instead of 2002.
This function was using 2002 when there's no year...  Updated it to use
the last occurrence of the guessed date, as described at
  http://files.stairways.com/other/ftp-list-specs-info.txt

This function still looks pretty bogus -- the RFC does *not* say
anything about the format of response to `LIST', so it's whatever
semi-random thing the server does.  (The above link looks like an
attempt to fix it, but I didn't see anything more official than that.)
From some looking around, it looks like ftp clients just try a bunch of
patterns against the text.  Add also warnings in the documentation about
this.
2011-08-05 01:14:16 -04:00
Eli Barzilay
99d48abcf3 Remove all mentions of `locale' from the docs.
It's utf-8 now, but that's the default in the docs anyway.
2011-08-05 01:14:16 -04:00
Eli Barzilay
ba48669ead Use UTF-8 and CRLF in the ftp client
RFC 2640 specifies that all transport strings are assumed UTF-8 if they
can be parsed as such.  To make this complete it should really send a
FEAT and check that the result has "UTF8", but it's kind of redundant
since there's not much else to do if it isn't.

Also, switch to a more correct line endings of CRLF when sending
messages to the server.
2011-08-05 01:14:16 -04:00
Eli Barzilay
1be5019978 Switch from the "du -h" output in "installers.txt" to plain byte counts. 2011-08-05 01:14:16 -04:00
Robby Findler
0c6bc11ac3 start a section for documenting the symbols that DrRacket passes to a language's get-info proc
add docs for a few of these, notably the syntax colorer
2011-08-04 21:40:29 -07:00
Tony Garnock-Jones
54285e2f92 Correct type on typed variant of module->namespace. 2011-08-04 13:34:14 -04:00
Matthew Flatt
941dacd966 gtk: set app name on startup
Closes PR 11896
Closes PR 11408
2011-08-04 09:27:05 -06:00
Matthew Flatt
71621bfd72 remove unsupported MDI styles and method
Closes PR 12042
2011-08-04 08:02:54 -06:00
Matthew Flatt
1bc8978ce8 cocoa: fix list-box scrolling
Closes PR 11948
2011-08-04 07:38:10 -06:00
Matthew Flatt
cdf2085703 gtk: fix frame position tracking
Closes PR 11931
2011-08-04 06:45:18 -06:00
Robby Findler
78bdcbd071 clear the online expansion error message as soon as the buffer is modified
(instead of waiting for the next attempt to fail/succeed)
2011-08-03 23:40:54 -07:00
Robby Findler
337dbf8540 try to use the given security guard when deleting files, too 2011-08-03 23:40:51 -07:00
Eli Barzilay
a6705c4f07 Typo fix 2011-08-03 22:00:22 -04:00
Vincent St-Amour
5d4e5ed393 Break long lines. 2011-08-03 17:39:16 -04:00
Vincent St-Amour
b124d68f40 Improve error message for calls to 'sort' when inference fails. 2011-08-03 17:39:15 -04:00
Vincent St-Amour
1a661256f8 Abstract printing of function types. 2011-08-03 17:39:14 -04:00
Jon Rafkind
4324a1a33d [honu] add colored lexer so drracket can color honu syntax appropriately 2011-08-03 14:37:26 -06:00
Jon Rafkind
adecdd5603 [honu] return a parse error if the lexer couldnt find any other matching regex 2011-08-03 14:37:26 -06:00
Eli Barzilay
89dfe3dc50 v5.1.2 stuff 2011-08-03 15:23:14 -04:00
Robby Findler
595272d19a use a (dark) red italic font for online check syntax errors 2011-08-03 13:39:58 -05:00
Matthias Felleisen
7de873f431 added syntax property to universe 'disappeared-use so that keywords in world clauses point to origin and have docs 2011-08-03 14:29:33 -04:00
Matthias Felleisen
c938fdf419 added syntax property 'disappeared-use so that keywords in world clauses point to origin and have docs 2011-08-03 14:25:29 -04:00
Matthias Felleisen
ac919568a6 fix doc bug, with 50386760dd this truly; Closes PR 10559 2011-08-03 11:42:11 -04:00
Matthias Felleisen
50386760dd added launch-many-worlds/proc; Closes 10559 2011-08-03 11:20:05 -04:00
Robby Findler
29a843ac37 get rid of a broken attempt to optimize the 20,000-ft overview refreshing
closes PR 12083
2011-08-03 09:58:23 -05:00
Matthew Flatt
113f889592 correct correction 2011-08-03 08:46:33 -06:00
Matthew Flatt
22c8cdec0b another more doc correction
(should have been part of the previous commit)
2011-08-03 08:40:55 -06:00
Matthew Flatt
6634332458 doc repairs
Thanks to Yin Wang
2011-08-03 08:33:04 -06:00
Matthew Flatt
3a51e80751 fix rendering of transparent structures 2011-08-03 08:14:57 -06:00
Matthew Flatt
37c43c23d6 gtk: fix refresh freeze/thaw and reparent interaction
Closes PR 11947
2011-08-02 20:00:56 -06:00
Matthew Flatt
9a14b47ccc doc typo
Closes PR 12006
2011-08-02 17:15:23 -06:00
Matthew Flatt
3ffa731f80 fix docs
Closes PR 12011
2011-08-02 17:07:39 -06:00
Matthew Flatt
3b8d00029e fix `namespace-attach-module{-declaration}' problem
Closes PR 12048
2011-08-02 17:06:12 -06:00
Robby Findler
b972a0940d Added online expansion and compilation of files
being edited in DrRacket (via places)

Added an API to let tools have access to that
  information (and compute more stuff)

Used that to make an online version of Check Syntax
  which led to a separately callable Check Syntax API.
2011-08-02 16:28:16 -05:00
Robby Findler
33cf3a167b add test case for PR 12084, clean up exception predicates in test suite a little 2011-08-02 16:28:13 -05:00
Robby Findler
32becaf860 added a #:security-guard argument to:
managed-compile-zo
  make-caching-managed-compile-zo
  make-compilation-manager-load/use-compiled-handler
that gets used when compiled files, dep files, and compiled/ directories are created.
2011-08-02 16:28:10 -05:00
Eli Barzilay
63af93f1b4 Minor typo in macro, closes PR12084.
(Committed for Robby)
2011-08-02 16:56:02 -04:00
Eli Barzilay
a748b35f35 Updated DrRacket images 2011-08-02 16:56:02 -04:00
Eli Barzilay
1caa28df28 Fix `unstable/time' & xrepl use. 2011-08-02 16:56:02 -04:00
Eli Barzilay
68fce6d9db Revert "Have DrDr keep ignoring the random seeds."
(Since DrDr never ignored that text.)

This reverts commit e972c0c392.
2011-08-02 16:56:02 -04:00
Eli Barzilay
e52e7defae Much improved `wrapped-output'. 2011-08-02 16:56:02 -04:00
Vincent St-Amour
3f40742968 Remove bash completion for commands we don't provide. 2011-08-02 15:14:07 -04:00
Matthew Flatt
fba1777b8a fix contract 2011-08-02 06:48:54 -06:00
Matthias Felleisen
8e176bc275 added documentation for Carl's ... in the student languages; otherwise 2e dots in templates look ugly 2011-08-01 20:13:20 -04:00
Matthew Flatt
7977d1817e expose the scribble' command-line driver as racket/render' 2011-08-01 14:40:49 -06:00
Matthew Flatt
86f4e5912b adjust `scriblib/figure' CSS for more consistent spacing 2011-08-01 13:14:43 -06:00
Matthew Flatt
8d3aa69e9d fix mismatch between make-base-eval' and make-base-eval-factory' 2011-08-01 04:01:40 -06:00
Matthew Flatt
c22c8b0846 remove incorrect comment 2011-07-31 06:28:12 -06:00
Matthew Flatt
2146a020c0 another error-message fix 2011-07-31 05:09:49 -06:00
Matthew Flatt
8a00308ad5 add lib' to setup/infotab' exports
and fix up documentation, which didn't mentioned the allowed
`require' form
2011-07-31 04:43:24 -06:00
Matthew Flatt
920867287b fix for/list' to use the new reverse' 2011-07-31 04:43:24 -06:00
Matthew Flatt
ec27cbfd90 fix problems related to futures and is-list flags on pairs
Although a future thread used an atomic compare-and-swap to
set "is a list" or "not a list" flag on pairs via the
JIT-implemented `list?', the hashing function in the runtime
thread did not; as a result, it might be possible to lose
a hash code due to cache inconsistency (although I'm not
sure it's actually possible, and I couldn't trigger a problem
with a test). Most of the changes are related to using
an atomic compare-and-swap when setting a hash code, as
well as clean-ups to related code. Processor-count tests
avoid using atomic compare-and-swap on uniprocessors, which
might not support the relevant machine instructions.

As significantly, the compare-and-swap operation for the
JIT-implemented `list?' did not actually set flags on
a pair that has a hash code. This could lead to `list?'
tests that were not constant time (but only if the relevant
pair's `eq?' hash code had been used previously).
2011-07-31 04:43:24 -06:00
Eli Barzilay
b644e335d9 Fix the docs for `call-in-sandbox-context'.
Closes PR 12081.
2011-07-30 09:33:24 -04:00
Robby Findler
a672704e5e add support for thread-safe compilation to compiler/cm (and use it in drracket) 2011-07-30 09:01:46 -04:00
Robby Findler
085b497b1c tidy up parallel build api docs 2011-07-30 09:01:44 -04:00
Jon Rafkind
7f3e434cb5 [honu] allow nested block comments 2011-07-29 18:42:55 -06:00
Jon Rafkind
cd5d0ee9a3 [honu] fix escapes in string literals 2011-07-29 16:59:48 -06:00
Jon Rafkind
7532515110 [honu] use regular expressions to lex comments 2011-07-29 16:59:48 -06:00
Jon Rafkind
cd62f1983f show line/column information for parsing errors 2011-07-29 16:59:48 -06:00
Vincent St-Amour
5f4c577d5b Get rid of pseudo-syntax. 2011-07-29 18:31:10 -04:00
Vincent St-Amour
4164b04324 Remove serialization. 2011-07-29 18:23:16 -04:00
Vincent St-Amour
0ff3aafed6 Speed up Performance Report on unsaved files. 2011-07-29 18:23:16 -04:00
Vincent St-Amour
191f7a5f17 Add an early failure case for portname matching. 2011-07-29 18:23:16 -04:00
Vincent St-Amour
30ea1afc58 Fix Performance Report on unsaved files. 2011-07-29 18:23:15 -04:00
Vincent St-Amour
aa235ac959 Use `call-with-sandbox-context'.
This should make it possible to avoid serialization.
2011-07-29 18:23:15 -04:00
Vincent St-Amour
7775779e6a Do expansion inside a sandbox. 2011-07-29 18:23:14 -04:00
Vincent St-Amour
ea1ae29e0f Have log entries carry pseudo-syntax instead of syntax.
Unlike syntax, pseudo-syntax is serializable, and it only carries the
information that Performance Report needs. Serializability is
necessary to be able to expand the program inside a sandbox and get
log entries out.
2011-07-29 18:23:14 -04:00
Vincent St-Amour
0951ad5b1b Add types for #%kernel's memq, memv and member. 2011-07-29 13:43:11 -04:00
Vincent St-Amour
88a3d93e9e Add a type for #%kernel's reverse.
Present in the expansion of for/list.
2011-07-29 12:54:29 -04:00
Vincent St-Amour
968f3b0905 Restore proper error handling. 2011-07-29 12:54:29 -04:00
Vincent St-Amour
d794d33b5e Go back to previous expansion strategy.
The DrRacket expansion functions don't offer anything more than plain
expand + a sandbox, and using them made the code less readable.

This reverts commit 96eee2b317.
This reverts commit 19ce4d44a5.
This reverts commit 58fbd8ba75.
This reverts commit b305ea9c62.
This reverts commit 860feb30ae.
2011-07-29 12:54:29 -04:00
Vincent St-Amour
5b22dfb6b0 Add for*/sum: and for*/product: to TR.
These currently don't play nice with inference, so they only work in
limited cases.
2011-07-29 12:54:29 -04:00
Vincent St-Amour
6a8011854b Add for/sum: and for/product: to TR. 2011-07-29 12:54:29 -04:00
Vincent St-Amour
5521e3ad5e Lock the top-level editor of the popup. 2011-07-29 12:54:28 -04:00
Eli Barzilay
7585edbcb6 xrepl improvments:
* a single function to set up all environment parameters.

* improve `getarg's treatment of default thunk

* Add an error display handler that doesn't show the context and instead
  add a ,bt command to show it.
2011-07-29 07:29:29 -04:00
John Clements
0bcff68226 minor testing changes 2011-07-28 22:51:00 -04:00
John Clements
e178dbc4f2 unimportant tabbing fixup 2011-07-28 22:51:00 -04:00
Robby Findler
a26eb340c8 fix the parent of the 'can close this window?' messages for tabs that aren't the frontmost tab 2011-07-27 07:39:48 -05:00
Matthew Flatt
b78a1a8355 remove abbreviations for for/sum' and for/product' 2011-07-27 07:55:20 +01:00
Matthew Flatt
fae6e273ed lexer tweak to get named procedure 2011-07-27 07:55:18 +01:00
Matthew Flatt
7123996b30 change `eval-jit-enabled' initialization
to reflect whether JIT compilation is supported by the build
(i.e., set it to #f initially when the JIT is not supported)
2011-07-27 07:55:05 +01:00
Matthew Flatt
9ace663021 Racket-implemented reverse', member', memv', memq'
With the JIT, the `reverse' function is significantly faster,
while the `member' variants do not really change; the main
benefit is that the operations play well with futures.

The C implementation is still used when the JIT is unavailable,
since the Racket implementations can be much slower in
interpreted mode.
2011-07-27 05:47:46 +01:00
Matthew Flatt
f1160da419 add for/sum', for/product', etc. 2011-07-27 05:47:46 +01:00
Matthew Flatt
c6f1178be3 fix an error message 2011-07-27 05:47:46 +01:00
Robby Findler
344168690e likely fix for bug on mailing list that Matthias reported
("drracket fails to start up properly" Tue, Jul 26, 2011 at 2:12 PM)

  et fails to start up properly
2011-07-26 21:05:49 -05:00
Jon Rafkind
1e4c9b4ec3 use new reader for #lang honu 2011-07-26 17:41:07 -06:00
Jon Rafkind
ae6a69b8eb make syntax objects 2011-07-26 17:41:07 -06:00
Jon Rafkind
a39cd8773a refactor 2011-07-26 17:41:07 -06:00
Jon Rafkind
df9b8db14a parse sub-trees 2011-07-26 17:41:06 -06:00
Jon Rafkind
1f9b9b4c51 parse tokens into a tree 2011-07-26 17:41:06 -06:00
Jon Rafkind
1978002312 handle end of line comments 2011-07-26 12:31:45 -04:00
Jon Rafkind
f941e56f71 lex identifiers and delimiters 2011-07-26 12:31:45 -04:00
Jon Rafkind
4e8e18463b add lexer for honu 2011-07-26 12:31:44 -04:00
Jay McCarthy
99fd3546be Adding serialization of theories 2011-07-26 08:22:19 -04:00
Eli Barzilay
61f628f2c6 fix error reporting in `reencode-output-port'
Closes PR 12077
2011-07-25 23:46:16 -04:00
Robby Findler
eba9c56d8c adjust the control-s keybinding so that it behaves like the menu shortcut
keep the old keybinding on esc;% (only under linux)
2011-07-25 13:40:15 -04:00
Matthew Flatt
e01ee43300 fix error reporting in `reencode-input-port'
Closes PR 12076
2011-07-25 13:11:05 -04:00
Matthew Flatt
73b16c8578 don't constant-fold an fx operation if the result is non-fx
In fact, the result must be an fx on all platforms, since
compilation should be platform-independent.
2011-07-25 11:30:23 -04:00
Matthew Flatt
f13a669d05 add 'no-focus style to `editor-canvas%' 2011-07-25 11:30:23 -04:00
Matthew Flatt
69f7e912d2 cocoa: fix problems with sheets and focus
Avoids a problem with the file dialog when a sheet is the
current "main window" (Cocoa terminology); when the file
dialog is closed, both the sheet owner and the sheet
become the main window (in that order), so that when the
sheet goes away, the sheet owner doesn't become the main
window as it should. It seems like a Cocoa problem. The
workaround is to hook into the callback that says a
sheet went away.

Closes PR 12073
2011-07-25 11:30:22 -04:00
Robby Findler
b0ea1efc9e whoops^2 (both this and the previous commit: a refactoring put the wrong default argument in a function's parameter list) 2011-07-25 06:28:00 -04:00
Robby Findler
43a85acc8f oops 2011-07-25 00:08:18 -04:00
Robby Findler
01fe366e8c fix standard-fish when the mouth is to the right 2011-07-24 23:26:14 -04:00
Robby Findler
7d06ae80f4 do a better job putting the right info into the struct id for provide/contract's struct clauses
closes PR 12053
2011-07-24 23:25:39 -04:00
Robby Findler
899b339a16 improved the expansion of struct/c 2011-07-24 23:24:20 -04:00
Stephen Bloch
764f356fdc Added some tests for map-image/extra and build-image/extra. 2011-07-24 21:50:39 -04:00
Stephen Bloch
9a24e66df0 Fixed an off-by-one bug in "myflip", an example for build-image. Now it passes its tests :-) 2011-07-24 21:50:38 -04:00
Stephen Bloch
ab01d563ca Changed error messages in test case to match corrected error messages in
2htdp.
2011-07-24 21:50:38 -04:00
Jay McCarthy
3fca28c68f Adding documentation for servlet testing system 2011-07-24 16:59:00 -04:00
Jay McCarthy
6e59cbf1d7 Adding documentation and tests for xml/path 2011-07-24 16:58:59 -04:00
Jay McCarthy
75631c6f2a Repairing tests 2011-07-24 16:58:59 -04:00
Jay McCarthy
bc5846d40e Small typo in error usage 2011-07-24 16:58:59 -04:00
Jay McCarthy
df0e35b213 Adding the basics of the servlet testing library, but then discovered a weird error, and took a sidetrack to catch it. I'm making a commit to be able see if there were any real problems or if it is just broken tests 2011-07-24 16:58:59 -04:00
Stephen Chang
7e933ee8a4 fix stepper test-engine unclosed input-port (in windows) problem 2011-07-24 12:19:05 -04:00
Stephen Chang
8956364387 change recon-val in stepper to use render-to-sexpr for non-lazy lists 2011-07-24 12:18:09 -04:00
Matthew Flatt
42f41d868a fix compiler/zo-parse for sequence splice
Merge to 5.1.2
2011-07-22 22:19:58 -04:00
Vincent St-Amour
c085f51aa2 Fix for empty case-lambdas. 2011-07-22 17:24:14 -04:00
Vincent St-Amour
df0ae80a7f Display ellipses even if the :print-type message was already displayed. 2011-07-22 17:07:49 -04:00
Vincent St-Amour
93787f6215 Change :print-type message. 2011-07-22 17:05:03 -04:00
Vincent St-Amour
dcff8854fb Only suggest using :print-type once per REPL session. 2011-07-22 17:03:43 -04:00
Vincent St-Amour
3ba93cb165 Add a heuristic for case-lambda type simplification.
Makes simplification _much_ faster for types that have a single most
general case. That includes most numeric functions.
2011-07-22 16:55:21 -04:00
Vincent St-Amour
86490943a3 Remove stale comment. 2011-07-22 16:46:10 -04:00
Vincent St-Amour
02b76d7741 Omit a redundant pass. 2011-07-22 16:40:11 -04:00
Vincent St-Amour
84931448b5 Flip order of type simplification passes. 2011-07-22 16:38:15 -04:00
Vincent St-Amour
5b6d0ae167 Refactoring. 2011-07-22 16:22:36 -04:00
Vincent St-Amour
f7be12d313 Typecheck pregexp literals correctly. 2011-07-22 16:22:36 -04:00
Vincent St-Amour
27cd6aca6f Use set coverage for union printing. 2011-07-22 16:22:36 -04:00
Jon Rafkind
23e907aa5c add printf. recognize strings as atoms 2011-07-22 14:43:45 -04:00
Jon Rafkind
d4ea3b5d79 parse multiple call arguments 2011-07-22 14:43:45 -04:00
Vincent St-Amour
10e79ba2ec Clean up printing of unions that involve numeric types. 2011-07-22 11:41:27 -04:00
Vincent St-Amour
96eee2b317 Refactor. 2011-07-22 11:41:27 -04:00
Matthias Felleisen
ed7f16c872 fixed a totally misleading error message in big-bang; MUST GO INTO RELEASE 2011-07-22 10:34:26 -04:00
Matthew Flatt
8711aa6c5d work around win64 drawing problem
Merge to 5.1.2
2011-07-22 07:51:01 -06:00
Robby Findler
56b82ba83c fix the png conversion code for 2htdp/image images
closes PR 12061
  please merge to the release branch
2011-07-22 08:09:17 -05:00
Stevie Strickland
01396784c9 Fix set/c to conform to hash/c-like restrictions.
Since sets are implemented using the elements as the domain of a hash table,
the following must be true:
 * element contracts for (seteq ...) must be flat
 * element contracts for (seteqv ...) must be flat
 * element contracts for (set ...) must be chaperones, and the resulting
   contract is a chaperone contract

Also, change higher-order set/c contracts to be chaperone contracts
due to the new restrictions.
2011-07-21 18:49:06 -04:00
Vincent St-Amour
19ce4d44a5 Don't block DrRacket if expansion exits abnormally. 2011-07-21 17:14:05 -04:00
Vincent St-Amour
58fbd8ba75 Report errors during expansion in the interactions window, not as internal errors. 2011-07-21 17:06:04 -04:00
Vincent St-Amour
b305ea9c62 Use DrRacket's program-expansion mechanisms instead of directly calling expand. 2011-07-21 17:06:03 -04:00
Vincent St-Amour
860feb30ae Unitize performance report, to get access to some DrRacket internals. 2011-07-21 17:06:03 -04:00
Vincent St-Amour
30146b7b8c Expose more of the TR opt logging. 2011-07-21 17:06:03 -04:00
Vincent St-Amour
73140544ce Clean up. 2011-07-21 17:06:03 -04:00
Vincent St-Amour
b068e4a53b Add a lower-level interface to unstable/logging. 2011-07-21 17:06:03 -04:00
Vincent St-Amour
fe58048844 Remove stale comment. 2011-07-21 17:06:03 -04:00
Vincent St-Amour
fae966146f Handle desired types being outside of the function's range. 2011-07-21 17:06:03 -04:00
Vincent St-Amour
59027c6b40 Moved handling of empty pruned case-lambdas. 2011-07-21 17:06:03 -04:00
Vincent St-Amour
c0d0211ebb Add a function to query how to get a given return type from a function. 2011-07-21 17:06:03 -04:00
Vincent St-Amour
51b98138d5 Fix :print-type to use tc-setup. 2011-07-21 17:06:03 -04:00
Vincent St-Amour
a71db7c15c Document how to start a TR REPL from the command line. 2011-07-21 17:06:03 -04:00
Vincent St-Amour
4735ad3523 Refactoring. 2011-07-21 17:06:03 -04:00
Vincent St-Amour
70e1d63bed Add a function to print whole types.
With this, it's possible to get more information than the simplified
types shown at the REPL. The types are as unwieldy as ever, but you
have to ask for them explicitly.

This is not an adequate long-term solution, and will be replaced by a
"Type Explorer" tool.
2011-07-21 17:06:02 -04:00
Vincent St-Amour
1a66f60eb4 Don't print full function intersection types at the REPL, if possible. 2011-07-21 17:06:02 -04:00
Robby Findler
754b4df5e8 make sure the language-specific toolbar buttons are put into the toolbar in the right order initially
closes PR 12068
2011-07-21 14:15:11 -05:00
Robby Findler
1c2f4ab05c add an exit handler setting for the drracket:eval:* functions
(and then adjust the drracket-repl exit handler to take
   precedence over that one)
 closes PR 12071
2011-07-21 13:34:54 -05:00
Robby Findler
7820db9f8d missed a spot in the addition of chaperone info for opt/c 2011-07-21 09:38:22 -05:00
Jon Rafkind
1b914ead61 add optional val before functions and arguments 2011-07-20 19:22:30 -06:00
Jon Rafkind
292512221e function == lambda. add new syntax for defining functions 2011-07-20 19:22:30 -06:00
Matthew Flatt
8504996862 fix `raco ctool -e' for syntax taints
Merge to 5.1.2
2011-07-20 14:09:38 -06:00
Sam Tobin-Hochstadt
7a763a2da8 Fix types of kernel struct constructors to include parent fields.
Merge to 5.1.2.
2011-07-20 15:19:53 -04:00
Matthias Felleisen
59f0732fa0 fixed docs for >=; Closes PR 12066 2011-07-20 15:20:22 -04:00
Robby Findler
9595145d79 adjust the teaching languages so they print images specially.
I picked "#<image>" not because I think it is a good way to print,
  but just so that there is something there to be easily changed later,
  when someone who has an opinion decides to change it.
2011-07-19 16:17:06 -05:00
Robby Findler
2a78ea9723 change autowrapping preference default
please merge to release branch
2011-07-19 16:17:04 -05:00
Robby Findler
230f18a366 add some detail about bullet and o-bullet to slideshow docs
closes PR 12055
2011-07-19 16:17:02 -05:00
Robby Findler
3fa2cc0d67 adjust the size-pref frame mixin to track the position of the frame in a multi-monitor sensitive way
(also fix various issues with that code and unify the framework and drracket way of doing this)
2011-07-19 16:16:50 -05:00
Sam Tobin-Hochstadt
f67d46cd2f Pass the correct number of arguments to `display-size'. Closes PR 12062. 2011-07-19 17:04:51 -04:00
Eli Barzilay
1b86ff641a Typo in comment 2011-07-19 17:04:42 -04:00
Sam Tobin-Hochstadt
8a608ed840 Conditionalize use of contract. 2011-07-19 16:47:13 -04:00
Eric Dobson
e07ce478af Switched name field in struct type to identifier. Closes PR 11728.
Closes PR 11998. Closes PR11859.
2011-07-19 16:47:13 -04:00
Eric Dobson
81b1178a17 Fixed TR contracts to be more/less strict 2011-07-19 16:47:13 -04:00
Eric Dobson
a7f0f7591d Fixed types for path operations. Closes PR12057. 2011-07-19 16:47:13 -04:00
Eli Barzilay
8109299ec8 Improve macro stepper output, and some more ,stx outputs. 2011-07-19 16:39:15 -04:00
Eli Barzilay
f5e53de4d9 XREPL tests.
Not too much, but already tests large parts of sensitive code.  Caught a
bug where ,top would use (enter! #f) but enter grabbed the wrong
namespace since it was instantiated in the wrong namespace.
2011-07-19 16:39:15 -04:00
Vincent St-Amour
419398ce1a Fix test to not be dependent on floating-point printing. 2011-07-19 15:19:17 -04:00
Vincent St-Amour
29882d8fa1 Remove redundant precision-loss messages. 2011-07-19 15:19:17 -04:00
Guillaume Marceau
2ae0376476 Fixes the (cons an image empty) error message 2011-07-19 13:01:07 -04:00
Jon Rafkind
a7768a13a3 use #%module-begin for honu modules so top level expressions get printed
macros return whether they terminate parsing
2011-07-19 11:00:32 -06:00
Matthew Flatt
255549c8c8 win32: fix is-maximized' in frame%'
Merge to 5.1.2
2011-07-19 08:55:33 -06:00
Matthew Flatt
6d073e0cf7 fix `get-slides-as-picts' to record margin with picts
Closes PR 12059
2011-07-19 08:45:11 -06:00
Matthew Flatt
c8b3763359 cocoa: fix image paste
Closes PR 12028

 Merge to 5.1.2
2011-07-19 08:12:39 -06:00
Stevie Strickland
6bf13ee2dd For lack of a colon, unit tests were failed. 2011-07-19 08:25:42 -04:00
Carl Eastlund
302cbb5275 Fixed a macro stepper bug: can't use zero? on syntax span, as it can be #f.
Please include in the upcoming release.
2011-07-19 03:07:53 -04:00
Matthew Flatt
23a2a075ea add get-display-count' and #:screen argument to get-display-size'
and to `get-display-left-top-inset'

 add -M <monitor> option to Slideshow
2011-07-18 20:15:15 -06:00
Matthew Flatt
b096fb7503 gtk: `get-display-size' reports main monitor only
and the same for `get-display-left-top-inset'
2011-07-18 19:59:05 -06:00
Matthew Flatt
25329c203c typo 2011-07-18 19:59:05 -06:00
Sam Tobin-Hochstadt
42b79dd489 Fix Typed Racket handling of exception handling with multiple return values. 2011-07-18 17:42:28 -04:00
Sam Tobin-Hochstadt
23c47728c5 Strengthen contracts to require syntax lists. 2011-07-18 17:41:17 -04:00
Sam Tobin-Hochstadt
25cdd87405 Fix internal error message. 2011-07-18 17:38:40 -04:00
Eli Barzilay
09c8880ea0 Fix reading a 'line argument: always succeeds and returns the line as-is. 2011-07-18 15:39:18 -04:00
Eli Barzilay
261288c394 Add $F for ,sh commands. 2011-07-18 15:34:31 -04:00
Eli Barzilay
3c1e624916 Add an example for extending xrepl, the very stupid way.
For the record, a way to do this permanently is to add something like
this to your ~/.racketrc:

  (eval '(begin
           (saved-values-char #\~)
           (defcommand eli "stuff" "eli says" ["Make eli say stuff"]
             (printf "Eli says: ~a\n" (getarg 'line)))
           (defcommand er #f "alias for errortrace" ["Runs errortrace"]
             (run-command 'errortrace)))
        (module->namespace 'xrepl/xrepl))

But this is too stupid even for a section that has "Hacking" in its title.

There should definitely be an organized way to do this.  This will
require several things:

* A decent API for doing these things for user code.  (So the above
  `eval' turns to a `require' for your file which uses this API.)  This
  goes beyond just documenting what's in there -- there are issues to
  resolve like some argument reading protocol (separating the
  declaration of argument types from the command implementation code),
  so a new command can call another with arguments that it reads.

* There should also be some ,set command for customization
  options (reading and changing) and code to use the preference file for
  doing that.  I almost started to do this, but currently there are only
  three values that this could apply to (`saved-values-char', `-number',
  and `wrap-column' (which might be better to dump and use
  `pretty-print-columns' instead)).

* Also, it might be nice to have some command to do the same for simple
  aliases.  (But this might get into shady parsing issues if it's more
  than just "I want `foo' to be an alias for an existing `bar' command".)
2011-07-18 15:23:09 -04:00
Eli Barzilay
5fb8390609 Hook XREPL into a few places where readline' and enter!' are mentioned. 2011-07-18 14:25:10 -04:00
Eli Barzilay
d7c14cbd3f XREPL documentation. 2011-07-18 14:25:10 -04:00
Eli Barzilay
c57ab7b4fc Lots of improvements:
* Rename `make-command-{reader,evaluator}' ->  `make-xrepl-{reader,evaluator}'

* Move the commented-out ,meta block to a better place

* Protect the prompt computation against errors, to avoid infinite
  exception output if an exception is raised.

* Add ",switch ?" to query namespaces, and ",switch - <name>" to remove
  one.  Forbid resetting the default initial `*' namespace.

* Clarify that multiple arguments can be sent to ,stx and fix it to
  display the current syntax when there are no arguments.

* Various minor typos and improvements.

* Restore the use-last-arguments-by-default functionality of ,rr

* Re-do argument reading to make it easier to have a default
  argument (as in ,enter and ,edit).
2011-07-18 14:25:10 -04:00
Eli Barzilay
50b74c453f Typo in the `errortrace' language description. 2011-07-18 14:25:10 -04:00
Eli Barzilay
45394bb7b6 Use (banner) instead of a fixed "Welcome to Racket" in the More tutorial
and in the guide.

Also, add a tag to the readline "License Issues" to be able to link to
it from the xrepl docs.
2011-07-18 14:25:10 -04:00
Eli Barzilay
3f8bb7a453 Rename prompt-shown' -> zero-column!', and use it only in the
non-readline reader.  Use line reading for ,install!.
2011-07-18 14:25:10 -04:00
Jon Rafkind
3a1dde7f14 parse arguments. provide basic math operations 2011-07-18 11:28:34 -06:00
Stephen Chang
7eedae8f69 fix lazy stepper test - lazy-cond1 2011-07-18 12:34:14 -04:00
Vincent St-Amour
4c5bb1ddaf Change a TR doc example to take two arguments.
Otherwise, the docs don't have any examples for the syntax of
multi-argument functions that doesn't involve polydots.
2011-07-18 11:53:39 -04:00
Ryan Culpepper
7e1627679c unstable/gui/blur: added box blur option 2011-07-18 09:01:26 -06:00
Ryan Culpepper
5cf2767e7a macro-stepper: update tests 2011-07-18 09:01:26 -06:00
Ryan Culpepper
0f0dd65d83 macro-stepper: update for new letrec-syntaxes+values expansion 2011-07-18 09:01:26 -06:00
Ryan Culpepper
61ab93b87e added unstable/future 2011-07-18 09:01:26 -06:00
Ryan Culpepper
bb5bcf2ae1 added unstable/gui/blur 2011-07-18 09:01:26 -06:00
Ryan Culpepper
deb8c222d8 unstable/gui/ppict: add ppict-add* 2011-07-18 09:01:26 -06:00
Robby Findler
c06db14bfd improved opt/c so that it knows about chaperones 2011-07-18 07:55:55 -05:00
Robby Findler
a0e08514b1 fixed up contract test suite 2011-07-18 07:55:54 -05:00
Robby Findler
2b99c86321 fix missing argument to format
please merge to release branch
2011-07-18 07:55:54 -05:00
Guillaume Marceau
adf965e92a Undoes the 'produces -> return' part of commit c31d352f, keeping the 'changes -> mutates' change and the assorted bug fixes it contained. 2011-07-17 16:48:12 -04:00
Matthew Flatt
d8d762517f fix `get-module-path' and associated exception
Closes PR 12029
2011-07-17 08:14:33 -06:00
Matthew Flatt
67936b7a66 fix `enter!' to set module source name
Merge to 5.1.2
2011-07-17 08:14:33 -06:00
Robby Findler
2308701476 add a test case for the contract system error (and adjust the fix a little bit) 2011-07-16 22:52:32 -05:00
Matthew Flatt
92671ab3ea fix source name of built-in modules
Closes PR 12051

 Merge to 5.1.2
2011-07-16 21:42:57 -06:00
Matthew Flatt
67272f114b belated test case for cm ".dep"-read fix
Merge to 5.1.2
2011-07-16 21:25:56 -06:00
Matthew Flatt
701c9666d6 fix printing of namespace with places enabled
This commit goes with 62acb298bd.
2011-07-16 21:17:10 -06:00
Matthew Flatt
ab0e78122c revert unnecessary refactoring
--- intended to avoid creating a dependency that already exists

 Merge 5.1.2
2011-07-16 21:02:41 -06:00
Matthew Flatt
fc914dfac8 restore deinprogramm reader module suffix 2011-07-16 20:15:15 -06:00
Matthew Flatt
bd10ccc1b7 don't compile test file with image constant 2011-07-16 19:29:35 -06:00
Matthew Flatt
7af5d490ad fix cm to configure reader when reading .dep files
Merge to 5.1.2
2011-07-16 19:29:28 -06:00
Casey Klein
a2bc43eabd Fixes error for functions that return wrong number of values 2011-07-16 18:19:22 -05:00
Casey Klein
6ff5dc779b Fixes keyword tests 2011-07-16 18:19:22 -05:00
Matthew Flatt
5edc0c70af change GDK_POINTER_MOTION_HINT_MASK back to GDK_POINTER_MOTION_MASK
because HINT doesn't works as expected, and the problem it
 seemed to solve at one time (slow resize in DrRacket) seems
 to have been fixed some other way. GDK_MOUSE_MOTION_MASK
 isn't needed, since GDK_POINTER_MOTION_MASK covers it.

 Merge to 5.1.2
2011-07-16 14:30:08 -06:00
Matthew Flatt
5e0d6e0dee fix void result to match contract
Merge to 5.1.2 if Robby agrees
2011-07-16 14:30:08 -06:00
Matthias Felleisen
59499b84bd optional limit for number of ticks 2011-07-16 13:59:55 -04:00
Robby Findler
75c1aa5f4d adding teaching language executable creation test case 2011-07-16 09:38:45 -05:00
Matthew Flatt
4307bcace5 fix taint behavior of some syntax operations
`syntax-local-get-shadower' and
 `syntax-make-delta-introducer' both taint their
 results when a given syntax object is tainted
2011-07-16 08:03:54 -06:00
Matthew Flatt
e57b7b9e54 limit build parallelism to 4 on a 32-bit machine
Merge to 5.1.2
2011-07-16 08:03:53 -06:00
Mike Sperber
429c3b0d93 Synch German string constants with latest. 2011-07-16 13:19:00 +02:00
Robby Findler
e4e1792bbe made the htdp lang's executable creation code use the modules that
string->lib-path asks it to use, but for both GUI and non-GUI mode
also refactored that code to move it into a separate file so
  eventually can add a drdr test for it
2011-07-15 21:25:16 -05:00
Robby Findler
9e0a866969 typo 2011-07-15 21:25:14 -05:00
Robby Findler
7993d38e35 fix a bug in the arity checking for contracts 2011-07-15 21:25:10 -05:00
Matthew Flatt
072003f2f4 fix `#lang errortrace'
Since `#lang errortrace' annotates the result of `local-expand',
 it needs to handle `letrec-syntaxes+values', as well as allowing
 `#%expression' in more places.

 This change relies on a change to `kernel-syntax-case'. This
 isn't a new bug, and it's ok to not include it in 5.1.2
 (especially since the `kernel-syntax-case' change should not be
 merged).
2011-07-15 20:17:44 -06:00
Matthew Flatt
0f61d62ea1 fix errortrace
The `eq?'ness of syntax objects used to reconstruct the result
 was broken by disarming. The solution is to reconstruct based
 on the disarmed syntax object instead of the original.

 Merge to 5.1.2.
2011-07-15 20:17:44 -06:00
Matthew Flatt
f40dc87c29 add letrec-syntaxes+values' to kernel-syntax-case'
Do not merge to 5.1.2; the implications for backward
 compatibility are not clear to me.
2011-07-15 20:16:58 -06:00
Matthew Flatt
d718a2b128 fix docs to clarify that `#%expression' appears from local-expand 2011-07-15 20:16:45 -06:00
Matthew Flatt
bed64be873 allow larger font sizes --- up to 1024
It's not clear that any limit is still needed, and probably
 font sizes should be liberalized to reals instead of
 integers (but I don't want to spend that kind of time
 right now).
2011-07-15 19:43:47 -06:00
Matthew Flatt
f288c694db clarification 2011-07-15 19:43:47 -06:00
Ryan Culpepper
91a2e283a6 macro-stepper: disable taint display until correct
Merge to release branch
2011-07-15 14:31:33 -06:00
Kevin Tew
bf4a8ad5c4 create hash codes for place shared objects 2011-07-15 13:06:07 -06:00
Vincent St-Amour
ce32003de2 Make Performance Report work on unsaved editors. 2011-07-15 15:04:58 -04:00
Vincent St-Amour
e07de3947b Have Performance Report work on multi-file programs. 2011-07-15 15:04:58 -04:00
Vincent St-Amour
47f0a36553 Fix when there are no reports in a file. 2011-07-15 15:04:58 -04:00
Vincent St-Amour
5d4d9f2636 Add test for missed opts in multi-file programs. 2011-07-15 15:04:58 -04:00
Vincent St-Amour
f632aa52dd Document Performance Report. 2011-07-15 15:04:58 -04:00
Vincent St-Amour
db9d51fef7 Change the structure of the "extra precision" missed optimizations.
Avoids reports that are almost duplicates.
2011-07-15 15:04:58 -04:00
Vincent St-Amour
c1e7d07586 Fix merging of report-entries. 2011-07-15 15:04:58 -04:00
Vincent St-Amour
93e1e6d710 Fix display of syntax. 2011-07-15 15:04:57 -04:00
Vincent St-Amour
218fdcceb4 Fix highlight removal. 2011-07-15 15:04:57 -04:00
Vincent St-Amour
76d91b4e3d Don't highlight irritants in the main editor. Leads to hard to understand red blobs. 2011-07-15 15:04:57 -04:00
Vincent St-Amour
be67f304a8 Update messages. Irritants are now highlighted, not circled. 2011-07-15 15:04:57 -04:00
Vincent St-Amour
f788f8c4c7 Popup formatting. 2011-07-15 15:04:57 -04:00
Vincent St-Amour
72975a4e1c Use rectangle highlighting instead of ellipses. Works better across multiple lines. 2011-07-15 15:04:57 -04:00
Vincent St-Amour
d7cb6fcc75 Separate each entry into multiple editors, for finer-grained control. 2011-07-15 15:04:57 -04:00
Vincent St-Amour
ac3b487a9f First stab at highlighting irritants in the popup. 2011-07-15 15:04:57 -04:00
Vincent St-Amour
2b9d035045 Add comments. 2011-07-15 15:04:57 -04:00
Vincent St-Amour
baab138252 Fix highlight range and refactor. 2011-07-15 15:04:57 -04:00
Vincent St-Amour
6dda3c3e03 Display code in monospace. 2011-07-15 15:04:56 -04:00
Vincent St-Amour
869df45881 Rewind the canvas to the beginning after inserting text. 2011-07-15 15:04:56 -04:00
Vincent St-Amour
90ae7bc25f Use editor snips to display multiple report in a single popup. 2011-07-15 15:04:56 -04:00
Vincent St-Amour
8e2645a946 Display each opt/missed-opt separately in the tool.
This should make it easier to highlight irritants in the popup.

This required redesigning the report data structures.
2011-07-15 15:04:56 -04:00
Vincent St-Amour
f4c3e51d3b Make a test a bit more complicated. 2011-07-15 15:04:56 -04:00
Vincent St-Amour
ec1dedffbb Reformat message. 2011-07-15 15:04:56 -04:00
Vincent St-Amour
e59a84dc96 Abstract out popup management. 2011-07-15 15:04:55 -04:00
Vincent St-Amour
46b984a94b Use editor locking. 2011-07-15 15:04:55 -04:00
Vincent St-Amour
b42952a2f4 Use auto-wrapping. 2011-07-15 15:04:55 -04:00
Vincent St-Amour
4e3650005a First stab at using a text% to display messages. 2011-07-15 15:04:55 -04:00
Vincent St-Amour
3c91ae012a Add break-lines to unstable/pretty. 2011-07-15 15:04:55 -04:00
Vincent St-Amour
c5d46449b7 Fix new optimization to use the new loggin facilities. 2011-07-15 15:04:55 -04:00
Vincent St-Amour
c1fe25200b Keep located syntax around so we can use it in the tool. 2011-07-15 15:04:54 -04:00
Vincent St-Amour
d2a8a620b1 Call locate-stx at the last minute, to avoid overeager duplicate detection. 2011-07-15 15:04:54 -04:00
Vincent St-Amour
34ccf6a3fb Fix new optimization to use new logging. 2011-07-15 15:04:54 -04:00
Vincent St-Amour
4e0b1bfa3c Fix display of code in popup. 2011-07-15 15:04:54 -04:00
Vincent St-Amour
e736653413 Split tool into multiple files. 2011-07-15 15:04:54 -04:00
Vincent St-Amour
d3db388c05 Use locate-stx earlier in the logging process, for nicer display in the tool. 2011-07-15 15:04:54 -04:00
Vincent St-Amour
0ce280da89 Display relevant code in pop-up when there's more than one message. 2011-07-15 15:04:54 -04:00
Vincent St-Amour
604e690982 Fix name. 2011-07-15 15:04:54 -04:00
Vincent St-Amour
f02c65dfcc Deal with overlapping opts/missed opts more nicely. 2011-07-15 15:04:54 -04:00
Vincent St-Amour
d146f8c590 Report missed fixnum optimizations. 2011-07-15 15:04:54 -04:00
Vincent St-Amour
fbf802e61c Fix tests. 2011-07-15 15:04:54 -04:00
Vincent St-Amour
bfc4ad4225 Add nicer optimization reporting messages. 2011-07-15 15:04:53 -04:00
Vincent St-Amour
d33c13e0f6 Use various shades of pink/red for highlights depending on the badness. 2011-07-15 15:04:53 -04:00
Vincent St-Amour
47af9d51bc Make performance-report state local, to support multiple files at once. 2011-07-15 15:04:53 -04:00
Vincent St-Amour
092df83c18 Have an icon for performance-report. 2011-07-15 15:04:53 -04:00
Vincent St-Amour
9640d2bfbc Fix tests for new log format. 2011-07-15 15:04:53 -04:00
Vincent St-Amour
ff5ca8a234 Handle irritants without source location properly. 2011-07-15 15:04:53 -04:00
Vincent St-Amour
00d23a4535 Add the remaining diagnosis messages. 2011-07-15 15:04:53 -04:00
Vincent St-Amour
975cb7ad9d Rewrite TR logging facilities to play nicely with the DrRacket tool. 2011-07-15 15:04:53 -04:00
Vincent St-Amour
d68267cbfa Have a more useful message for float missed opts. 2011-07-15 15:04:53 -04:00
Vincent St-Amour
5ddfcfba9d Circle irritants. 2011-07-15 15:04:53 -04:00
Vincent St-Amour
a134e4ffb7 Have nicer information to present in pop-ups. 2011-07-15 15:04:52 -04:00
Vincent St-Amour
28f51f7376 Clicking on highlighted regions brings up more information. 2011-07-15 15:04:52 -04:00
Vincent St-Amour
5e5fdb2981 Remove redundant optimization reporting. 2011-07-15 15:04:52 -04:00
Vincent St-Amour
65e56ab387 Remove extra keyword argument. 2011-07-15 15:04:52 -04:00
Vincent St-Amour
8d680ced89 Display larger regions for optimizations. 2011-07-15 15:04:52 -04:00
Vincent St-Amour
2ecec626b3 Remove highlights after editing. 2011-07-15 15:04:52 -04:00
Vincent St-Amour
14be886288 Highlight opts and missed-opts in the editor. 2011-07-15 15:04:52 -04:00
Vincent St-Amour
7f3bb5d017 Pass log struct along with the log messages. 2011-07-15 15:04:52 -04:00
Vincent St-Amour
75f62dbdcc Preserve lines and columns. 2011-07-15 15:04:51 -04:00
Vincent St-Amour
c598ae2048 Switch to using get-port-name. 2011-07-15 15:04:51 -04:00
Vincent St-Amour
27f3eb3870 Report optimizations and missed optimizations with the DrRacket tool.
Currently, that just means showing the text that would be shown on the
command line. Eventually, it should highlight code in the editor, and
have tooltips explaining what happened.
2011-07-15 15:04:51 -04:00
Vincent St-Amour
a71a45e41f Relocate TR logging capture. 2011-07-15 15:04:51 -04:00
Vincent St-Amour
101feb8200 Added a button for the performance report tool when in a typed language. 2011-07-15 15:04:51 -04:00
Matthias Felleisen
6c51155fec adjusted expected error messages to accommodate Stephen's change 2011-07-15 14:50:34 -04:00
Matthias Felleisen
91932033af documented error reporting functions 2011-07-15 12:24:40 -04:00
Matthias Felleisen
562252f589 fixed bug in exception handling for drawing; Closes PR 12044 2011-07-15 12:24:39 -04:00
Robby Findler
9190fbade2 fix bug introduced in recent refactor 2011-07-15 07:10:10 -06:00
Guillaume Marceau
7134d67921 Roll back the "expr -> expression" change in the grammar documentation of the
teaching languages. The extra width was breaking some browsers.
2011-07-15 03:34:59 -04:00
Guillaume Marceau
c31d352f2b Standartize the vocabulary to "the function returns" and "set! mutates" 2011-07-15 03:27:27 -04:00
Robby Findler
00bb92816c cleaned up the generated code for -> and friends 2011-07-14 22:58:12 -06:00
Matthew Flatt
1c4722eaee remove obsolete reference to '#%mred-kernel 2011-07-14 21:32:47 -06:00
Matthew Flatt
5e5172baab fix typo; eliminate "this" as a noun; otherminor improvements 2011-07-14 21:32:47 -06:00
James Swaine
e9460282ac Deleted junk code that was commented out in the futures test suite 2011-07-14 19:44:19 -06:00
James Swaine
32a3828a2e Made continuation-mark-set-first future-safe. Fixed a rarely occurring bug with lightweight continuation capture for futures. 2011-07-14 19:30:52 -06:00
Matthew Flatt
7be0c8236f fix `procedure-reduce-keyword-arity' checking
and clarify need for distinct keywords in parts of the
 documentation
2011-07-14 17:07:18 -06:00
Jon Rafkind
3736571ad0 fix sequences 2011-07-14 16:54:26 -06:00
Jon Rafkind
a29d64b44a enable #lang honu 2011-07-14 16:54:26 -06:00
Jon Rafkind
57a759c383 fix parsing for operators 2011-07-14 16:54:26 -06:00
Vincent St-Amour
937d0ad722 Fix unbalanced curly brackets. 2011-07-14 18:51:13 -04:00
Asumu Takikawa
6c3284a828 Fix a few framework contracts to match code 2011-07-14 18:15:48 -04:00
Eli Barzilay
95f6eb4f3e Use the new `set-port-next-location!' instead of the previous hack.
(But something might still be off -- I thought that its use in readline
would render the whole thing redundant.)
2011-07-14 17:21:46 -04:00
Eli Barzilay
db7f2b4542 Add a new #:dont-re-require-enter' flag for enter!', to avoid
requiring itself into the entered namespace.

This makes it useful in some cases where this require leads to a
dependency cycle, eg (enter! racket/list).  It's obviously not useful
for use as-is, since you will not have a bound `enter!' to get out of
the namespace (and possibly no `require' to get it) -- but it is useful
for meta-tools like xrepl.  This is why the flag is verbose.  `xrepl'
now uses this flag.

Also, the check for valid keywords for the form is now done at runtime
rather than in the macro.  This doesn't matter in this case, since the
form is intended for interactive use anyway.

Also, separate the two parts of `enter-load/use-compiled' (it was
defined curried, but didn't use it).
2011-07-14 17:21:46 -04:00
Eli Barzilay
c544ebfe6c New `xrepl' collection. 2011-07-14 17:21:46 -04:00
Vincent St-Amour
adeef671cd Fix TR tests to use the new contract error message format.
If 7b9b3c371b is included in the release, this should be too.
2011-07-14 17:06:52 -04:00
Vincent St-Amour
111ef109c3 Add vectors to syntax->list. 2011-07-14 17:06:52 -04:00
Eric Dobson
e6030295ff Fix kernel-struct tests in TR. 2011-07-14 17:06:52 -04:00
Eric Dobson
30058a5a24 Document legacy form 'values'. Closes PR1145. 2011-07-14 17:06:52 -04:00
Eric Dobson
27ffe4cb6a Fixes error messages for unsupported provide forms 2011-07-14 17:06:52 -04:00
Eric Dobson
bf72db0f7b Clean up some contract errors and type->contract. Closes PR11756. 2011-07-14 17:06:52 -04:00
Eric Dobson
abc8e514d9 Fixed require typed struct 2011-07-14 17:06:52 -04:00
Eric Dobson
5e08f7a411 Fixes for inference. Closes PR10937. 2011-07-14 17:06:51 -04:00
Eric Dobson
f5e24ba163 Working on improving contracts in TR. 2011-07-14 17:06:51 -04:00
Eric Dobson
8a2c9b4682 TR: Produce better error messages with values. Closes PR11772. 2011-07-14 17:06:51 -04:00
Stephen Bloch
d510f6aecc Corrected signature of scene+line to match examples and actual behavior
(sixth argument can be a pen or color, not just a color).
2011-07-14 16:39:25 -04:00
Stephen Bloch
34f3fac6a5 Corrected the grammar in check-arg and check-result to follow the
English convention of "a" before a consonant and "an" before a vowel.
There will presumably be pathological cases, but this should cover 95%
of the situations.
2011-07-14 13:07:23 -04:00
Stephen Bloch
83fd1e968d Corrected an error message that said it wanted a real, but actually
expected an integer.
2011-07-14 13:01:11 -04:00
Kevin Tew
4d7584d9b7 fix indentation 2011-07-14 10:14:34 -06:00
Kevin Tew
8aca195b35 fix class names 2011-07-14 10:14:33 -06:00
Kevin Tew
a8fd86d780 Fix timeout for place-channel.rkt test 2011-07-14 10:14:33 -06:00
Kevin Tew
4ab64dc4c7 rename jobqueue and workqueue to work-queue 2011-07-14 10:14:33 -06:00
Eli Barzilay
318c4fedfc Shift typo. 2011-07-14 12:13:37 -04:00
Eli Barzilay
69464bba91 Switch tcsh(!) and bash scripts to use /bin/sh.
(Satisfy some 3rd-party packaging linters.)
2011-07-14 12:06:00 -04:00
Matthias Felleisen
40948ee653 sk requested empty scenes with optional background color 2011-07-14 12:03:20 -04:00
Guillaume Marceau
da6e819b6f Fixed some missing links in the documentation. 2011-07-14 01:51:48 -04:00
Guillaume Marceau
793d7894f1 Better fix for the previous bug. 2011-07-14 00:12:47 -04:00
Guillaume Marceau
452f3a14fb Fixed that 'all contracts for primitives print as lists' bug in scribblings/htdp-langs. 2011-07-13 23:52:10 -04:00
Stephen Chang
3f79c37ce6 add make-lazy-proc to lazy stepper skipped fns list 2011-07-13 18:54:45 -04:00
Sam Tobin-Hochstadt
355050acde Docs for racket/kernel 2011-07-13 18:15:51 -04:00
Jon Rafkind
3e96a1e66e parse operators 2011-07-13 16:09:22 -06:00
Jon Rafkind
acb3bce1e7 add function as a macro 2011-07-13 16:09:21 -06:00
Matthias Felleisen
03dc212d61 small edit to doc of atan; Closes PR 12039 2011-07-13 18:00:35 -04:00
Asumu Takikawa
2fdc56db3a Use real contract in bitmap% docs 2011-07-13 15:35:38 -04:00
Vincent St-Amour
cf04739f93 Fix unsafe multiplication. 2011-07-13 12:52:47 -04:00
Matthew Flatt
007614fc9f add gradient transformation to `brush%' 2011-07-13 10:45:19 -06:00
Matthew Flatt
07a9cdd2a8 fix zo-parse of rename tables 2011-07-13 10:45:19 -06:00
Vincent St-Amour
e5314f945e Make index? faster. 2011-07-13 12:07:56 -04:00
Robby Findler
2fb03852b3 fix bad contract 2011-07-13 06:47:20 -06:00
Jon Rafkind
41b66d3fc2 fix requires 2011-07-12 23:21:45 -06:00
Robby Findler
7b9b3c371b adjusted the wording of the contract error messages to move away from <>'s and added more colons 2011-07-12 22:03:07 -06:00
John Clements
b14ac37d99 added automatic parens preference 2011-07-12 12:23:08 -07:00
Jon Rafkind
2737351c4a start new honu implementation 2011-07-12 10:37:23 -06:00
Stephen Bloch
52527d8a95 Fixed some more error messages. 2011-07-12 07:08:47 -04:00
Ryan Culpepper
5a10ef7550 updated docs for struct-type-contract/c 2011-07-11 16:12:27 -06:00
Vincent St-Amour
59a85b3eb2 Add list optimizations. 2011-07-11 15:55:07 -04:00
Vincent St-Amour
79ef8e889e Fix test for new contract error message format. 2011-07-11 15:35:49 -04:00
Vincent St-Amour
427eaca513 Add tests for jitted real->*-flonum. 2011-07-11 14:21:41 -04:00
Stephen Bloch
904ef63ce2 Fixed some more error messages. 2011-07-11 07:25:46 -04:00
Stephen Bloch
d3df33b023 Improved error messages to specify actual argument as well as expected
type.  Still produces one check-error failure because of bug in
make-color.
2011-07-11 07:25:46 -04:00
Matthew Flatt
cc6f3f69ab add `port-set-next-location!'; make prompt read handler use it
Closes PR 12035
2011-07-10 08:36:47 -06:00
Eli Barzilay
ebe9453e73 Fix the path relative functions to return a string for a path input,
clarify the documentation, add a few tests.

Fixes pr 12032
Fixes pr 12034
2011-07-10 06:53:44 -04:00
Sam Tobin-Hochstadt
79ed93a925 Add `racket/kernel' as language with very low startup time. 2011-07-09 22:49:50 -04:00
Sam Tobin-Hochstadt
64d42fa0d3 Fix capitalization of HtDP.
Merge to 5.1.2.
2011-07-09 22:49:49 -04:00
Matthew Flatt
b5bb703b48 fix cross reference
Merge to 5.1.2
2011-07-09 20:28:46 -06:00
Matthew Flatt
e765231dad fix hash-ref' bugs on immutable eq?'-based tables
There were two:
   * new: after finding a hash code, the key wasn't
          always checked to be `eq?' to the desired key
   * old: the hash code wan't downshifted by 2, so
          changes in the low two bits (like when a pair
          is determined to start a list) could break
          lookup

 Merge to 5.1.2
2011-07-09 20:12:59 -06:00
John Clements
35c9bd90ab preserve user origin field... it may be useful 2011-07-09 17:18:13 -07:00
John Clements
3030fd3f4a test-engine now sets current-directory before running tests 2011-07-09 17:17:49 -07:00
John Clements
a1cc083737 preserve origin field 2011-07-09 16:19:16 -07:00
John Clements
9cdeda1e04 added purpose statement to expand-teaching-program 2011-07-09 16:19:16 -07:00
John Clements
592f28382b refactoring, no semantic changes 2011-07-09 16:19:15 -07:00
John Clements
2cebd8f4cb retabbing, dumping a 'local', no longer using parenthesized module form 2011-07-09 16:19:15 -07:00
John Clements
53db721ee9 retabbing only 2011-07-09 16:19:15 -07:00
John Clements
ba82f46a07 retabbing and dead code removal only 2011-07-09 16:19:15 -07:00
Matthew Flatt
3d03e8f884 fix define-primitive' and provide-primitive'
Allow the implement to follow the `define-primitive'
 or `provide-primitive' declaration.
2011-07-09 16:57:56 -06:00
Matthew Flatt
0acf9834f7 make ISL local' and letrec' expand more the old way
That is, force expansion to use a single `letrec',
 instead of a mixture of `let' and `letrec' that an
 internal-definition expansion would now use.
2011-07-09 16:57:09 -06:00
Carl Eastlund
d5b852c386 Updated unit contract tests to not rely on a specific format for names of
blamed modules in contract error messages.
2011-07-09 17:28:04 -04:00
Carl Eastlund
00a6442712 Changed source-location->string and ->prefix to use
path->relative-string/library to produce collection and planet-relative source
names.
2011-07-09 14:48:14 -04:00
Carl Eastlund
b3136095ea Changed default blame formatter to report blame parties relative to collection
and planet directories where appropriate.  Added a test for this behavior.
2011-07-09 14:48:14 -04:00
Carl Eastlund
2e6a608539 Corrected documentation of quote-module-name to indicate that it does not
produce collection and planet-relative paths on its own.  Deprecated
quote-module-path, and replaced existing uses of it with quote-module-name.
2011-07-09 14:46:58 -04:00
Matthew Flatt
584a96a4e0 fix define-primitive' and porvide-primitive' to check binding
Closes PR 12031
2011-07-09 08:54:36 -06:00
Matthew Flatt
8271f7b182 export `step-count?'
Merge to 5.1.2
2011-07-09 08:47:21 -06:00
Matthew Flatt
efd1fa51bd change `find-method/send' back to one result
The 2-result implementation is not needed now that contracts
 are implemented via impersonators
2011-07-09 07:08:32 -06:00
Matthew Flatt
8decf99f34 move error reporting out of `define-syntax-rule' expansion 2011-07-09 06:32:41 -06:00
Matthew Flatt
34a5c400ba remove some macro abuses 2011-07-09 06:16:11 -06:00
Matthew Flatt
121145be73 prune unused imports 2011-07-09 06:16:11 -06:00
Matthew Flatt
089201b49b doc typo fixes 2011-07-09 06:16:10 -06:00
Guillaume Marceau
3815862a81 Remove spurious printf left in 9053f8f9 2011-07-09 01:39:17 -04:00
Guillaume Marceau
9053f8f99b Fixed documentations bugs in scribblings/htdp-langs 2011-07-08 23:34:29 -04:00
Guillaume Marceau
9d465ed298 Adding files missing in the previous commit. 2011-07-08 18:36:24 -04:00
Guillaume Marceau
2c075978fd Merged htdp-lib.scblr and teachpacks/error-composition.scrbl into htdp/htdp.scrbl,
to form a single manual titled "Implementing HtDP Teachpacks, Libraries, and
Customized Teaching Languages"
2011-07-08 18:23:17 -04:00
Guillaume Marceau
91d5c92415 Little tweaks to the *SL documentation 2011-07-08 18:23:16 -04:00
Guillaume Marceau
ff1ab35a12 Catches another way images prints. 2011-07-08 18:23:15 -04:00
Ryan Culpepper
0aecbf97ff syntax/parse: add expr/c to main module
Merge to release branch
2011-07-08 15:34:59 -06:00
Ryan Culpepper
73230537ba removed merge conflict artifact
Merge to release branch
2011-07-08 15:34:59 -06:00
Robby Findler
fbccf38d50 completed the planet library documentation and, in the process,
cleaned up various dependencies and exports from some of the libraries
2011-07-08 15:51:05 -05:00
Matthew Flatt
b98e1b189a change semantic of internal definitions
and `letrec-syntaxes+values' --- allowing `let' in place
 of `letrec', which in turn lets the compiler optimize
 away location allocation
2011-07-08 14:00:41 -06:00
Matthew Flatt
0e95d49ddb allow more expression reordering, especially unsafe ops 2011-07-08 06:23:29 -06:00
Matthew Flatt
65b1a569a0 add `unsafe-list-{ref,set}'
Use the new functions in `syntax-case'; the benefit is small, and
 it's mostly useful as hint to the optimizer that the operation
 can be dropped if the result isn't used
2011-07-08 06:23:29 -06:00
Matthew Flatt
5e49e0adea improve decompiler handling of syntax object 2011-07-08 06:22:40 -06:00
Kevin Tew
5d66e52fcc Add identifier? check to place macro 2011-07-07 16:56:23 -06:00
Ryan Culpepper
8ebda770a6 restored Getting Started link 2011-07-07 14:00:22 -06:00
Ryan Culpepper
e66275c3f5 moved typed racket docs up within section 2011-07-07 14:00:22 -06:00
Ryan Culpepper
3b707c1e54 rackunit: fix require/expose to work on variable-like macros
(eg struct names, names w/ contracts, etc)
2011-07-07 14:00:22 -06:00
Matthew Flatt
9bee07b7c0 fix debugger for syntax taints 2011-07-07 13:38:14 -06:00
Kevin Tew
68d49e9f59 Add assertions to place-channel tests 2011-07-07 12:38:20 -06:00
Sam Tobin-Hochstadt
49444460d5 Add types for `check-in-{port,bytes,bytes-lines}'. 2011-07-07 14:24:28 -04:00
Sam Tobin-Hochstadt
e972c0c392 Have DrDr keep ignoring the random seeds. 2011-07-07 14:24:28 -04:00
Matthew Flatt
2840e2367b fix ASL `(begin0)' error message 2011-07-07 10:57:04 -06:00
Matthew Flatt
917d190877 more consistent *SL primitive descriptions 2011-07-07 10:45:43 -06:00
Matthew Flatt
6c3360c716 fix formating of duplicated syntax descriptions 2011-07-07 10:45:43 -06:00
Matthew Flatt
e1b02e08f7 generalize `defform' & co. to better support abstraction 2011-07-07 10:45:43 -06:00
Vincent St-Amour
50974440f4 Fix test to avoid differences in printing. 2011-07-07 11:41:59 -04:00
Matthew Flatt
1dd7aa5889 avoid unnecessary syntax object 2011-07-07 07:25:48 -06:00
Matthew Flatt
e783d84268 move checking code out of macro expansion 2011-07-07 07:25:48 -06:00
Matthew Flatt
5bc8b67eba fix decompile of define-values-for-syntax 2011-07-07 07:25:48 -06:00
Matthias Felleisen
3a3de9c23d better title in preperation for merging with Guillaume 2011-07-07 09:19:44 -04:00
John Clements
77a31dc2af fix a stepper bug related to recent change to handling of module-level defines 2011-07-06 23:22:29 -07:00
Matthias Felleisen
4698e94127 providing a name for tick handler, Closes PR 12027 2011-07-06 23:09:27 -04:00
Eli Barzilay
4475d12169 Rephrase some of the (meta) wording, reformat, fix some scribble-isms, etc. 2011-07-06 18:53:48 -04:00
Vincent St-Amour
0494e16d4f Fix tests. 2011-07-06 18:34:14 -04:00
Vincent St-Amour
4947090191 Fix benchmark to reflect changes to flvector ops types. 2011-07-06 18:32:47 -04:00
Vincent St-Amour
2e6b518c95 Add an extra test for partial bounds checking elimination. 2011-07-06 18:09:35 -04:00
Vincent St-Amour
a7459c5ee7 Do partial bounds checking elimination for flvector operations. 2011-07-06 18:09:31 -04:00
Vincent St-Amour
7debd46621 Recognize multiple argument types for flvector accessors.
With only Integer possible as type for the index argument, Integer was
used as expected type, and any information we had about the argument
(sign, range, etc.) was lost.
2011-07-06 18:09:31 -04:00
Vincent St-Amour
d75d6c7ee4 Move flvector types with other indexing functions. 2011-07-06 18:09:30 -04:00
Vincent St-Amour
60f3074ccd Do the impersonator? check up front. 2011-07-06 18:09:30 -04:00
Vincent St-Amour
979545a90f First stab at optimizing bounds checking. 2011-07-06 18:09:29 -04:00
Ryan Culpepper
714166a062 unstable/gui/ppict: added tile placer, updated todo 2011-07-06 15:31:08 -06:00
Ryan Culpepper
a34821ea4f unstable/gui/ppict:
added #:set, #:alt to ppict-do
  added ppict-do-state
  added at-find-pict
  added tag-pict
  updated to slideshow changes
  changed placer rep, added merge-refpoints
2011-07-06 15:31:08 -06:00
Ryan Culpepper
1f7165df16 unstable/gui/ppict: added abs-x, abs-y placer args, changed grid to 1-based 2011-07-06 15:31:08 -06:00
Ryan Culpepper
d246a0bcc1 unstable/gui/ppict: added cascade placer 2011-07-06 15:31:08 -06:00
Ryan Culpepper
1a16173bf1 fixed doc typos 2011-07-06 15:31:08 -06:00
Jay McCarthy
c7126ae628 Typo in formlet docs 2011-07-06 15:24:15 -06:00
Jay McCarthy
57aa7149c1 Typo in formlet docs 2011-07-06 15:23:40 -06:00
Jay McCarthy
4c276ea010 Attempting to fix a very brittle test case 2011-07-06 15:21:39 -06:00
Matthew Flatt
6b4b95c569 fix `unsafe-struct-{ref,set}' for chaperones 2011-07-06 15:08:41 -06:00
Matthew Flatt
edb02aec97 slightly faster method sends
by using just `object-ref' instead of `object?' plus `object-ref'
2011-07-06 14:00:51 -06:00
Kevin Tew
36e3679854 Scheme_Place_Object is now under gc control, multiple places can wait on a place channel. 2011-07-06 13:27:50 -06:00
Matthew Flatt
ff49859c80 git: fix "&" and "_" handling in labels 2011-07-06 09:54:57 -06:00
Matthew Flatt
de54efc84e cocoa: fix "&" handling in menu-item labels
Closes PR 12025
2011-07-06 09:54:41 -06:00
Matthew Flatt
d8352d5890 allow lists of pre-content to `decode-content', etc.
and improve docs for `scribble/decode'
2011-07-06 09:07:19 -06:00
Guillaume Marceau
dc6378f7a2 Adds a research paper section to the error message composition guidelines. 2011-07-06 08:48:26 -04:00
Guillaume Marceau
c287519cc0 Updated the expected errors messages in the tests to match the new vocab. 2011-07-06 08:47:15 -04:00
Eli Barzilay
0ee3aef9cb Redo some of the ".ss" -> ".rkt" conversion that were undone in the last push. 2011-07-06 06:21:49 -04:00
Guillaume Marceau
9706920055 Updated the error messages of the world and universe teachpacks. 2011-07-06 05:35:27 -04:00
Guillaume Marceau
aa9dbd21f5 Updated the error message of check-expect. Fine tuning of the error messages. 2011-07-06 05:35:25 -04:00
Guillaume Marceau
eedab060ba Updated teachpack documentation for the new vocabulary. 2011-07-06 05:35:17 -04:00
Guillaume Marceau
ca2de63f9e Added the error message composition guidelines to the teachpack documentation. 2011-07-06 00:28:55 -04:00
Guillaume Marceau
6fc14b269d The rewriting machanism no longer inserts with-handler everywhere. 2011-07-06 00:28:45 -04:00
Guillaume Marceau
01b9bde7fa The documentation for htdp-lang now uses the new vocabulary. 2011-07-06 00:27:28 -04:00
Guillaume Marceau
6eea5b1793 The new error messages now pass the tests/language-test.rkt suite
(except for contract runtime error messages in levels higher than
 beginner.)
2011-07-06 00:19:26 -04:00
Guillaume Marceau
f858b8bb5c Htdp no longer throws exceptions that have no source information 2011-07-06 00:19:24 -04:00
Guillaume Marceau
79589b9b9f The htdp test suite now checks that the correct error messages are thrown. 2011-07-06 00:19:22 -04:00
Guillaume Marceau
2f3da4c4cd Changed the wording of BSL error messages 2011-07-05 17:57:19 -04:00
Guillaume Marceau
103474a5f5 Implemented struct colored-error-message struct and colored-format 2011-07-05 17:57:18 -04:00
Vincent St-Amour
6da4835a14 Fix props. 2011-07-05 16:28:51 -04:00
Vincent St-Amour
867f1e9097 Fix syntax test harness to work with compiled tests. 2011-07-05 16:28:25 -04:00
Vincent St-Amour
669523477a Add a test suite for the syntax collect. 2011-07-05 15:06:24 -04:00
Eric Dobson
b25ee81d79 Changed TR test to use struct with struct info instead of HTDP struct. 2011-07-05 11:25:11 -04:00
Eric Dobson
805e1fb309 Correctly require/typed structs with parents. Closes PR11509. 2011-07-05 11:25:10 -04:00
Eric Dobson
07910253b4 Fixes build-struct-expand-info to create correct struct info.
Adds a check to struct-info? to make sure selectors
and mutators are the same length. Closes PR12017.
2011-07-05 11:25:10 -04:00
Eric Dobson
a9655c04dd Provides better error message for PR 11889. 2011-07-05 11:25:10 -04:00
Eric Dobson
0b76178138 Fix typechecking of call-with-values. Closes PR11709. 2011-07-05 11:25:10 -04:00
Eric Dobson
5493e17538 Fix match to not use apply and work with TR. 2011-07-05 11:25:10 -04:00
Eric Dobson
046d476970 Add types for kernel struct constructors. 2011-07-05 11:25:10 -04:00
Eric Dobson
fc8ed9772a Added srclocs to errors raised by match. 2011-07-05 11:25:10 -04:00
Matthew Flatt
5d06476cb3 scribble: clarify intent of `#:use-sources' 2011-07-05 07:03:26 -06:00
Matthew Flatt
1daa2649f0 another fix for `vector-{ref,set!}' on chaperone/impersonator
--- fixes a81917a2692; drop this commit if that one is dropped
2011-07-05 06:29:32 -06:00
Matthew Flatt
a7deb516f7 minor doc style corrections 2011-07-04 16:48:25 -06:00
Matthew Flatt
67e5b3d364 fix import collision
--- probably due to the addition of `identity' to `scheme[/gui]',
 but the test file should require `scheme/gui/base'
2011-07-04 16:39:36 -06:00
Matthew Flatt
e3b8997fb8 fix test
which is sensitive to details of the documentation of `->'
2011-07-04 16:35:38 -06:00
Matthew Flatt
4905d344dd slideshow/pict: add `rotate'
which requires two new fields in the `child' struct to support
 `lt-find', etc., when child picts are rotated
2011-07-04 16:26:09 -06:00
Matthew Flatt
850b85cbdb add some cross-references 2011-07-04 16:26:09 -06:00
Ryan Culpepper
e38843618d unstable: better ppict-do, absorbed code from pslide 2011-07-03 04:05:03 -06:00
Ryan Culpepper
77a89b8d83 unstable: added ppict, pslide 2011-07-03 02:25:10 -06:00
Ryan Culpepper
5ec2fee90d macro-stepper: more work on syntax tainting 2011-07-02 23:32:02 -06:00
Ryan Culpepper
71a92f2957 macro-stepper: first step to making macro stepper aware of syntax tainting 2011-07-02 23:32:02 -06:00
Stevie Strickland
d3ebf21d97 Fix the unit contract tests due to changes in contract violation reports. 2011-07-03 00:47:58 -04:00
Jay McCarthy
de9aec3051 Allowing paths in big-bang's record? argument and adjusting a test to make use of that feature. It would also be good to allow bitmap to take paths, but that is non-trivial, because of its assumption that non-literal strings are module paths 2011-07-02 20:13:39 -07:00
Matthew Flatt
3dcb19007d protect the expansion of `enter!' 2011-07-02 19:41:27 -06:00
Matthew Flatt
b57cf0134f fix typos 2011-07-02 19:18:11 -06:00
Jay McCarthy
8da2f537fb Another test that is sensitive to the contract error message text 2011-07-02 14:50:24 -07:00
Jay McCarthy
7a602b8864 What are tests for anyway? 2011-07-02 14:47:54 -07:00
Jay McCarthy
439bbc6d8f Another broken test courtesy of refactoring, not testing, and ignoring DrDr. In this case, it seems like the user should not have relied on the function always returning a string (based on the old documentation---not the name, which implies a string comes out), so I've changed the use rather than the function. 2011-07-02 14:34:41 -07:00
Jay McCarthy
8d6827e741 Thank you for breaking tests by a semantics-ignoring Search&Replace and then ignoring that DrDr caught the break. 2011-07-02 14:15:20 -07:00
Jay McCarthy
f55ec3def7 It is very odd that racket/load doesn't let this work 2011-07-02 14:04:52 -07:00
Jay McCarthy
65ebdc4f90 Fixing this test 2011-07-02 14:01:32 -07:00
Jay McCarthy
bd46637210 This test is sensitive to the JIT, it seems 2011-07-02 13:51:31 -07:00
Jay McCarthy
88bf52c88b These tests are sensitive to the contract error messages 2011-07-02 12:19:41 -07:00
Jay McCarthy
14bc3afe90 Increasing timeout based on linear projection 2011-07-02 12:17:01 -07:00
Jay McCarthy
4a9ec78844 Different server path 2011-07-02 11:52:04 -07:00
Jay McCarthy
0896792e23 Showing files by status 2011-07-02 11:52:04 -07:00
Jay McCarthy
984215fd87 A little reformating 2011-07-02 11:52:04 -07:00
Matthias Felleisen
a1c219a068 eliminated superfluous require for-syntax, refactored and cleaned up; fixed bug in test? 2011-07-02 13:34:02 -04:00
Matthew Flatt
8aa4ff1b06 syntax taint repairs 2011-07-02 10:08:15 -06:00
Robby Findler
df6590b80f adjust contract violation message by putting the name at the start of the message. For example, this:
contract violation, expected <(or/c (quote clean) (quote armed) (quote tained))>, given: #f
  contract on wrapped from 'zo-structs, blaming 'no-dep
  contract:
     (->
        any/c
	(listof wrap?)
	(or/c 'clean 'armed 'tained)
	wrapped?)
  at: C:\tmp3.rkt:6.21

becomes this:

wrapped: contract violation, expected <(or/c (quote clean) (quote armed) (quote tained))>, given: #f
  contract from 'zo-structs, blaming 'no-dep
  contract:
     (->
        any/c
        (listof wrap?)
        (or/c 'clean 'armed 'tained)
        wrapped?)
  at: C:\tmp3.rkt:6.21

(apologies if the indenting isn't quite right above; vi messed with it when I tried to paste it in ...)
2011-07-03 00:04:12 +08:00
Eli Barzilay
3157955d40 ".ss" -> ".rkt" scan done. 2011-07-02 10:37:53 -04:00
Eli Barzilay
4da4a2759b New setup/path-to-relative' that supersedes unstable/dirs' and most of
`setup/private/path-utils'.

The API is a little different: instead of getting the alist and the
path, there's a curried function that gets the alist and produces a
function to do the substitutions.
2011-07-02 01:10:38 -04:00
Eli Barzilay
1276568558 Combine two let's into a let*', use some #'s. 2011-07-02 01:10:38 -04:00
Eli Barzilay
f86687de9c Use 'user-collects in `library-relative-directories', since "<user>" by
itself is ambiguous.

(Since this is used in contract messages, this might be a visible
difference; it still seems to me that "<user>" would be confusing.)
2011-07-02 01:10:38 -04:00
Eli Barzilay
6b44974b42 Improvements around uses of the current `unstable/dirs', and
`setup/path-relativize'.

`setup/path-relativize' is freed from a bunch of things that were due to
historical baggage, but some remain.  (Also, update its docs.)
2011-07-02 01:10:38 -04:00
Eli Barzilay
3e755eba11 Misc improvements 2011-07-02 01:10:38 -04:00
Eli Barzilay
226f86d201 Try to improve the tests wrt timeouts and memory limits 2011-07-02 01:10:38 -04:00
Matthew Flatt
98740390fa adapt demodularizer to `compiler/zo-struct' change 2011-07-01 22:46:20 -06:00
Ryan Culpepper
4d38f491ca moved algol60 and honu docs to experimental category
remove empty doc categories
2011-07-01 20:13:52 -06:00
Vincent St-Amour
80bea07d5c Fix typo. 2011-07-01 21:27:04 -04:00
Ryan Culpepper
1b702a2ae3 docs reorganization
added tutorial, racket categories
  relabeled some other categories
  normalized manual names: de-bolded, changed some names
2011-07-01 17:16:53 -06:00
Matthew Flatt
b163edff9b clean up my clumsy first attempt to adapt the web-server languages
for syntax taints
2011-07-01 17:11:16 -06:00
Matthew Flatt
e46a470f8d places fixes: Windows leaks, custodian force-exit, stdio interaction 2011-07-01 14:31:56 -06:00
Vincent St-Amour
27d7ad1e87 Have letrec build unions in canonical form. 2011-07-01 16:06:15 -04:00
Eric Dobson
4439638308 Don't export required bindings with all-defined-out and require/typed.
Closes PR11425.
2011-07-01 16:06:15 -04:00
Carl Eastlund
97642c1cb6 Fixed syntax/parse bug:
Syntax classes with keyword arguments were unintentionally requiring all
arguments at an application site to be in alphabetical order.
Added a test for this fix.
2011-07-01 15:32:34 -04:00
Matthew Flatt
59731368fc add ffi/winapi; use it in mzlib/os
Closes PR 12007
2011-07-01 10:42:17 -06:00
Stevie Strickland
4f761ddb2f Use fold-left instead of map for an example of a nonuniform vararg function.
Fixes PR12014.
2011-07-01 12:00:35 -04:00
Matthew Flatt
dca102a7f1 document place termination better
e.g., the fact that the exit handler is set in a place
2011-07-01 09:30:11 -06:00