Commit Graph

29727 Commits

Author SHA1 Message Date
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
Robby Findler
1b86794e29 add gui-test pkg 2013-07-06 10:38:26 -05:00
Robby Findler
f56c94b9f5 bring down below 102 columns 2013-07-06 10:38:26 -05:00
Sam Tobin-Hochstadt
5e8a9780e8 Run the net tests under raco test. 2013-07-06 10:26:56 -04:00
Sam Tobin-Hochstadt
d843237512 Update DrDr documentation with the correct command. 2013-07-06 10:16:59 -04:00
Matthew Flatt
4266e606e3 fix GC bug
This is a variant of the bug fixed in
49fbca5b18,
where a GC-notification callback still
could cause problems in a GC during a finalization
callback.

(Bug found by running tests in GC-stress mode.)
2013-07-06 07:21:46 -06:00
Matthew Flatt
d618a8d616 fix an FFI test case 2013-07-06 07:20:44 -06:00
Matthew Flatt
e3eed89b1d fix GC bug in FFI
A foreign procedure's data could get GCed before the procedure
was called, if the procedure is not otherwise reachable.

(Bug found by running tests in GC-stress mode.)
2013-07-06 07:19:42 -06:00
Matthew Flatt
7e27bda44c move configuration-file info from "INSTALL.txt" to "pkgs/distro-build" 2013-07-06 05:53:01 -06:00
Matthew Flatt
888ec4dae8 snapshot management: add "current" link 2013-07-06 05:51:06 -06:00
Asumu Takikawa
4767c58ac3 Fix some INSTALL.txt typos 2013-07-05 22:06:19 -04:00
Eli Barzilay
8d55b892ec Further explain silent acceptance of unencoded characters.
Also highlight the two tests that use that.
2013-07-05 20:20:49 -04:00