Ayaz Hafiz
0e52a7e069
Make sure FunctionKind is determined in all entry points
...
There are a lot of entry points for a Roc program. They should probably
be all consolidated into one, but for now, when FunctionKind is needed,
determine it from the environment. This fixes EXPERIMENTAL_ROC_ERASE for
`roc test` etc.
Also print the location of a failure when `internal_error!` is called. I
think this should panic instead, and I thought it used to - does anyone
know if that changed?
2024-07-07 16:01:14 -05:00
Anton-4
1bcf30391b
Merge pull request #6819 from roc-lang/rust-1-77-2-upgrade
...
Rust 1.77.2 upgrade
2024-07-06 03:23:54 +02:00
Luke Boswell
f69d39dffc
Merge pull request #6808 from roc-lang/process-host
...
Update preprocess host API
2024-07-03 10:23:44 +10:00
Ryan Barth
720ed2a457
fix: calculate windows dll symbols from prebuilt shared library
2024-06-30 22:56:14 -07:00
Luke Boswell
ca0ebe613d
Merge pull request #6842 from JackoCoolio/fix-dev-exit-code
...
Make `roc dev someFile.roc` forward exit status
2024-06-28 10:16:45 +10:00
Luke Boswell
ee84b61360
update preprocess host API
2024-06-28 09:12:45 +10:00
Jackson Wambolt
d0f8dbe85b
Clean up roc_dev_native
a bit
...
`writer` is only used by the parent process, so we don't need the
soon-to-be-forked child process to create it just to immediately get
overwritten by `execve`.
2024-06-26 01:49:13 -05:00
Jackson Wambolt
11c9b90551
Get exit code correctly
...
`status` isn't the exit code of the program - the actual exit code is
shifted left by 8 bits. We can get that with a `WIFEXITED` check to make
sure the exit code exists, followed by `WEXITSTATUS` to retrieve it.
2024-06-26 01:49:13 -05:00
Jackson Wambolt
1f0303cf53
Narrow use of unsafe in roc_run_native
...
`roc_run_native_fast` is actually the only unsafe part of the function,
so we probably don't need everything to be wrapped in an `unsafe` block.
2024-06-26 01:43:19 -05:00
Agus Zubiaga
c36595e60d
Load packages of packages
2024-06-25 21:29:21 -03:00
Anton-4
212c736806
macos clippy
2024-06-19 14:11:42 +02:00
Agus Zubiaga
0283bd1d24
UNKNOWN PACKAGE -> UNRECOGNIZED PACKAGE rename
2024-06-08 18:34:45 -03:00
Agus Zubiaga
ec55caa77a
Custom reporting for unknown package when checking a module directly
2024-06-08 18:29:30 -03:00
Agus Zubiaga
2da7ea394b
Add --main flag to specify app/package to resolve deps from
2024-06-07 17:09:44 -03:00
Anton-4
0fb807209b
undo hello world move
2024-05-26 18:58:52 +02:00
Anton-4
08799ea41c
Merge pull request #6769 from roc-lang/replace-site-gen-platform
...
Remove static-site-gen example and replace website with basic-ssg release
2024-05-22 16:18:04 +02:00
Luke Boswell
7962ee1e63
remove linux only breakout tests
2024-05-22 14:06:17 +10:00
Luke Boswell
b775c0e509
move parser cli tests
2024-05-22 13:44:37 +10:00
Luke Boswell
28b6dc11be
move hello world
2024-05-22 13:37:06 +10:00
Luke Boswell
64dba6332d
move argsBROKEN.roc test
2024-05-22 13:35:43 +10:00
Luke Boswell
7cbee42c2c
move ingested-file-bytes.roc test
2024-05-22 13:34:41 +10:00
Luke Boswell
b3f8c4dfd9
move ingested-file-bytes-no-ann.roc test
2024-05-22 13:32:49 +10:00
Luke Boswell
e9c50de4b4
move http-get test
2024-05-22 13:30:47 +10:00
Luke Boswell
3d4bd68580
move file test
2024-05-22 13:29:46 +10:00
Luke Boswell
bb6fb26525
move form test
2024-05-22 13:28:44 +10:00
Luke Boswell
7cff0575b9
move env test
2024-05-22 13:25:54 +10:00
Luke Boswell
eb3ff714cd
move echo test
2024-05-22 13:24:09 +10:00
Luke Boswell
0b9c2b4f42
move countdown test
2024-05-22 13:22:58 +10:00
Luke Boswell
6d90a4c3c1
move ingested-file test
2024-05-22 13:21:15 +10:00
Luke Boswell
d826ac4a40
remove static-site-gen from cli_run tests
2024-05-22 13:15:42 +10:00
Agus Zubiaga
504107f90e
Include ingested files in package tarballs
...
If a package has an ingested file import, we will now add the file
to the tarball.
2024-05-18 02:07:58 +02:00
Anton-4
b5a9dc3ec2
Merge branch 'main' into main
2024-05-10 14:29:09 +02:00
Anton-4
16f3969fc3
minor style improvements
2024-05-08 14:06:14 +02:00
Roland Rodriguez
fae1e4b51e
fix: ensure tests explicitly cleanup temp files
2024-05-06 19:20:43 -06:00
Roland Rodriguez
89f8798a37
close #6723 : Update format_files to list all files
...
Changed the behavior of the format_files function in the Roc formatter to accumulate and list all files that require reformatting instead of stopping at the first file. This update improves the user experience by providing a comprehensive report of all files that need attention after a format check, allowing for more efficient batch updating of files to conform to formatting standards.
2024-05-06 09:54:39 -06:00
Agus Zubiaga
3c52edd0a0
Add ingested file no ann test
2024-05-05 17:00:05 -03:00
Agus Zubiaga
e3b600c282
New package
header syntax
...
Implements the new package header syntax as discussed in Zulip [1].
package [Csv] {
parser: "../parser/main.roc"
}
Old headers still parse and are automatically upgraded to the new
syntax by the formatter.
[1] 418444862
2024-05-01 10:49:03 -03:00
Agus Zubiaga
8dedd9f03c
New app
header syntax
...
Implements the new app header syntax as discussed in Zulip [1].
app [main] {
cli: platform "../platform/main.roc",
json: "../json/main.roc"
}
Old headers still parse and are automatically upgraded to the new
syntax by the formatter.
[1] 418444862
2024-05-01 10:49:01 -03:00
Agus Zubiaga
057a18573a
New module
header
...
Implements the new `module` header syntax as described in "module and package changes" [1]:
```
module [Request, Response, req]
```
The old syntax should still work fine, and is automatically upgraded to the new one
when running `roc format`.
[1] https://docs.google.com/document/d/1E_77fO-44BtoBtXoVeWyGh1xN2KRTWTu8q6i25RNNx0/edit
2024-05-01 10:39:12 -03:00
Agus Zubiaga
eb8ef6241e
Merge branch 'main' into inline-imports
2024-05-01 10:25:17 -03:00
Richard Feldman
7fcf13d14b
Update some tests to use !
2024-04-28 11:26:37 -04:00
Anton-4
3742ef5f42
update basic-cli links to 0.10
2024-04-28 12:45:31 +02:00
Agus Zubiaga
a8a829aadd
Merge branch 'main' into inline-imports
2024-04-28 00:11:29 -03:00
Richard Feldman
052862e0c6
Fix some unused warnings
2024-04-26 22:20:23 -04:00
Agus Zubiaga
6fffaa6dda
Restore disabled roc_cli cli_file_check test
2024-04-23 19:00:10 -03:00
Agus Zubiaga
f69bc2e46f
Merge branch 'main' into inline-imports
2024-04-23 18:57:20 -03:00
Anton-4
29e59dfec9
upgrade to basic-cli 0.9.1
2024-04-23 19:06:33 +02:00
Agus Zubiaga
7ebfc6d06d
Support both inline and header imports
...
Load will now convert header imports to inline import defs, so that
we can support both temporarily.
2024-04-20 19:04:09 -03:00
Agus Zubiaga
3217e5a3f0
Allow dots in import module names
...
We found some issues with the private submodules part of the proposal [1],
and we decided to keep module directories for now.
[1] https://docs.google.com/document/d/1E_77fO-44BtoBtXoVeWyGh1xN2KRTWTu8q6i25RNNx0/edit#heading=h.x84bh32l37em
2024-04-20 12:33:02 -03:00
Anton-4
e4e1d7116c
update to basic-cli 0.9.0
2024-04-13 12:28:16 +02:00