Commit Graph

41100 Commits

Author SHA1 Message Date
Sorawee Porncharoenwase
173fecdff4 Point to the release branch for other workflows 2020-07-20 15:23:24 -04:00
deeglaze
ef2132ced3 Fix some typos in expander comments 2020-07-20 10:38:00 -06:00
Paulo Matos
5daba1fbb1
If CI is running on release branch, use Chez release (#3303) 2020-07-20 16:57:45 +02:00
xxyzz
f477ed289c fix broken build guide link 2020-07-20 09:02:28 -04:00
Paulo Matos
fb3dd84ac9 Define USER to be root
Although we start with user root, the image does not define the USER
env variable to root, which some Chez tests expect.
2020-07-20 09:20:10 +02:00
sorawee
7c903871bd
Fix unchecked struct with custom constructor (#3301)
Fix a bug introduced in #3267

Related to: #3300

Sounds good to me!
2020-07-18 16:32:58 -07:00
Matthew Flatt
39b37dd892 repair inconsistencies with simplify-path
CS didn't always return a complete path when simplifying in
use-filesystem mode. On Windows, CS and BC were inconsistent with each
other and the Unix behavior.
2020-07-17 05:50:16 -06:00
Matthew Flatt
6e3c111728 repairs for build-path on \\?\RED\ paths
A `\\?\RED\` path is Racket- and Windows-specific, and it's an extreme
corner case: a drive-relative absolute path that include elements that
must eb specially esacped. BC's `build-path` incorrectly allowed
`\\?\RED\` to extend an absolute path. CS's `build-path` incorrctly
allowed various absolute-path extensions, including `\\?\RED\` paths.
The documentation was slightly off.
2020-07-17 05:50:16 -06:00
Matthew Flatt
7709287e03 cs: fix split-path on a \-less Windows drive root 2020-07-17 05:50:16 -06:00
Matthew Flatt
6805145e10 cs: protect special filenames from directory-list
For example, return `\\?\REL\\aux` instead of `aux`.
2020-07-17 05:50:16 -06:00
Matthew Flatt
9867d11d68 cs: fix resolve-path to just cleanse when there's no link
Don't convert thet path to absolute, and don't normalize separators on
Windows.

Also, fill in `current-drive`.
2020-07-17 05:50:16 -06:00
Sorawee Porncharoenwase
0f49bc1079 Minor change to the issue template 2020-07-16 20:55:53 -04:00
Matthew Flatt
c18dcd72c7 rktio: fix (consistent) typo in variable name 2020-07-16 07:07:12 -06:00
Matthew Flatt
d2f8c83368 add file-or-directory-type
Since file links and directory links on Windows are disjoint, and the
difference is relevant for operations such as deleting a file,
`link-exists?` is not enough information. Add `file-or-directory-type`
to provide more information and also avoid separate calls to
`file-exists?`, `directory-exists?`, etc.

The `delete-directory/files` function now uses `file-or-directory-type`
so that it will work right with Windows directory links.

Relevant to #3288
2020-07-16 06:53:30 -06:00
Matthew Flatt
1a7c898ea2 windows: allow symlink creation when developer mode is enabled
Relevant to #3288
2020-07-15 16:57:35 -06:00
Matthew Flatt
c8c7fd7043 rktio: avoid over-large read or write request 2020-07-15 16:57:32 -06:00
Matthew Flatt
91acb4293e racket/HISTORY.txt for v7.8 2020-07-15 10:36:15 -06:00
Matthew Flatt
b2aadcc2a5 docs: fix typo 2020-07-15 10:36:15 -06:00
Stephen De Gabrielle
bda8215447
Issue templates (#3254)
Add bug report and feature request templates.
2020-07-15 10:50:19 -04:00
Matthew Flatt
454a586a79 cs: support source-location paths in compiled code
Procedures in compiled code could not previously have source-location
paths that are managed through the write-relative and load-directory
configuration. Instead, paths were always converted to strings that
start "..." --- and those strings were sometimes incorrectly converted
back to paths in context information extracted from a continuation
mark set.

This commit takes advantage of changes to Chez Scheme `fasl-write` and
`fasl-read` (and related for compiling code) to lift paths out where
linklet-level marshaling can take care of them.
2020-07-15 06:44:42 -06:00
Sam Tobin-Hochstadt
c135647d9c
Support -l for raco make. (#2091)
* Support `raco make -l <path>` by analogy to `racket -l <path>`.
2020-07-14 13:33:35 -04:00
Bogdan Popa
3e08f50944
win32: add Power Shell script to set env vars
The added PS script runs msvcprep.bat in a sub shell then reads the environment
variables line by line and sets them in the current shell.
2020-07-14 06:52:18 -06:00
Matthew Flatt
24e226a540 inside: fix typos in CS API 2020-07-13 11:28:03 -06:00
Matthew Flatt
740f345937 bc: improve FFI handling of unions and arrays on Arm
libffi doesn't support unions or arrays, so we have to simulate them,
and the simulation depends on ABI details.
2020-07-13 10:01:04 -06:00
Matthew Flatt
5cc686526b cs: sync with revised fasl compression for code
Sync with changes from cisco/ChezScheme. The specific code fragments
that are compressed and the chunks that are used for compression
remain essentially the same as before for Racket CS, but a different
organization at the Chez Scheme level takes over some of the work that
was on the Racket CS linklet layer, and load times may improve
slightly.
2020-07-13 06:57:45 -06:00
Matthew Flatt
c56b837692 cs: fix addition of memory-order-{acquire,release} 2020-07-13 06:50:15 -06:00
Matthew Flatt
40f07236b9 add memory-order-{acquire,release} 2020-07-11 19:59:27 -06:00
Sam Tobin-Hochstadt
100597f9bb Repair 7f44aaf2bf to check argument length before /. 2020-07-09 21:29:49 -04:00
97jaz
276e3ff7d6
Clarify that synchronizing on a semaphore decrements its counter (#3292) 2020-07-09 10:45:05 -07:00
Matthew Flatt
7dda76b7ce cs: add aarch64-linux
Just a few configuration lines here, since all of the porting work was
at the Chez Scheme level.
2020-07-08 20:22:11 -06:00
Matthew Flatt
38a2b28f85 reference: update fixnum range for CS 2020-07-08 20:04:23 -06:00
John Clements
39a8a50d0a
apparent typo in collection-search looks like error should be raise-argument-error (#3285) 2020-07-08 11:16:22 -07:00
John Clements
38d92bdb30 Post-release version for the v7.8 release 2020-07-08 08:47:14 -07:00
Sam Tobin-Hochstadt
bf86472f11 Adjust name to distinguish sarif files. 2020-07-06 15:49:14 -04:00
Robby Findler
ac4ae9ebba adjust ->i to fall back to the slow path to signal the error
because the existing shortcut didn't gave the right message all the
time.

Closes #3286
2020-07-04 17:41:46 -05:00
Robby Findler
ddacbfa174 edits to make- APIs for projections
mostly making the name of the #:first-order argument be first-order
2020-07-04 16:23:43 -05:00
Sam Tobin-Hochstadt
d62526d290 Upload all scan-build results to GitHub. 2020-07-03 15:37:27 -04:00
Paulo Matos
8343bd2d7c
Move SARIF files to directory with single-level (#3283) 2020-07-03 16:10:18 +02:00
Paulo Matos
b3175b7202
Used tagged docker image pmatos/scan-build:10.0.0
Using latest tag meant builds broke after upstream container file broke the image.
Using tagged image should avoid this.
2020-07-03 11:28:59 +02:00
Ryan Culpepper
497bb25917 read-xml: use {open,get}-output-string instead of list->string 2020-07-02 19:33:13 -04:00
Matthew Flatt
3824ddc5b4 repair a test
Repair a test that is part of 8464896255, because `write-bytes-avail*`
is not obliged to write all bytes.
2020-07-02 15:37:11 -06:00
Matthew Flatt
e0f390c8c8 syntax/strip-context: handle hash tables
Closes racket/scribble#245
2020-07-02 14:42:18 -06:00
Matthew Flatt
d50d74e458 fixup history note in compile-output-ports
The version drifted to 7.7.0.10 before I managed to merge the PR.
2020-07-02 14:15:22 -06:00
Luka Hadzi-Djokic
8464896255
Add combine-output-ports 2020-07-02 14:14:48 -06:00
Matthew Flatt
c40a7ae2fc cs: limit debugging context in continuation marks
In CS, if you interrupt an especially tight non-tail recursion, such
as

 (let loop ()
   (cons 1 (loop)))

then the "context" view of the continuation (as recorded in a
continuation mark set) can take space that is a multiple of the size
of the continuation itself. That's a particular problem if the
too-deep recursion triggers the memory limit in DrRacket, because
DrRacket will then need a multiple of its current heap space to report
"out of memory".

(Note: Just keeping the continuation itself is not a good option,
because that may retain other data referenced by the continuation.)

This commit reduces the heap space used to gather a continuation
context, relying in part on new Chez Scheme support, but mostly it
limits the context length to roughly the same maximum as in BC. The BC
limit is an implementation artifact, but it turns out to have good
properties; informaiton on more than 64k continuation frames is rarely
useful. The limit could be a parameter, but a large built-in limit
seems likely good enough.

(Another note: Adding a limit argument to
`continuation-mark-set->context` doesn't help enough, because it's too
late by that point; too much memory has been used to repersent the
information that's in the mark set.)

The commit also tightens tracking of continuations for memory
accounting, reducing the chance that a thread's large continuation
will be charged to the wrong custodian.
2020-07-02 10:59:02 -06:00
Matthew Flatt
7c7f16ba02 bc: system-library-subpath for aarch64-linux 2020-07-02 08:50:56 -06:00
kryptine
4e1646fea8 Synchronize .github/CONTRIBUTING.md with README.md.
samth said "I don't think the Friendly Environment policy should be thought of as part of copyright issues, or applying only to people who contribute code. Is there a different phrasing that would accomplish what you want here?" I have rephrased the reference to the Friendly Environment Policy and moved it before the License section to avoid confusion with copyright issues.
2020-07-01 22:43:30 -04:00
kryptine
9f8d283e48 Remove top-level CONTRIBUTING.md 2020-07-01 22:43:30 -04:00
kryptine
5e4feed5b8 Add link to the Friendly Environment Policy 2020-07-01 22:43:30 -04:00
kryptine
d9b3645117 Add links to CONTRIBUTING.md 2020-07-01 22:43:30 -04:00