Commit Graph

25323 Commits

Author SHA1 Message Date
Matthew Flatt
27053884d8 pkg catalog sever: get dependencies and implemented modules on update 2013-04-26 10:27:51 -06:00
Vincent St-Amour
385d6dbe83 Fix raco setup bash completion. 2013-04-26 12:27:02 -04:00
Vincent St-Amour
457ca0982f Document VectorTop and HashTableTop. 2013-04-26 12:27:02 -04:00
Robby Findler
6169c5350f fix online check syntax for for-label requires 2013-04-26 10:26:12 -05:00
Robby Findler
e6888828b5 adjust online compilation so that the stack trace attached to an exception
is available by clicking the "Copy" menu item in the bottom bar
2013-04-26 10:26:12 -05:00
Robby Findler
ae5bde175d fix is-a?/c opter 2013-04-26 10:26:12 -05:00
Robby Findler
df4bf43ca3 add missing requires
closes PR 13713
2013-04-26 10:26:03 -05:00
Robby Findler
4bef2987a9 add 'else' support to 2dcond
closes PR 13714
2013-04-26 10:26:03 -05:00
Matthew Flatt
9d43fcad3e raco pkg: GitHub API now requires a User-Agent
Merge to v5.3.4
2013-04-26 07:33:21 -06:00
Matthew Flatt
400e461d75 fix a parameter check 2013-04-26 07:12:21 -06:00
Robby Findler
e8f8217070 Revert "IN PROGRESS: add opt/c to with-contract and provide/contract"
and "IN PROGRESS: working on syntax error messages for 2d"

This reverts commit bbb0d27e85.

This reverts commit 1452563250.
2013-04-25 18:14:21 -05:00
Matthew Flatt
0f47ec4af7 racket/sequence: fix `sequence-ref' for a too-large index 2013-04-25 16:46:23 -06:00
Matthew Flatt
d977a2c65d update kernel parameter checks to new error-message format 2013-04-25 16:46:23 -06:00
Robby Findler
bbb0d27e85 IN PROGRESS: add opt/c to with-contract and provide/contract 2013-04-25 17:32:00 -05:00
Robby Findler
1452563250 IN PROGRESS: working on syntax error messages for 2d 2013-04-25 17:32:00 -05:00
Robby Findler
f07e183617 add missing for-label require 2013-04-25 17:32:00 -05:00
Robby Findler
ec2d57bf80 sequence/c changes
- build the sub projections only once and build them before getting
  the blame objects (instead of after getting the actual values)
- added context information to the blame objects
- added an optional #:min-count argument to insist on a minimum length
  for the stream

related to PR 13709
2013-04-25 17:32:00 -05:00
Vincent St-Amour
e6ff57f3bd Allow read-only hash operations to accept HashTop.
Closes PR13710.
2013-04-25 17:29:10 -04:00
Stephen Chang
1a149eefbd typo in docs: reference: internal definitions 2013-04-25 15:34:37 -04:00
Asumu Takikawa
a15fa5badd Start on a notation section for the Reference 2013-04-25 14:54:29 -04:00
Eric Dobson
b5b13222c8 Make type->contract correctly respect variance.
Track whether we are protecting values from the typed side and/or the
untyped side.

Closes PR 13662.
Closes PR 13663.
Closes PR 13665.
2013-04-25 08:29:37 -07:00
Eric Dobson
dbcb1414da Allow requiring functions with filters in contravariant positions. 2013-04-25 08:29:37 -07:00
Eric Dobson
03e1ffda3e Switch out? to from-typed? as it has the same meaning. 2013-04-25 08:29:25 -07:00
Matthew Flatt
44cfd7cab6 pkg/gui: find an available checkmark glyph 2013-04-25 08:49:15 -06:00
Matthew Flatt
ab9caeb05c pkg/gui: fixes for label widths 2013-04-25 06:14:20 -06:00
Matthew Flatt
306194e9fa racket/gui gtk: preserve button font on label change 2013-04-25 06:05:22 -06:00
Eric Dobson
62f74cda0e Cleanup tc-app-helper.rkt. 2013-04-24 23:31:12 -07:00
Eric Dobson
11bd5314e2 Cleanup requires in tc-apply. 2013-04-24 23:13:04 -07:00
Eric Dobson
b9c4582746 Minor cleanup in subtype.rkt 2013-04-24 23:13:03 -07:00
Eric Dobson
6898a7c880 Fix subtyping of (ListDots t 'a) <: (Listof t).
Closes PR 13636.
2013-04-24 21:08:18 -07:00
Eric Dobson
863ac05332 Fix expected type when typechecking map 2013-04-24 20:13:39 -07:00
Eric Dobson
67dd956b6a Don't let map introduce type variables.
Closes PR 13581.
2013-04-24 20:13:39 -07:00
Eric Dobson
611b22ff04 Fix up lazy-requires and dynamic-requires in TR. 2013-04-24 18:46:44 -07:00
Eric Dobson
a94c449ff1 Small TR fixes. 2013-04-24 18:46:44 -07:00
Eric Dobson
55aba088de Use information of application site, to reduce possible arities.
Closes PR12905.
2013-04-24 18:46:44 -07:00
Matthew Flatt
f450e50354 raco dist: update ELF section when adjusting data size
Merge to v5.3.4
2013-04-24 19:00:24 -06:00
Robby Findler
951538ab90 fix jump-to-defining-file when a stacktrace window is open 2013-04-24 19:56:32 -05:00
Matthew Flatt
ebd7ebea4f raco setup: put launchers for user collections in user space
Also, remove executables (in full setup or "tidy" mode) when the
corresponding collections are removed.

As a result of these changes, `raco pkg' puts launchers from user-scoped
packages in user space and cleans up launchers from removed packages.

