Commit graph

6114 commits

Author SHA1 Message Date
Richard Feldman
4042fd8d52
Split out work.rs into its own crate 2024-06-16 22:26:58 -04:00
Agus Zubiaga
facae9d56c
Fix platform root module flag
When loading a platform module as the root, the `is_root_module`
flag in `HeaderInfo` would be set to `false`. This caused issues
with docs generation.
2024-06-12 19:00:15 -03:00
Luke Boswell
3976c39c6d
add SystemConfiguration framework 2024-06-12 15:46:45 +10:00
Anton-4
ba506d5257
merge fix 2024-06-11 18:24:22 +02:00
Anton-4
4d00e9ad51
Merge branch 'main' into main
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2024-06-11 18:18:47 +02:00
Anton-4
da95b6d28b
Merge pull request #6791 from shua/concatutf8
builtin: List.concatUtf8 : List U8, Str -> Str
2024-06-11 16:21:30 +02:00
shua
a2c800452e
add branch on ptr width back
apple arm tests are failing, maybe this will fix it?
2024-06-10 23:16:33 +02:00
Anton-4
18394da2a2
update mono tests 2024-06-10 16:32:53 +02:00
Agus Zubiaga
ec23c9a41b
Add missing argument in test_gen helpers/wasm 2024-06-10 10:18:51 -03:00
Agus Zubiaga
a1b84f01f5
Add missing argument in test_gen helpers/dev 2024-06-09 15:25:01 -03:00
John Konecny
a189e3ab20 Warnings are now yellow 2024-06-09 13:23:31 -04:00
Agus Zubiaga
aedb353088
Move main.roc to a constant 2024-06-08 20:23:45 -03:00
Agus Zubiaga
6640893410
Fix test_reporting UNRECOGNIZED_PACKAGE header 2024-06-08 20:23:28 -03:00
Agus Zubiaga
4e5fdfbf52
Handle root type when loading from str 2024-06-08 19:46:41 -03: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
7faff12cbf
Report unrecognized shorthands when loading from the root module 2024-06-08 14:12:01 -03:00
shua
f7bec802c0
PR: rename to List.concatUtf8 2024-06-08 13:36:20 +02:00
Agus Zubiaga
5a1bf2b891
Shorter module_ids lock in load#parse 2024-06-07 18:10:32 -03:00
Agus Zubiaga
f5e08cb917
Use module's parent dir if main roc file is not found 2024-06-07 17:42:04 -03:00
Agus Zubiaga
2da7ea394b
Add --main flag to specify app/package to resolve deps from 2024-06-07 17:09:44 -03:00
shua
33e8a7a439
implement Str.concatUtf8 2024-06-07 19:05:52 +02:00
Agus Zubiaga
75fe98cbaf
Load packages from main package/platform when checking a module 2024-06-06 20:47:50 -03:00
Agus Zubiaga
cf8ab11d27
Load packages from main app when checking a module 2024-06-06 20:25:54 -03:00
Agus Zubiaga
3ff0c986e8
Extract shorthand registration into its own function 2024-06-05 22:16:32 -03:00
Agus Zubiaga
f92bf4852f
Find main.roc when loading a module 2024-06-05 20:24:49 -03:00
Folkert
2cabe6546c
use std::starts_with instead of iterator logic 2024-06-05 17:14:06 +02:00
Kiryl Dziamura
3e5cfb546d
check if when branch is suffixed 2024-06-03 23:45:54 +02:00
Kiryl Dziamura
967da48969
Fix typo 2024-06-03 16:58:40 +02:00
Kiryl Dziamura
8883ab9a91
Desugar expect continuation 2024-06-03 16:58:31 +02:00
Kiryl Dziamura
e86c6235c1
add multiple args test 2024-05-28 11:34:01 +02:00
Kiryl Dziamura
24f6e46c64
panic with unreachable error 2024-05-28 11:26:32 +02:00
Kiryl Dziamura
cc7b656703
add doc comment 2024-05-28 11:00:28 +02:00
Kiryl Dziamura
cbe5d127d7
fix typos 2024-05-28 09:48:54 +02:00
Kiryl Dziamura
ce6e21ff7a
ignore def pattern for function args 2024-05-27 18:21:00 +02:00
Kiryl Dziamura
fb108af73e
ignore comments in repl 2024-05-22 00:51:38 +02:00
Luke Boswell
3a2b27dcdb
default to host libhost for prebuilt platform binary if target specific not found 2024-05-20 19:41:02 +10:00
Richard Feldman
78d77e2f59
Revise wildcard and type var error message 2024-05-13 09:55:35 -04:00
Richard Feldman
18230a7a18
Make some reporting tests more editor-friendly
Previously editors would trim the trailing whitespace on save,
breaking the tests.
2024-05-13 08:22:35 -04:00
Richard Feldman
8357bd8c91
Revise errors for undeclared type vars in aliases 2024-05-12 21:20:11 -04:00
Ayaz
e5ea6dc461
Merge pull request #6708 from roc-lang/module-params-syntax
Parse and format module params
2024-05-12 13:51:13 -05:00
Agus Zubiaga
058079e5cd
Update spaces in import_with_params result ast 2024-05-09 08:02:29 -03:00
Agus Zubiaga
2e4306279c
Handle record update found in module params 2024-05-09 08:01:46 -03:00
Agus Zubiaga
f3b71c46e7
Handle record apply found in module params 2024-05-09 07:55:39 -03:00
Agus Zubiaga
b8280bf69a
Handle import params indent error in reporting 2024-05-09 07:49:21 -03:00
Agus Zubiaga
9be3358355
Module params record parse problem test 2024-05-09 07:45:33 -03:00
Agus Zubiaga
25d3cae08f
Use Loc::at instead of map(|_| x) 2024-05-09 07:42:10 -03:00
Agus Zubiaga
c0bb46517c
Desugar params in imports 2024-05-09 07:42:10 -03:00
Agus Zubiaga
b36f88fd13
Format module params in imports 2024-05-09 07:42:10 -03:00
Agus Zubiaga
e5a09b5de6
Parse module params in import 2024-05-09 07:42:07 -03:00