Commit Graph

29588 Commits

Author SHA1 Message Date
Matthew Flatt
fe98a80c22 add `identifier-bindig-symbol'; fix free-id-table for renames
The implement of `free-id-table' uses `identifier-binding'
to decide on a symbolic name as a key for each identifier,
but `identifier-binding' doesn't provide enough information
for local and top-level bindings. The new `identifier-binding-symbol'
function provides that information.

Closes PR 13911
2013-07-10 07:10:39 -06:00
Eli Barzilay
46db1d2d64 Explain how to build the pages. 2013-07-09 21:01:59 -04:00
Eli Barzilay
41c0156fe3 Delay running git, to avoid a premature warning about $GIT_DIR. 2013-07-09 21:01:59 -04:00
Eli Barzilay
8b7a9c6b9e Allow multiple extra files. 2013-07-09 21:01:59 -04:00
Eli Barzilay
90b0f262cd Improve some texts. 2013-07-09 21:01:58 -04:00
Robby Findler
cc35d5d7e1 remove dependency on racket/match 2013-07-09 18:39:34 -05:00
Vincent St-Amour
f57774de83 Move typed-racket-more to typed-racket-pkgs. 2013-07-09 18:26:39 -04:00
Vincent St-Amour
a41bbd78b5 Document contract-continuation-mark-key. 2013-07-09 18:26:39 -04:00
Asumu Takikawa
54cea00f4f Switch two type errors to internal errors
One of these was broken and falling into that case would
raise a random runtime error anyway.
2013-07-09 18:25:56 -04:00
Robby Findler
bd5b7ea85b add myself to the email notification 2013-07-09 16:59:54 -05:00
Robby Findler
86778598d4 break contract-test.rktl into 51 files
(plus one new file to act as a driver for
running the whole test suite)

Beyond the obviousness of this cleanup, it also helps me
test the contract system without having to load any code
that depends on it (making the test cases far more useful
when I'm breaking low-level parts of the contract system
(like ->))
2013-07-09 15:58:02 -05:00
Vincent St-Amour
f318779011 Fix bash completion for package split. 2013-07-09 14:27:43 -04:00
Matthew Flatt
9b3bb96648 raco setup: move `-K' flag to intended meaning 2013-07-09 10:23:40 -06:00
Matthew Flatt
fbdff066b8 prune absolute paths from "info-cache.rktd" files
They're now stored as relative (if possible), instead of always
as absolute. When transitioning from old paths to new paths,
the old ones need to be purged explicitly.
2013-07-09 10:23:09 -06:00
Eric Dobson
3990b43b6a Add some test cases for plambda fixes that have already been applied.
Closes PR 13751.
Closes PR 13754.
2013-07-08 21:01:31 -07:00
Matthew Flatt
9cc50dc914 Makefile: make PKGS' not sticky by default, add again' target
More generally, `LINK_MODE' controls how the `PKGS' value is saved
or restored: "--save" saves the value (the default), "--restore"
uses a previously saved value (if any), and "" disables saving or
restoring.

The `again' target recurs to `in-place' with `LINK_MODE=--restore'.
2013-07-08 20:11:26 -06:00
Matthew Flatt
267ba4c72b fix some absolute paths in an in-place build 2013-07-08 20:01:05 -06:00
Matthew Flatt
301bdf9764 scribble: prefer dest-relative paths to collection-relative paths
Documentation for a user-scoped package is rendered inside a
collection path but moved outside of the collection path when
later installed in installation-wide, so it's important to
try a destination-relative path first.
2013-07-08 18:23:08 -06:00
Ryan Culpepper
1275ed70de split out db pkgs 2013-07-08 17:38:32 -04:00
Sam Tobin-Hochstadt
2299d7425d Improve deps for Typed Racket tests. 2013-07-08 17:23:42 -04:00
Sam Tobin-Hochstadt
0f5404c80a Fix handling of hasheq and hasheqv in any-wrap/c.
Fixes bug reported by Abraham Egnor.
2013-07-08 17:23:41 -04:00
Matthew Flatt
f87981f960 misc changes to avoid absolute paths in bytecode files
In many cases, `path->collects-relative' is used instead of
`path->main-collects-relative' to generalize existing support
for collection-relative paths.
2013-07-08 12:24:17 -06:00
Matthew Flatt
f34a689bd7 Typed Racket: reference `#%type-decl' through a module path index
Avoid problems with absolute paths and bytecode files.
2013-07-08 12:24:16 -06:00
Matthew Flatt
fb64f06eaf add some tests for `path-module-path' 2013-07-08 12:24:16 -06:00
Matthew Flatt
47f2742575 pkg/path: add `path->pkg+subpath+collect'
I was going to use this extension to implement `path->module-path',
but it turns out that `path->module-path' already exists and in
a form that works with packages. Still, this extension might be
useful in the future.
2013-07-08 12:24:16 -06:00
Matthew Flatt
36f7b7051e drop non-relative paths in procedure source locations
A path that is not relative to the enclosing file can show up
due to cross-module inlining. Package-based modules do not have
a good relative path to "collects", which creates trouble for
distributing compiled modules where, say, `map' was inlined.

