Commit Graph

5231 Commits

Author SHA1 Message Date
Eric Dobson
698080afc0 Remove unused code. 2013-05-29 08:58:43 -07:00
Eric Dobson
18bddbacd2 Remove unused feature. 2013-05-29 08:58:43 -07:00
Eric Dobson
6033c49795 Add test for duplicate annotations. 2013-05-29 08:58:42 -07:00
Eric Dobson
4b6c252fb7 Remove syntax-map. 2013-05-28 22:26:46 -07:00
Eric Dobson
84d3051fee Make resolve actually do all the necessary resolutions. 2013-05-28 20:21:31 -07:00
Sam Tobin-Hochstadt
499bcefa1d Register scoped type variables for internal def. annotations.
Closes PR 13793.
2013-05-28 18:03:41 -04:00
Vincent St-Amour
0e7940ab49 Fix broken test, again. 2013-05-28 15:45:09 -04:00
Vincent St-Amour
069ff59a4b Fix broken test. 2013-05-28 13:08:00 -04:00
Vincent St-Amour
d9264525bd Don't splice in vector creation when optimizing vector-length.
Closes PR13788.
2013-05-28 11:57:00 -04:00
Robby Findler
404a314887 add GUI support for compile-enforce-module-constants to DrRacket
closes PR 13781
2013-05-26 22:36:41 -05:00
Eric Dobson
01a88f8db1 Make scoped type vars work only for explict Alls and annotations.
Solves major issue disscussed on PR 13586.
Closes PR 13622.
Solves issue when typechecking lambdas with types like (All (a) Any).
Closes PR 13596.
Closes PR 13539.
Closes PR 13703.
2013-05-25 13:01:02 -07:00
Nadeem Abdul Hamid
b71e44ea9a Tweak auto-parens behavior of double quote typed in a string
so that it results in the string split into two strings or,
in case part of the string is already selected, three strings,
where the selection is retained in the latter situation.
2013-05-25 08:40:35 -05:00
Eric Dobson
803f1db884 Add a test which times TR module loading. 2013-05-24 20:42:01 -07:00
Matthew Flatt
70caf5f509 raco pkg create, raco setup: add support for built (source+binary) packages
This change removes `rendered-scribblings' as a recognized "info.rkt"
definition (which was added for binary packages, but now `scribblings'
serves both roles).

The `raco setup' changes involve support for moving pre-rendered
documentation into place (where "moving" may actually mean
leaving it in place but updating the "local-redirect.js" path),
but also allowing documentation to be re-rendered.
2013-05-24 14:55:39 -06:00
Matthew Flatt
4603315474 raco pkg create --binary: strip ".dep" files, ertain submodules, ~ files 2013-05-24 14:55:39 -06:00
Eli Barzilay
a97181f024 Protect strings from regexps.
Fixes PR13768.
2013-05-22 13:19:13 -04:00
Eli Barzilay
c2280ed8dc Misc improvements to `net/uri-codec'.
Fix a bug in encoding strings with characters between 128 and 256, avoid
extra bindings for conversion vectors; remove calling `noels-tests' from
`main' since it's already called from `tests', etc.
2013-05-22 13:19:12 -04:00
Asumu Takikawa
34aeaee672 Expend printing fuel in all branches
This makes (:type (Number -> Integer)) produce
(Number -> Integer) instead of expanding at the first name.
Combined with expansion cues, this makes it easier for users
to expand the relevant parts of types.
2013-05-21 11:19:49 -04:00
Asumu Takikawa
19c5d3eaad Cue user about unexpanded type aliases
This tells the user that more type aliases are
available for expansion. For example, (Listof Number)
has the alias Number still unexpanded into the union
that it represents.
2013-05-21 11:19:02 -04:00
Robby Findler
d1fb3e2c17 fix object/c's blame context manipulations
Specifically,
- add field and method contexts, and
- declare methods in object/c contracts to be #:important

closes PR 13765
2013-05-20 22:16:54 -05:00
Jay McCarthy
857cdfce64 Fixing PR13748 2013-05-20 15:47:14 -06:00
Matthew Flatt
a48154a665 fix problem in `free-identifier=?'
Renamings created by a rename-transformer binding were not treated
correctly by `free-identifier=?'.

Closes PR 12623
2013-05-20 14:36:54 -06:00
Asumu Takikawa
1f5b262f6d Add a #:verbose option to :type.
This prints the old way, expanding all aliases inside the type.
2013-05-20 16:14:23 -04:00
Asumu Takikawa
fd33584b6f Cut off type printing with :type at one level
Makes types print nicer with :type in most cases.
Previously, the printer expanded type aliases as much
as possible. Now, it defaults to a single level of expansion.
A later commit adds a #:verbose option to show the entire
type.
2013-05-20 16:14:14 -04:00
Jay McCarthy
bd2d17e653 Fixing error in GC1 found by Mark Engelberg, but fixed in GC2 2013-05-20 12:47:12 -06:00
Robby Findler
0ca35b1f6a automate some overlapping identifier tests 2013-05-20 10:47:02 -05:00
Robby Findler
299063d7c1 Adjusted check syntax to properly deal with different identifiers
that have overlapping ranges in the editor; also got rid of the
id-set stuff

Getting rid of the id-set information that was computed means that now
the mouse-over green bubbles, the "jump to next binding occurrence"/
"jump to bound occurrence" keybindings/menu items, and the renaming
are all being computed from the arrows information as needed, instead
of building up sets as check syntax collects information. This may
change the way Check Syntax behaves in some cases; so far the only
example I've found has been strange and are arguably for the
better. Specifically, this program

  (define-syntax-rule (m x) (λ (x) x)) (m z)

no longer draws a green bubble when you mouse over the "z", since
there are no arrows (the only arrow that might have been drawn is
discarded since its start and end points are the same place).

This speeds up the "analyze the expanded code" phase of check syntax,
making it approximately 1.6x faster than before (going from about 31
seconds to about 19 seconds for this phase for the
drracket/private/unit.rkt file (on my machine)). Also, the replay
phase is probably a bit faster now, tho, too: there were 1.07x fewer
elements to process in the trace that comes back from online check
syntax now for that same file (33063 to 30842)

Note that this is only that one phase: this doesn't count the time to
actually expand the program (the dark blue bubble phase) nor the time
to send the results between places, nor the time to replay the
collected information (the light purple bubble phase).
2013-05-19 20:30:37 -05:00
Asumu Takikawa
3eb4a75613 Fix parsing of (Struct ...) types.
This was a regression that appeared in 5.3.1
2013-05-19 20:32:32 -04:00
Asumu Takikawa
c2672dd6c9 Clean up unit tests
Remove #; comments because they break paredit. Enable some
commented tests that should pass.
2013-05-18 10:17:50 -04:00
Asumu Takikawa
23d39a9968 Fix regression for (begin) and simplify 2013-05-17 00:33:10 -04:00
Matthew Flatt
198a65a5fc raco pkg create: support "source" and "binary" bundling
Adds `--from-dir' and `--from-install' flags to select the interpretation
of the argument as a directory or as the name of an installed package.
Relevant to PR 13669