There's no attempt to include "launchers.rktd" in a distribution.
That should be ok: having an entry in "launchers.rktd" just
makes a launcher a candidate for removal. Including "launchers.rktd"
would be a hassle for many reasons, including that the initial set
of launchers is platform-specific.
2013-04-24 12:11:42 -06:00
Matthew Flatt
2dc6b2f87f file/gunzip: fix problem with lookahead handling
If less than the lookahead bytes have been pulled in, then the
old code would attempt to read a negative number of bytes.
2013-04-24 09:57:47 -06:00
Matthew Flatt
fd883dbf32 fix a JIT bug related to inlined structure constructors
Merge to v5.3.4
2013-04-24 06:35:53 -06:00
Robby Findler
8f792ca123 make contract structs print a little bit more nicely. 2013-04-23 23:06:23 -05:00
Robby Findler
58869e41af add a few more contracts to those that opt/c recognizes and
fix a few bugs in existing ones

also, adjust opt/c so that it logs failures to optimize on its own logger
2013-04-23 23:06:22 -05:00
Robby Findler
880b841073 modernize a few contracts in drracket 2013-04-23 23:06:22 -05:00
Robby Findler
e689e8bd13 fix contract 2013-04-23 23:06:22 -05:00
Greg Hendershott
c6e2843557 Add optional message flags argument to imap-append.
Previously this was hard-coded to use the \Seen flag. Now that's the
default value when the argument is not supplied.
2013-04-23 15:49:22 -06:00
Matthew Flatt
3779cf6192 fix `exn:fail:filesystem:missing-module-path' 2013-04-23 15:06:26 -06:00
Matthew Flatt
8c7632c025 pkg/gui: first cut at a GUI package manager
For now, run it with `racket -l pkg/gui/main'. The expectation
is that DrRacket will start using this GUI.
2013-04-23 14:05:20 -06:00
Matthew Flatt
8e7ec75ef8 raco pkg: fix `--scope user' option 2013-04-23 13:48:15 -06:00
Matthew Flatt
147d490f24 setup/scribble: avoid top-level state 2013-04-23 13:48:15 -06:00
Matthew Flatt
ca0418d47d ffi/unsafe/objc: remove -A'/+A', add `#:async-apply'
Another run at the problem 57516164de was meant to solve. The
new solution just gives up when a `drawRect:' method is called
in the wrong thread, which might create refresh glitches but
avoids a deadlock in the case that the Racket thread is blocked
on the update happening in the foreign thread.
2013-04-23 13:48:15 -06:00
Matthew Flatt
bba223a9fe ffi/unsafe: allow a constant result for asynch use of a callback
A constant result for foreign-thread use of a callback allows a
callback to return without synchronizing with the Racket thread.
A constant result is thus useful when a callback's work can simply
be skipped if the callback is applied in the "wrong" OS thread.
2013-04-23 13:48:15 -06:00
Matthew Flatt
07fd3676d0 racket/gui cocoa: fix `enable' on window whose ancestor is disabled 2013-04-23 13:48:15 -06:00
Burke Fetscher
2ebc200d3d redex: unfold nts once during unification
Also:
* add a backtracking limit
* check for ground terms in both term and pat environments
  when filling in generated patterns
