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