Commit graph

461 commits

Author SHA1 Message Date
faldor20
f3f262574d
Check if a module is using purity inference and enable purity inference effects 2024-12-01 17:16:29 +10:00
Anton-4
3a1f52a55f
update to basic-cli 0.17.0 2024-11-28 20:16:07 +01:00
Anton-4
8e23f96fbd
nightly tests fixes 2024-11-19 11:41:50 +01:00
Isaac Van Doren
d99c347998
rename Str.split 2024-11-15 21:12:23 -06:00
Isaac Van Doren
f33a483502
merge main 2024-11-12 20:55:45 -06:00
Luke Boswell
29012f7d7e
Merge remote-tracking branch 'remote/main' into effectful-builtins 2024-11-13 10:39:08 +11:00
Luke Boswell
5c1eb7efe5
add a cli test that uses echo 2024-11-13 07:47:47 +11:00
Luke Boswell
4b4ab7bc0c
Merge remote-tracking branch 'remote/main' into record-suffix-warn-tweaks 2024-11-13 07:29:31 +11:00
Anton-4
9a3495cfae
minor cleanup 2024-11-12 19:16:20 +01:00
Luke Boswell
98bb9107b5
try unix instead of linux for ignore_attr 2024-11-12 09:37:04 +11:00
Luke Boswell
7295402704
try unix instead of linux for ignore_attr 2024-11-12 09:17:16 +11:00
Luke Boswell
74848bb2e5
ignore expects dev test on linux, needs further discussion 2024-11-12 09:00:37 +11:00
Luke Boswell
aad1df524f
ignore basic-cli tests on linux, broken on nix CI 2024-11-12 08:58:51 +11:00
Luke Boswell
699bea80ad try dont use both linkers on basic-cli tests 2024-11-11 21:59:59 +11:00
Luke Boswell
fb795dae14
update snapshots to use unix slashes 2024-11-11 21:42:24 +11:00
Luke Boswell
af6a7dbf54
ensure Windows git keeps line endings consitent with Unix 2024-11-11 21:27:54 +11:00
Luke Boswell
76942e4253
ignore windows tests that aren't implemented yet 2024-11-11 21:27:46 +11:00
Luke Boswell
def5372e1c fix combine_tasks_with_record_builder cli test on linux 2024-11-11 20:56:51 +11:00
Luke Boswell
fc315f7c67
revert separate test platform commits 2024-11-11 16:59:08 +11:00
Luke Boswell
e4fd9ce434
use crate for test-platform-simple-zig 2024-11-11 13:22:19 +11:00
Luke Boswell
f84aad1967
move effectful test platform into rust crate 2024-11-11 12:58:51 +11:00
Luke Boswell
e4d0115ca4
Merge remote-tracking branch 'remote/main' into rebuild-platform 2024-11-11 11:55:06 +11:00
Luke Boswell
aa98706547
complete merge remote/main into rebuild-platform 2024-11-11 11:32:46 +11:00
Luke Boswell
8a566dc339
WIP 2024-11-11 10:22:58 +11:00
Agus Zubiaga
6d0cec253d
Add List.forEachTry! builtin 2024-11-09 23:13:49 -03:00
Agus Zubiaga
644702a2b3
Add Result.onErr! builtin 2024-11-09 22:17:33 -03:00
Agus Zubiaga
12c735644f
Do not warn about pure functions in suffixed record literal fields
Records fields that allow effectful functions, should also accept
pure functions.
2024-11-09 01:05:06 -03:00
Anton-4
219ebe084a
update everything to basic-cli 0.16.0 2024-11-08 15:51:20 +01:00
Agus Zubiaga
7f8149d386
Ignore all but one cli_run effectful tests on Linux
Things go wrong when multiple tests depend on the same platform
on Linux. Tried a few workarounds but the problem persisted.
We decided to keep only one test for now.
2024-11-07 19:11:57 -03:00
Agus Zubiaga
de2260e67a
Add simple effectful cli run tests 2024-11-07 18:54:22 -03:00
Agus Zubiaga
c9f001b041
Allow ignored defs with an effectful RHS 2024-11-07 18:54:22 -03:00
Agus Zubiaga
cfc4be5254
Treat untyped suffixed functions as effectful 2024-11-07 18:54:21 -03:00
Agus Zubiaga
c1a82ae59b
Merge pull request #7199 from roc-lang/fix-imports-in-expect-7025 2024-11-06 07:56:21 -03:00
Agus Zubiaga
0dedab1725
Fix imports in expects #7025 2024-11-05 19:13:29 -03:00
Agus Zubiaga
6c505a4dc8
Add test for fixed issue 7116 2024-11-05 18:12:56 -03:00
Agus Zubiaga
625a5425f4
Unify import params on copied variable 2024-11-05 18:10:01 -03:00
Luke Boswell
743030fc99
ignore platform-switching rust cli test 2024-11-05 07:41:59 +11:00
Luke Boswell
1b0cd14715
add script to prebuild platform-switching rust 2024-11-04 15:37:34 +11:00
Luke Boswell
81f466fee0
cargo fmt 2024-11-04 13:59:14 +11:00
Anton-4
afd26360a0
removed unused dependency, wasm benchmark debugging progress 2024-10-26 19:59:57 +02:00
Anton-4
82beb35d3f
updated benchmarks to new ExecCli 2024-10-25 20:45:59 +02:00
Luke Boswell
926014518f
Merge remote-tracking branch 'remote/main' into rebuild-platform 2024-10-24 10:21:08 +11:00
Anton-4
9b7c6c9fe7
cleanup warnings 2024-10-23 19:36:03 +02:00
Anton-4
63b8e50d96
refactoring PrebuiltHost, fixed glue tests 2024-10-23 19:30:39 +02:00
Jasper Woudenberg
ad555297cf
Set argv[0] to .roc file passed to 'roc run'
When we run `roc run <file>` or `roc <file>` then Roc will compile a
binary and run it. Before this commit we would set the path to the
compiled binary as argv[0]. This commit changes the behavior to make
argv[0] in the binary correspond to the roc file being ran.

This benefits the use of roc scripts that make use of a shebang:

    #!/usr/bin/env roc

With this change such scripts will be able to read the path to
themselves out of ARGV. This trick is commonly used for instance by bash
scripts in order to access files relative to the script itself.
2024-10-21 21:54:46 +02:00
Anton-4
0e28199b49
fixed valgrind crate 2024-10-21 17:43:22 +02:00
Anton-4
5953155f70
done with cli_tests 2024-10-19 19:25:50 +02:00
Anton-4
37f1c98bf7
finished refactoring benchmarks 2024-10-19 17:23:22 +02:00
Anton-4
9f4c8b18d8
refactoring progress 2024-10-18 20:09:10 +02:00
Anton-4
54ae11be25
finished refactoring simple zig platform tests 2024-10-18 17:45:28 +02:00