Commit graph

6193 commits

Author SHA1 Message Date
shua
4d0112ef2a
resolve TODO: don't use vec 2024-06-23 16:20:05 +02:00
Anton-4
f8432f7510
fmt 2024-06-22 20:09:15 +02:00
Anton-4
ab217ede3f
Merge remote-tracking branch 'upstream/main' into unmacro_parsers 2024-06-22 20:02:30 +02:00
shua
e2eb9c9aaa
rm dead FIXME comment
this comment was added originally in 24e6cd80e7, but was a comment on a `if cfg(..) {...}` block. Later that `if` was removed but the comment was not, and eventually got copied to another location making it even harder to figure out why it's there.
2024-06-22 19:07:26 +02:00
JRI98
f4551978ce
Handle multi pattern unbound list rest variables 2024-06-21 17:01:49 +01:00
Luke Boswell
03eadc2e0f
Merge pull request #6822 from roc-lang/dependabot/npm_and_yarn/crates/compiler/checkmate/www/braces-3.0.3
Bump braces from 3.0.2 to 3.0.3 in /crates/compiler/checkmate/www
2024-06-21 18:17:19 +10:00
Evan Relf
2a71dccf5e Add tests 2024-06-19 15:19:25 -07:00
Evan Relf
d678f1c049 Format shebangs correctly
Fixes the regression I described in [#1135].

[#1135]: https://github.com/roc-lang/roc/issues/1135
2024-06-19 15:07:22 -07:00
dependabot[bot]
f43c6b2026
Bump braces from 3.0.2 to 3.0.3 in /crates/compiler/checkmate/www
Bumps [braces](https://github.com/micromatch/braces) from 3.0.2 to 3.0.3.
- [Changelog](https://github.com/micromatch/braces/blob/master/CHANGELOG.md)
- [Commits](https://github.com/micromatch/braces/compare/3.0.2...3.0.3)

---
updated-dependencies:
- dependency-name: braces
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-19 21:13:36 +00:00
Richard Feldman
b79ee68729
clippy 2024-06-17 22:25:15 -04:00
Richard Feldman
d2e1428003
Delete worker.rs for now 2024-06-17 22:25:15 -04:00
Richard Feldman
d1a002f49e
Have file.rs use the new roc_worker crate 2024-06-17 22:21:07 -04:00
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