* update tests to be consistent with the above
2013-04-23 13:26:15 -05:00
Matthew Flatt
fc54bbba3c pkg: "module name resolver" and "index" -> "catalog"
This termonology change affects lots of function names from `pkg/lib'
and `pkg/db' (former `pkg/pnr-db'), and it also affects some `raco
pkg' commands.

Existing package installations that are marked as 'pnr in a
local configuration are converted automatically to 'catalog, but any
existing "indexes" configuration must be changed to "catalogs".
2013-04-23 08:38:07 -06:00
Matthew Flatt
f09d1d1ae8 fix iteration on large hash trees
Bug introduced by 7a8c2ff063: a tree can be deep enough that the
representation of the path to the current item can be too big to
fit into 32 bits. It will always fit in 64 bits, though.

Merge to 5.3.4
2013-04-23 07:15:01 -06:00
Eric Dobson
2e2ef0b57a Add polydots to all things that support it.
Closes PR 13612.
Closes PR 13584.
2013-04-22 21:03:00 -07:00
Eric Dobson
fc36c12ce4 Correctly protect Procedures in TR.
Closes PR 13664.
2013-04-22 21:00:52 -07:00
Stephen Bloch
c24258b45f Corrected error messages in test file to match new wordings. 2013-04-22 20:08:47 -04:00
Matthew Flatt
1749c7ce07 fix a test 2013-04-22 16:32:05 -06:00
Matthew Flatt
74fb6feb45 fix `nack-guard-evt'
The generated NACK shouldn't become ready when the thread where
the NACK is created terminates.
2013-04-22 16:24:25 -06:00
Matthew Flatt
27b7e7dc7e pkg/lib: add pkg-index-update-local' and pkg-index-suggestions-for-module'
Assembles other functions to create and consult a local database of
packages and the modules that the packages implement.
2013-04-22 10:27:02 -06:00
Matthew Flatt
ef0491be07 pkg/pnr-db: fir and document `get-module-pkgs' 2013-04-22 10:27:02 -06:00
Matthew Flatt
1fa80c84e0 pkg/lib: fix `get-pkg-content'
When discovering modules, handle the case that a directory
name doesn't work as a collection name.
2013-04-22 10:27:02 -06:00
Matthew Flatt
4cc320e49d pkg/pnr-db: add `get-pkgs-without-modules'
Also, by default, clear out information for old checksums when
setting a package's information.
2013-04-22 10:27:02 -06:00
Matthew Flatt
ccc7438d41 pkg/lib: add `#:quiet?' options and adjust printing 2013-04-22 10:27:02 -06:00
Matthew Flatt
426a8c0d39 add `exn:fail:{filesystem,syntax}:missing-module'
These exception types are intended as a hook for a programming
environment to recommend packages that can provide a module that isn't
found (through an uncaught-exception handler). The new exceptions are
generated by the default module name resolver and defaultload
handler. In addition to the exceptions, there's a new
`prop:exn:missing-module' property and `exn:missing-module?', which is
what an environment should use to detect relevant exceptions.

There's also a new `current-module-path-for-load' parameter, which
just provides a commuincation path from the module name resolver to
the the load handler. The parameter is a relatively ugly piece of the
puzzle, but it's the best I could find to squash the new functionality
into the existing stack of handlers.
2013-04-22 10:27:02 -06:00
Matthew Flatt
91efc754ba inside: document scheme_fd_to_semaphore() 2013-04-22 10:27:02 -06:00
Vincent St-Amour
1f3e38d305 Print seed used for TR random testing.
To make it possible to reproduce test runs.
2013-04-22 11:55:00 -04:00
Robby Findler
5db7715b27 add an example with html tags and attributes 2013-04-21 20:46:44 -05:00
Sam Tobin-Hochstadt
ecf02a32b4 Add #:omit-define-syntaxes to define-type. 2013-04-21 15:39:38 -04:00
Matthew Flatt
5c4a7db828 scribble/manual: add #:link-target?' to defproc', `defform', etc.
Specifying `#:link-target? #f' gets blue-box typesetting without
declaring documentaton for a binding.
2013-04-21 09:49:14 -06:00
Robby Findler
e12a685107 adjust drracket's online expansion machinery to track exns that are
passed to the error-display-handler during expansion

(not just the exn records that actually get raised)

the motivation is to do a better job with TR's way of signalling
mutiple error messages.
2013-04-21 10:16:07 -05:00
Robby Findler
eb4e89f3ff typo in proc-docs docs. 2013-04-20 22:22:06 -05:00
Robby Findler
085170c441 adjust run.sh so it runs all of the tests 2013-04-20 22:22:06 -05:00
Asumu Takikawa
a9286ce726 Fix doc contracts 2013-04-20 23:17:59 -04:00
Matthew Flatt
2d6fd46720 raco pkg: report when downloading 2013-04-20 09:38:56 -06:00
Matthew Flatt
a9cc79c89b racket/gui cocoa: fix swapping of buttons with the 'border style
Register a button as a default button every time that it is shown,
so that multiple buttons in a frame can have the 'border style
(as long as only one is shown at a time).
2013-04-20 09:38:56 -06:00
Matthew Flatt
82457258e2 mrlib/terminal: create embedded terminal in a container sequence 2013-04-20 09:38:56 -06:00
Matthew Flatt
fd8bde94da racket/gui cocoa: avoid focus-setting loop 2013-04-20 09:38:55 -06:00
Matthew Flatt
075db0bf17 disable a GC test when running CGC 2013-04-20 09:38:55 -06:00
Eli Barzilay
4dfe89a118 Change checksums for -h changes.
Also add completions for some new flags.
2013-04-20 02:04:42 -04:00
Eli Barzilay
02d7f58cc1 raco test: make -r' and -x' mutually exclusive. 2013-04-20 02:04:42 -04:00
Matthew Flatt
96c5521196 scribble/reader: allow escape character to be non-ASCII 2013-04-19 20:46:25 -06:00
Matthew Flatt
b7f17b389a mrlib/terminal: generalize to allow an embedded terminal
That is, instead of always creating a new frame, allow the terminal
GUI to work as a panel.
2013-04-19 15:30:36 -06:00
Matthew Flatt
71aa65c33c pkg/lib: fix `installed-pkg-names' 2013-04-19 15:30:35 -06:00
Matthew Flatt
d9649ebdc5 pkg/lib: doc correction 2013-04-19 15:30:35 -06:00
Vincent St-Amour
3415280657 Extra tests. 2013-04-19 14:21:04 -04:00
Matthew Flatt
ff580c212c fix problem with switchable-button tool tip
Closes PR 12562

