Commit Graph

34756 Commits

Author SHA1 Message Date
Matthew Flatt
d780930056 fix syntax-disarm with a #f second argument 2014-12-12 07:59:16 -07:00
Ryan Culpepper
8f4575eeec db: make sqlite connections managed by custodians 2014-12-12 00:27:30 -05:00
Ryan Culpepper
6039d6cc0b added register-finalizer-and-custodian-shutdown 2014-12-12 00:25:31 -05:00
Juan Francisco Cantero Hurtado
0f4023912c Run the non-default configs tests only with gcc. 2014-12-11 19:43:34 -05:00
Sam Tobin-Hochstadt
be8ac0c5d0 Create the "racket-extra-test" to reduce dependencies.
It initially contains the two tests that use redex-driven random
testing.
2014-12-11 18:15:27 -05:00
Robby Findler
cd2898675f add #:name argument to {transplant,relocate}-{input,output}-port 2014-12-11 14:43:34 -06:00
Juan Francisco Cantero Hurtado
9bd70260b7 Reduce the number of tests on OSX.
Initial work by me and fixes by @samth.
2014-12-11 07:57:57 -05:00
Matthew Flatt
b2add2994c raco pkg: less noisy about consulting local catalogs
The "Resolving..." status reports are meant mainly to indicate when
network access is happening. Don't print in advance when a local
catalog is being used, but do print when a local catalog provided the
answer.
2014-12-09 14:19:53 -07:00
Matthew Flatt
885d2125b9 pkg/path: fix problems with path->pkg and case or nonexistent
The `path->pkg` funciton shouldn't return the name of a package that
isn't installed, including a case-folded version of a package that is
installed. On Windows, where we match case-normalized paths, we have
to work a little harder to map a case-normalized path element to the
installed package name, given that package names are case-sensitive.

Closes PR 14861
2014-12-09 14:09:53 -07:00
Matthew Flatt
195a46a23e fix problem with truncated value printing and stack overflow
A value-printing truncation discovered after a stack-overflow handle
and return could go badly, because the truncation escape wasn't
reset correctly after overflow handling (in contrast to truncation
discovered during the overflow handling, which was handled correctly).

Closes PR 14870
2014-12-09 09:22:12 -07:00
Matthew Flatt
28f4a39ccb reference: fix docs for octal character literal
Bug reported by Emmanuel Schanzer
2014-12-09 09:22:12 -07:00
Matthew Flatt
ab696c3943 pkg/path: fix pkg-info contract in docs 2014-12-09 09:22:06 -07:00
Matthew Flatt
542f5fd3d2 ffi/unsafe/custodian: doc clarifications 2014-12-09 09:10:35 -07:00
Asumu Takikawa
1e5ec02262 Add test props for racket/generic tests 2014-12-08 22:04:50 -05:00
Matthew Flatt
3eac913a78 fix thread-based place implementation
There are some limitations to the places implementation when
`(place-enabled?)` returns #f, but mostly it can work.
2014-12-08 16:45:54 -07:00
Matthew Flatt
06c82877db raco pkg: add trash directory for removed/updated package installations
Packages that are installed as other than a link are not meant to be
edited, but work can get lost if a package is edited and then removed
or updated. Avoid that work loss by moving removed or updated packages
to a trash folder.

By default, the trash folder holds up to 512 packages for up to 48
hours. To disable the trash folder (for a given scope), use

 raco pkg config --set max-trash-packages 0

(I expect that some variant of Greenspun's rule predicted the eventual
inclusion of "backup" management in the package system.)
2014-12-08 16:44:31 -07:00
Matthew Flatt
4bcdb9a3a3 pkg info.rkt: refine specification of distribution-preference 2014-12-08 12:33:00 -07:00
Matthew Flatt
0adf62bfb9 doc clarification on beg0 bytecode form
From Gustavo, and intended to be part of commit
2d95c39051.
2014-12-08 09:17:05 -07:00
Matthew Flatt
8e3ea24b48 get-pkg-context: add #:use-cache? and #:quiet? arguments 2014-12-08 08:57:54 -07:00
Matthew Flatt
99c6f529e5 add makefile step to adjust for movements within "pkgs"
The step doesn't currently adapt to additionals or removals
from "pkgs", so further support may be needed in the future.
2014-12-08 06:36:17 -07:00
Matthew Flatt
4b36a8e9b5 fix handling of "links.rktd" errors 2014-12-08 05:33:09 -07:00
Matthew Flatt
2d4f3e2ac9 remove the "racket-pkgs" directory layer
The layer is now redundant, since everything left in "pkgs" is in the
"racket-pkgs" category.
2014-12-08 05:22:59 -07:00
Matthew Flatt
d6b4523336 pkg/dirs-catalog added
This utility that is needed by `make` turns out to be useful in other
scripts.
2014-12-07 11:19:29 -07:00
Matthew Flatt
25023835b9 adjust status reporting for raco pkg update
Reduce a little noise that was recently introduced.
2014-12-07 10:09:12 -07:00
Matthew Flatt
d400a7fcb1 move unix-installer test to "distro-build-test" 2014-12-07 10:01:58 -07:00
Matthew Flatt
39a9526f35 raco pkg update: recognize a directory that coresponds to a clone link
For example,

 raco pkg update --clone my/clone/test-pkg
 raco pkg update my/clone/test-pkg

