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
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
837dc7b7cc
Merge pull request #7154 from DavidEdwards1/allow-check-on-markdown
...
Initial Sketch of roc check on Markdown
2024-10-15 13:54:09 +02:00
Anton-4
734a4e4504
clean up dbg
...
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2024-10-15 12:54:52 +02:00
David Edwards
13ffa9b9db
Initial Sketch of roc check on Markdown
...
This commit alters `roc check` to be able to run on Markdown files. The overall flow is:
- check if the file has a `.md` extension
- if it does extract any fenced code blocks marked as Roc
- write those blocks to temp files
- run `roc check` sequentially on every temp file
- print out the results of `roc check`
- exit early if any individual `roc check` has non-zero exit status
- if the file does not have `.md` extension proceed as before
2024-10-09 21:13:45 +01:00
Brendan Hansknecht
9da9c08015
make the test more robust and actually run it
2024-10-07 21:16:30 -07:00
Agus Zubiaga
3eadc03e28
Add failing test for multiline params
2024-09-20 16:19:56 -03:00
Agus Zubiaga
e4079ccb11
Add module_params_pass_task test
2024-09-01 19:18:07 -03:00
Anton-4
3c679f6338
Merge branch 'main' into lower-module-params
2024-08-30 16:29:46 +02:00
Sam Mohr
3f866d93ae
Ignore false-interpreter test, unrelated issue
2024-08-29 19:50:03 -07:00
Anton-4
7938e4bdc8
basic-cli 0.15, test fixes
2024-08-28 18:39:15 +02:00
Agus Zubiaga
287a8fa2e7
Merge branch 'main' into lower-module-params
2024-08-28 08:50:40 -03:00
Agus Zubiaga
d033057a58
Hide params from annotation type mismatches
2024-08-27 19:06:31 -03:00
Agus Zubiaga
a4f4d00ff0
Add unexpected fn params test case
2024-08-27 17:24:13 -03:00
Agus Zubiaga
dd78b8e25b
Add TOO FEW ARGS test case for params
2024-08-27 17:08:55 -03:00
Agus Zubiaga
121a087328
Handle TOO MANY ARGS error for value defs
2024-08-27 17:04:39 -03:00
Agus Zubiaga
658c6963c5
Remove param arguments from TOO MANY ARGS error
2024-08-27 16:08:26 -03:00
Agus Zubiaga
49a6b1bfba
Capture whole params record when needed
2024-08-27 11:20:59 -03:00
Agus Zubiaga
b70d48fd33
Handle simple params extended def alias
2024-08-27 01:32:08 -03:00
Agus Zubiaga
36df43fadc
Handle simple aliased fn in params value def
2024-08-27 01:27:54 -03:00
Agus Zubiaga
3c6a2f11d7
Capture params in lowered passed fns from importer side
2024-08-27 00:02:26 -03:00
Agus Zubiaga
b667753a32
Capture import params def
2024-08-26 23:31:42 -03:00
Agus Zubiaga
0bf833dae9
Lower passed imported functions
2024-08-26 23:21:18 -03:00
Agus Zubiaga
be4ebfe901
Lower passed top-level functions in a module with params
2024-08-21 20:07:08 -03:00
Sam Mohr
12df3a04de
Merge attempt
2024-08-19 23:34:05 -07:00
Agus Zubiaga
50efed6612
Add dynamic param test
2024-08-17 16:35:48 -03:00
Agus Zubiaga
50887e6265
Capture params in nested defs
2024-08-17 16:13:44 -03:00
Agus Zubiaga
bcd8e7e28a
Lower top-level fn calls in home module with params
2024-08-17 13:44:19 -03:00
Agus Zubiaga
07ec24502e
Lower top-level value references in home module with params
2024-08-17 13:25:17 -03:00
Agus Zubiaga
e80e3e5b2d
Convert top-level value def to fn taking params
2024-08-17 11:21:21 -03:00
Sam Mohr
f9008c3af0
Fix broken CLI tests
2024-08-16 23:37:31 -07:00
Agus Zubiaga
1dd7e0b41f
Test passing function through module params
2024-08-17 01:15:26 -03:00
Agus Zubiaga
97ddae7e3d
Lower params when calling imported functions
2024-08-17 01:03:34 -03:00
Sam Mohr
fdacdbe5ef
Re-ignore false interpreter test on Windows
2024-08-15 07:55:02 -07:00
Sam Mohr
fc5a53a08a
Enable false-interpreter test
2024-08-14 23:26:42 -07:00
Sam Mohr
7e72541a79
Merge branch 'main' into builtin-task
2024-08-12 23:12:38 -07:00
Sam Mohr
698bbc3cf1
Merge pull request #6968 from smores56/ignored-record-builder-fields
...
Ignore underscore-prefixed fields in record builders
2024-08-06 23:36:27 -07:00
Sam Mohr
cb8040f629
Ignore underscore-prefixed fields in record builders
2024-08-06 22:49:35 -07:00
Agus Zubiaga
7027547182
Load platform dependencies
...
We were dropping packages from the platform header while loading.
Closes #6931
2024-08-06 18:15:28 -03:00
Sam Mohr
8288af3156
Merge branch 'main' into builtin-task
2024-07-31 13:36:32 -07:00
Anton-4
d23426ac47
Merge pull request #6941 from roc-lang/improve-tip
...
improve opaque types tip
2024-07-31 13:48:51 +02:00
Anton-4
30a76a092b
improve opaque types tip
2024-07-30 16:06:23 +02:00
Luke Boswell
eca453d07f
Merge remote-tracking branch 'remote/main' into builtin-task
2024-07-29 16:05:51 +10:00
Luke Boswell
7ba44a5cd0
remove gui and swift examples
2024-07-21 19:50:04 +10:00
Luke Boswell
b489c44b19
Merge remote-tracking branch 'remote/main' into builtin-task
2024-07-19 19:51:50 +10:00
Anton-4
3a36d84c45
update to basic-cli 0.12
2024-07-10 20:07:03 +02:00
Sam Mohr
fe1b6d71fc
Update from PR comments
2024-07-07 18:33:20 -07:00