Merge to v5.3.4
2013-04-19 08:19:47 -06:00
Matthew Flatt
5ec31c8f65 ffi/unsafe: add _double' and _float' tests 2013-04-19 07:54:30 -06:00
Tony Garnock-Jones
38fffd3582 Complain visibly when cannot load GL shared libs, instead of swallowing error. 2013-04-19 07:54:30 -06:00
Matthew Flatt
57516164de ffi/unsafe/obj: add +A' and -A' method modes
On Cocoa, a view's `drawRect:' method can be called from a
heartbeat thread that animates controls. Such a call happens
rarely for a `canvas%' or other class where `drawRect:'
is overridden, but since it can happen, ensure that the
callback runs on the Racket thread.
2013-04-19 07:54:30 -06:00
Sam Tobin-Hochstadt
3fd9df03f7 Fix types of system etc for new keyword arguments.
This requires extending the ->optkey type constructor to support rest
arguments, and fixing the keyword function type generation code.

Testing is still limited because there's no parsing for such types.
That will be handled in a later commit.
2013-04-18 21:01:56 -04:00
Stephen Bloch
6740ab5748 Corrected a variety of wrong-arg-type error messages for map-image,
build-image, et al.

Please merge to release branch.
2013-04-18 12:40:38 -04:00
Matthew Flatt
e29878e7ae racket/system: make `system', etc., set PWD by default
That is, make `system' behave like a shell.
2013-04-18 07:02:05 -06:00
Matthew Flatt
4cc29194d1 Unix: initialize `current-directory' from the PWD environment variables
... when PWD is defined and when it refers to the same directory
as the result of getcwd().

A shell sets PWD before starting Racket to communicate a preferred
way of referring to the current directory, which may involve soft
links that are not reflected in getpwd().
2013-04-18 06:37:53 -06:00
Eli Barzilay
e311de0522 Improve some printouts.
Specifically the one from ,rr.  Also make ,switch syntax error more
friendly.  Also, test for the recent xrepl fix, including its printout.
2013-04-17 16:39:10 -04:00
Eli Barzilay
ff461c0bee Sync sanity path checks to the modified configure paths. 2013-04-17 14:52:28 -04:00
Matthew Flatt
3e1ecc41b4 demote some `raco' commands
The commands `link', `pack', and `unpack' are now
discouraged in favor of `pkg'.
2013-04-17 12:28:50 -06:00
Matthew Flatt
51d48f3ab4 raco setup: --tidy mode (as needed by `raco pkg remove') and more
When a collection disappears, then documentation and metadata
cross-references need fixing up based on everything that remains
available, even though other setup actions are confined to
collections that are specifically relevant to the packages. The
new `--tidy' mode takes care of that.

Package installation now also provides `--avoid-main' when working
with packages in a scope other than installation scope, and `raco
setup' now better respects `--avoid-main' to avoid creating
executables or re-running documentation.

Also, revise the `raco' documentation to better orient it toward the
package manager.
2013-04-17 12:28:50 -06:00
Matthew Flatt
bcb05bc8cf raco setup: protect against bad info-domain cache 2013-04-17 12:28:49 -06:00