will check for updates in the second case, not change the installation
to a directory link.
2014-12-07 10:01:57 -07:00
Matthew Flatt
9c75238cf2 raco pkg: fix path problems with updating a clone-linked package 2014-12-07 09:08:11 -07:00
Matthew Flatt
1cf985031d raco pkg update: allow --update-deps with a linked package
The linked package cannot be updated, but maybe its dependencies
can, so just alert the user that the linked package is skipped
instead of rejecting the request.
2014-12-07 09:08:11 -07:00
Matthew Flatt
8d2e32855e raco pkg: change default answer on clone-sharing conversion to "Y" 2014-12-07 09:08:11 -07:00
Matthew Flatt
2c3f13fe26 raco pkg update: make update to non-clone suggest more non-clone conversions
In other words, suggestion conversions in the non-clone direction the
same as conversions in the clone direction. As a way of disambiguation
the right direction, the non-clone direction is only suggested for
sharing that is immediately discovered from the command-line arguments
(as opposed to sharing that becomes apparent as other packages are
updated or installed via dependencies).
2014-12-07 09:08:11 -07:00
Sam Tobin-Hochstadt
74b86f9104 Now that this isn't an actual package, it doesn't need metadata. 2014-12-07 09:48:35 -05:00
Sam Tobin-Hochstadt
3b71166f8b Move unix installer test to the "racket-test" pkg. 2014-12-07 09:48:27 -05:00
Sam Tobin-Hochstadt
6e3815dcbe Remove mkheart.rkt, which has been moved to the racket/drracket
repository.
2014-12-07 09:41:25 -05:00
Sam Tobin-Hochstadt
755dc4a852 Split meta/images/taking-screenshots from the repository.
This is now in the `racket/taking-screenshots` repository.
2014-12-07 09:26:55 -05:00
Sam Tobin-Hochstadt
93d1fbd0ad Remove release announcements.
These are now in the `racket/racket-lang-org` repository.
2014-12-07 09:24:45 -05:00
Sam Tobin-Hochstadt
93ca457c56 Fix external packages built on drdr. 2014-12-06 23:35:45 -05:00
Matthew Flatt
e2bad60213 make: always raco setup in default target
Use `--no-setup` when installing packages to avoid a
definitely-reundant setup.
2014-12-05 16:57:36 -07:00
Matthew Flatt
f660d47d8b package "info.rkt": define distribution-preference
For now, the client is "distro-build".
2014-12-05 16:57:36 -07:00
Matthew Flatt
846be68ec1 makefile: remove lingering references to special native packages 2014-12-05 16:57:36 -07:00
Matthew Flatt
5af2611704 pkg-directory: add #:cache argument
The cache enables multiple calls to `pkg-directory` to load
installed-package information only once.
2014-12-05 16:57:36 -07:00
Asumu Takikawa
468d77e8d0 More hyperlinks between info.rkt docs
This adds links between most of the pages that
are hits for "info.rkt" in the doc search so that
it's easier to find the field specifications.
2014-12-05 15:29:41 -05:00
Matthew Flatt
2837c995a9 fix continuation reuse in non-JIT mode
The continuation mark to generate stack traces interfered with the
detection of equivalent continuations.
2014-12-05 10:16:56 -07:00
Matthew Flatt
38da2aa2e7 fix a problem mixing JIT and non-JIT code
Crashes the "optimize.rktl" test suite when the JIT supported but
disabled, because that test suite re-enables the JIT.
2014-12-05 10:16:40 -07:00
Matthew Flatt
b7039106e6 restore non-places parallel build
The build protocol had evolved to include paths in messages passed
between places/processes, and that doesn't work with processes.
2014-12-05 10:16:23 -07:00
Gustavo Massaccesi
2d95c39051 simplify treatmenet of begin0 and discarding expressions
Since `begin0` at the bytecode level always evaluates an initial
expression in non-tail position, we don't have to work so hard
to ensure that an extra expression sticks around.
2014-12-05 07:00:40 -07:00
Gustavo Massaccesi
60934f1415 optimizer: more optimizations for begin0
Move begin0 inside begin, for example
(begin0 (begin X Y) Z) ==> (begin X (begin0 Y Z))
Try to replace more begin0 with begin when the first expression is movable
Drop the begin0 when it has only one non omitable expression that preserves
the continuation marks.
2014-12-05 06:56:29 -07:00
Phil Nguyen
fbb6ae98b9 fix tiny typo in arith.rkt in racket guide 2014-12-04 21:56:41 -05:00
Juan Francisco Cantero Hurtado
2e48112cdb Combine some of the tests proposed initially to reduce the number of builds in Travis 2014-12-04 21:56:41 -05:00
Juan Francisco Cantero Hurtado
d0892df1dd Enable some extra tests in Travis CI. 2014-12-04 21:56:41 -05:00
Matthew Butterick
1e06b936cb correct inverted sentences 2014-12-04 21:47:42 -05:00