It might be possible to keep the path in module-path-index form
so that a path can be constructed appropriately at run time, but
it's much simpler to just punt on function source locations in
this relatively rare case.
2013-07-08 12:24:16 -06:00
Robby Findler
3eb96119d5 add missing for-label require 2013-07-08 05:28:10 -05:00
Robby Findler
21a0a20f98 add some missing responsibility info for drdr 2013-07-08 03:18:54 -05:00
Robby Findler
76ef82b354 make help/help.rkt not run in drdr 2013-07-08 03:06:59 -05:00
Matthew Flatt
eb8fc26c59 fix bug and test for `path->relative-string/library' 2013-07-07 11:58:35 -06:00
Matthew Flatt
e3c27b2737 fix `call-with-default-reading-parameterization'
The `read-accept-compiled' parameter is supposed to be #f.
2013-07-07 11:51:25 -06:00
Matthew Flatt
b21e0d9132 fix shortcut for native packages 2013-07-07 11:44:07 -06:00
Matthew Flatt
1a0312acc0 Package-database reading and related library improvements
The main result is that `path->selative-string/library' now generates
"<pkg>/..." strings.

To make that possible, minimal support for reading the
installed-package database moved to a new `pkg/path' library.

To make that possible and avoid poetntial problems from concurrent
reading and writing of the database file, `racket/file' now provides
`call-with-atomic-output-file', which implements the write-and-move
dance that CM uses for compiled bytcode (i.e., `with-compile-output').
The new function is used to write links and installed-package files.

Finally, `racket/base' provides the new function
`call-with-default-reading-parameterization', which is used to guard
various file `read's to make them consistent and avoid security holes.
2013-07-07 11:26:40 -06:00
Sam Tobin-Hochstadt
beea085484 Email me on all Travis builds. 2013-07-07 12:53:33 -04:00
Matthew Flatt
7ef5048961 `filesystem-change-evt' and use repairs 2013-07-07 08:12:43 -06:00
Matthew Flatt
22ab892143 minor Makefile and C fixes 2013-07-07 06:42:00 -06:00
Matthew Flatt
9a3f423c51 redex: "info.rkt" fix for moved documentation 2013-07-07 06:42:00 -06:00
Matthew Flatt
b8e20f5a3e use `filesystem-change-evt' and static roots to speed library search
Use `filesystem-change-evt' (where supported) to detect changes to
collection link files.

Add "static root" as a new kind of collection root directory in links
files. A static root directory is assumed to not change (in terms of
its collection subdirectories) as long as the links file itself does
not change.

Propagate the notion of static roots through `raco link' and `raco pkg
install'.

Change the `pkg-links' makefile target to install static links
instead of plain links.

The result of all of these changes is to cut 25%-33% of the
time for `racket -l racket', bringing it back in line with
the pre-package-reorganization time.
2013-07-07 06:42:00 -06:00
Matthew Flatt
3b0566ea0a add `filesystem-change-evt'
The `filesystem-change-evt' function takes a path to a file
or directory and returns an event that becomes ready when
the file or directory changes (conservatively, so false
positives are possible).

These events are supported on Linux, Mac OS X and other BSD
variants with kqueue(), and Windows.
2013-07-07 06:41:59 -06:00
Matthew Flatt
5d58b2d14d raco setup: fix problem when documentation is not built
Support for pre-rendered documentation could get confused when
the location of source for already-built documentation changes.
2013-07-07 06:41:59 -06:00
Matthew Flatt
580a6cd24a show available snapshots on main page 2013-07-07 06:41:59 -06:00
Eli Barzilay
28fc893c70 Add missing test.
(...which was tested accidentally in the url tests.)
2013-07-06 23:39:23 -04:00
Eli Barzilay
62fc516c24 Avoid duplicating code in test files. 2013-07-06 23:38:33 -04:00
Robby Findler
31fbce7e5a depend on redex-lib instead of all of redex 2013-07-06 14:34:47 -05:00
Robby Findler
5dbc59e8e8 unbreak drracket 2013-07-06 12:43:29 -05:00
Robby Findler
8f539d994b adjust the collection sorting that 'raco setup' so that it works
in our new pkgs world (and has a, hopefully, similar effect)
2013-07-06 11:43:53 -05:00
Matthew Flatt
3afdf8c622 snapshots: access current installers via "current" path 2013-07-06 10:26:18 -06:00
Robby Findler
735c465eff bring down below 102 columns 2013-07-06 10:38:28 -05:00
Robby Findler
c107ad1f77 fix c:c;c:e for empty sequences
closes PR 13905
2013-07-06 10:38:27 -05:00
Robby Findler
50fb71247d get framework tests running again 2013-07-06 10:38:27 -05:00