Commit Graph

30312 Commits

Author SHA1 Message Date
Robby Findler
0e1a380f49 attempt to clarify the eof insertion that drracket's repl does
also fix some interactions that were using old-style printing
(but in #lang racket, which doesn't print that way)
2013-08-18 18:13:40 -05:00
Matthew Flatt
a961b63a25 distro-build/drive-clients: print time before each command 2013-08-18 17:08:57 -06:00
Robby Findler
5d7faf4c72 fix a bug introduced in efd2683301
The bug meant that teachpacks whose names ended
in the extension .ss didn't work right.
2013-08-18 14:39:49 -05:00
Matthew Flatt
e4a4a52ea9 raco pkg install: fix problem with version-triggered updates 2013-08-18 13:38:48 -06:00
Matthew Flatt
884c0bef02 fix problem with inferred package scope
When the user-scope package database hasn't been created, a
parameter to avoid changing the database without a lock
was interfering with other scopes.
2013-08-18 13:23:58 -06:00
Matthew Flatt
67b37add95 make "base" depend on "racket-lib"
The "racket-lib" package has dependencies on native libraries
that are useful to the base libraries (currently only on
Windows).
2013-08-18 12:29:18 -06:00
Matthew Flatt
d9e226824f net/win32-ssl: a native Windows SSL layer
This implementation of SSL ports is less complete than `openssl', but
it's complete enough to drive HTTPS, and so it can be used to download
a package that provides the DLLs needed for the `openssl' library.

The `net/url' library uses `net/win32-ssl' on Windows when `openssl'
is not available (due to the absence of the OpenSSL DLLs).
2013-08-18 10:57:04 -06:00
Robby Findler
2a2ea729ee make drracket's language dialog cope with the
absense of all teaching languages a bit better
2013-08-17 21:13:36 -05:00
Robby Findler
908b036347 fix PR 13970 is a slightly less ugly way 2013-08-17 20:47:05 -05:00
Robby Findler
ef13798cd5 fix circle docs
closes PR 13971
2013-08-17 20:47:04 -05:00
Matthew Flatt
d77004276d meta/pkg-push/push-catalog: don't run in DrDr 2013-08-17 14:00:35 -06:00
Matthew Flatt
80c72ad1dd make the quick install instrustions jusr a little slower
Highlight the git submodule issue, which is likely to surprise anyone
who tries to build on Mac OS X or Windows.
2013-08-17 13:54:34 -06:00
Matthew Flatt
73c458bba0 remove -p' in Windows mkdir' 2013-08-17 13:43:22 -06:00
Matthew Flatt
425ed7b292 fix benchmark harness for compiled test directories
The benchmark harness was written with the assumption that
"compiled" would not exist, but compilation of tests is enabled
by default.
2013-08-17 12:10:51 -06:00
Matthew Flatt
b22b23a8aa fix GUI package manager by-source install
Closes PR 13970
2013-08-17 11:29:30 -06:00
Matthew Flatt
f93f488a5a add PLT_DUMP_JIT_RANGES
This variable is intended to support machine-code tracing
experiments. To enable a dump of ranges on exit, both
define PLT_DUMP_JIT_RANGES at compile time and as an environment
variable at run time.
2013-08-17 08:42:15 -06:00
Robby Findler
9888c7f496 on second thought 5aeca646 is probably wrong and this is probably the right fix
The keys.ss framework test suite seems to confirm this fix, altho
I'm not sure how exactly.

Also tweak the stress test
2013-08-17 08:07:28 -05:00
Mike Sperber
5302353055 Synch German string constants with latest. 2013-08-17 15:02:02 +02:00
Matthew Flatt
72a4191aa9 raco pkg update: allow packages sources as replacements
When an argument to `raco pkg update` is a package source,
use it to place the currently installed package.

Also, make the set of available command-line arguments more
consistent, especially for `raco pkg install` and `raco pkg update`.

Finally, fix the `--update-deps` flag, including checking
the dependencies of each updated packages based on then update,
instead of the pre-updated package.
2013-08-17 06:03:10 -06:00
Matthew Flatt
6baf90e3be Documentation and adjustments to `clear'-related hash and set operations
Document and adjust `hash-clear!', `hash-clear', and `hash-empty?'.

Also, add `hash-copy-clear'.

The clear operations are constant-time for a non-impersonated
hash table, otherwise they always remove keys one-by-one to
trigger the impersonator's interpositions.

The `hash-clear' operation works only on immutable hash tables,
in contrast to the original implementation. The new `hash-copy-clear'
works on both immutable and mutable hash tables. The "copy"
in its name is meant to suggest a difference with `hash-clear',
even on immutable hash tables: any chaperone on the input
is not on the outpue.

Change `set-clear' to be like `hash-clear', and add
`set-copy-clear'.

(Changes are in consultation with Carl.)
2013-08-17 06:03:10 -06:00
Robby Findler
5aeca646d4 fix a bug found by the lexer stress test
Unfortunately, not the bug I was hoping to find.
This bug appears to be very old, however; perhaps
as old as the colorer itself.
2013-08-17 06:09:23 -05:00
Robby Findler
42566f1dc4 add a "random clicking" test for the 2d lexer 2013-08-17 06:09:23 -05:00
Matthew Flatt
c02aeb75f0 scribble-lib package: keep "doc" subcollection in source package 2013-08-16 16:59:46 -06:00
Matthew Flatt
8eac4c18e8 meta/pkg-push: extra dependency note 2013-08-16 15:25:41 -06:00
Matthew Flatt
2b1b41cd50 make site: fix PDF doc link 2013-08-16 15:25:40 -06:00
Matthew Flatt
6fc868d5b9 raco pkg show: note when auto-installed packages are not shown
Otherwise, imagine uninstalling packages without `--auto', using `raco
pkg show' to confirm that none are left, and be surprised by a later
error about installed packages.
2013-08-16 15:25:40 -06:00
Matthew Flatt
6b8d84c745 meta/pkg-push: fix typo 2013-08-16 15:25:40 -06:00
Robby Findler
a953425af4 adjust htdp tests for the change to require in 736c8ca12b 2013-08-16 16:05:38 -05:00
Robby Findler
efd2683301 adjust the drracket, menu-based teachpacks to be found via info.rkt files
Pre 6.0, the teachpacks were found using collection-path, but that doesn't
work anymore. Pre this commit, they were found by using

  (collection-file-path "image.rkt" "teachpack" "htdp")

and

  (collection-file-path "image.rkt" "teachpack" "2htdp")

and then looking for files in the same directory. This worked, but is
a total hack.

This commit changes to an info.rkt-based setup, but the changes ended up
percolating around the teachpack & teaching languages implementation more
than I would have liked (specifically because the internal
datastructure for a teachpack references was an sexp of the form:

  `(lib ,(? string-without-slashes?) ...)

but now teachpack references can be arbitrary results of
path->module-path, which never seems to be the above (instead using
the slash-based `lib' module paths)).

So a bunch of places in the teaching langauges code changed to
recognize the right slashes for the teachpacks that have always been
there to preseve the DrRacket API and fall back to just showing the
module path otherwise. There may be places I've missed, tho, that
are expecting the simple lib form and may now be surprised.

On the upside, 3rd parties (via new packages) can now add things
to the teachpack menu item. On the downside (beyond the likely
bugs I've just introduced in this commit), we're supposed to be
getting rid of this dialog, not making it more extensible.
2013-08-16 14:08:41 -05:00
Robby Findler
736c8ca12b loosen the syntactic restrictions on htdp teaching languages' require
Specifically, allow single-argument 'lib' require specs
2013-08-16 14:07:56 -05:00
Robby Findler
21ac868253 use new shrink-path-wrt in drracket 2013-08-16 14:07:56 -05:00
Robby Findler
27e9759bd5 add shrink-path-wrt 2013-08-16 14:07:55 -05:00
Robby Findler
c3e81c8d16 typo 2013-08-16 14:07:55 -05:00
Matthew Flatt
1347073cc5 fix immutable hash tree balancing
When an existing entry in the AVL tree for an immutable hash
is replaced with a new one, the new one did not always get
the right depth, which could throw off the tree balance.
2013-08-16 11:35:40 -06:00
Matthew Flatt
6a6d60dd5f setup/dirs: add `find-user-links-file' 2013-08-16 10:24:18 -06:00
Matthew Flatt
f8a225f741 faster paths for parameter lookup
Calling a parameter function (with no arguments) can be 2-3 times
as fast as before.
2013-08-16 10:24:18 -06:00
Matthew Flatt
8e20aa1cbf fix some missing native-library dependencies 2013-08-16 10:24:17 -06:00
Matthew Flatt
494a428a94 meta/pkg-push: add module and dependency information 2013-08-16 10:24:17 -06:00
Matthew Flatt
6035db418f pkg/lib: add `pkg-directory->module-paths' 2013-08-15 18:18:42 -06:00
Matthew Flatt
21bba8a10b package system: clients extract version-specific info from a catalog result
When a client sends a query to a package catalog, it includes a
version number in the query, and a package catalog can customize its
response to the version. That approach allows evoluation of the way
that versions are mapped to results, but it does not allow a
directory-implemented catalog to offer version-specific information.
Allowing both the server and the client to filter on the version is
even more flexible, and in particular allows a directory-implemented
catalog to include version-specific mappings.
2013-08-15 18:18:42 -06:00
Matthew Flatt
d97950cbe7 pkg catalog protocol: document 'versions field 2013-08-15 18:18:42 -06:00
Matthew Flatt
fb62686d8a raco pkg catalog-{show,copy}: add `--version' flag 2013-08-15 18:18:42 -06:00
Matthew Flatt
6235da4e58 fix docs for `call-with-default-reading-parameterization' 2013-08-15 18:18:42 -06:00
Carl Eastlund
47a568c490 Moved tech terms for "implemented" and "supported" generic methods.
These terms are now documented with define-generics rather than gen:set, and the
terms are "implemented generic method" and "supported generic method" rather
than the over-general "implements" and "supports".
2013-08-15 20:12:44 -04:00
Carl Eastlund
acc4afad6f Added raise-support-error and exn:fail:support to racket/generic.
The exn:fail:support exception is used to signal "unsupported" values for
generic methods, e.g. a vector as argument to dict-remove.  Right interface,
just the wrong kind of instance.  The exception type helps define the notion of
a "supported" method, since a method might have a fallback implementation yet
some values are not considered "supported".
2013-08-15 20:10:31 -04:00
Stephen Chang
766761f6b4 edit docs for gen:set methods
- classify methods into 3 categories:
  - no fallbacks
  - fallbacks that require an "implementation" of another method,
    ie not another fallback
  - fallbacks that require "support" of another method
    --- can be another fallback
2013-08-15 14:44:50 -04:00
Robby Findler
a496cb5a17 Define the pre-installed teachpacks to be those teachpacks
that are in the same directory as the image teachpack (for
htdp and htdp/2e)

closes PR 13967

This isn't the best solution: it would be better if I could
get the directory containing any collection whose name is
teachpack/htdp, but that doesn't seem easy with the current
set of functions

also, bring down below 102 columns
2013-08-15 12:53:40 -05:00
Robby Findler
3980acef04 fix cmd-. shortcut's call to set-position
(so it no longer sets the range to a strange thing (in some cases))
2013-08-15 12:53:39 -05:00
Matthew Flatt
6b16d0b9de cm: change an "internal" error to show OS-level error 2013-08-15 06:21:19 -06:00
Matthew Flatt
ec38dbb99a Makefile: fix source mode for snapshots 2013-08-15 06:21:19 -06:00