Adds `--as-is' (the default), `--source', and `--binary' flags to
select a pruning mode.

The `raco setup' tool recognizes a `rendered-scribblings' specification
in "info.rkt" to trigger moving rendered documentation into place,
registering its tags in the cross-reference database, and fixing up
references to "local-redirect.js"; the presence of a "synced.rktd"
indicates when those fixups have been performed (since, if the package
is installed in a user-specific scope, the documentation doesn't actually
move anywhere). Finally, "out<n>.sxref" needs to report paths relative to
the documentation's directory, and then the relative-directory references
need to be suitably resolved at derserialization; some support for such
relative paths was in place, but it wasn't quite general enough before.
2013-05-16 11:50:04 -06:00
Matthew Flatt
332c863e78 raco pkg: don't treat "info.rkt" as a conflict
Even though "info.rkt" files are in collections, `raco setup'
treats them in a directory-specific way --- and that's necessary
for specifying things like `compile-omit-files' in a collection
splice.
2013-05-16 11:04:23 -06:00
Matthew Flatt
d350869d10 fix thread-creation problem
When starting a thread, the thread was created and partially
initialized before trying to get a name for the thread from the given
thunk, but getting a name for the thunk could trigger scheduler
descisions, which could get confused by the partially initialized
thread.
2013-05-15 09:18:46 -06:00
Robby Findler
a0c9dfd54e make contract-out signal more errors in terms of itself
instead of provide/contract

closes PR 13752
2013-05-15 09:43:04 -05:00
Robby Findler
c981c55768 adjust contract test suite to do more provide/contract => contract-out
rewriting in order to test contract-out more
2013-05-15 09:43:03 -05:00
Asumu Takikawa
67beb11cf6 Make require/typed work at top-level
Closes PR 13747
2013-05-14 15:25:43 -04:00
Vincent St-Amour
ab5075bc76 Fix test for TR's for source locations. 2013-05-14 12:04:15 -04:00
Asumu Takikawa
f3e6276f9b Make define-type work at top-level
Closes PR 12913
2013-05-13 17:14:22 -04:00
Vincent St-Amour
a857256c77 Limit memory in all sandboxes used by the TR random tester. 2013-05-13 16:46:00 -04:00
Vincent St-Amour
5de08f06b4 Fix type of sinh.
Found using random testing.
2013-05-13 16:46:00 -04:00
Robby Findler
9932ef33f7 move the slideshow/pict library to its own collection
also, adjust all of the requires in the tree to point to the pict
collection
2013-05-12 22:07:58 -05:00
Asumu Takikawa
6bc6e8e07e racket/generic: fix kw args with #:defaults
Closes PR 13737
2013-05-12 16:36:13 -04:00
Asumu Takikawa
ae7741fe60 Add tests for commit e53b0858c3 2013-05-10 15:42:41 -04:00
Robby Findler
20ad11a830 add immutable hashes to printable/c 2013-05-10 08:20:59 -05:00
Eli Barzilay
61b721dd81 Combine the two zo-size tests into one.
Also beautify the output.
2013-05-09 11:11:07 -04:00
Eli Barzilay
c228b13f9f Make the stop value for `in-producer' optional.
There are many cases where you just want to use some other tool like
`#:break' to stop the iteration, so no need to make up a bogus stop
value and no need to spend time checking it.
2013-05-09 11:11:06 -04:00
Eli Barzilay
c34129928e Add permutations' and in-permutations'. 2013-05-09 10:20:36 -04:00
Jay McCarthy
f90710156e Forgot to commit example 2013-05-08 16:48:13 -06:00
Ryan Culpepper
aaa9927cbb some random testing for (~r #:notation 'exponential ....) 2013-05-08 12:52:53 -04:00
Ryan Culpepper
2f403859a0 fixed (~r 0 #:notation 'exponential ....) bugs 2013-05-08 12:52:53 -04:00