Commit graph

390 commits

Author SHA1 Message Date
ayazhafiz
3456a44742
Only compile and run expects that belong to the same package
In particular, don't run expects that come from modules with a different
package qualification (including subpackages; we can loosen this
restriction later), or builtins when run on userspace apps/interfaces.

Closes #3722
2022-08-28 10:16:55 -05:00
Folkert
a22e04361c
Merge remote-tracking branch 'origin/main' into expect-fx-codegen 2022-08-23 16:28:21 +02:00
Ayaz Hafiz
31d9df96a1
Spellcheck 2022-08-20 10:00:34 -05:00
Ayaz Hafiz
7c6d811769
Report errors without mono when roc foo.roc has errors 2022-08-19 22:19:04 -05:00
Ayaz Hafiz
b809d6d452
Dynamically load find/make specializations graph if there are no type errors 2022-08-19 22:19:04 -05:00
Richard Feldman
97e2900bf5
s/rtfeldman/roc-lang/g in links to GitHub repos 2022-08-12 15:24:09 -04:00
Folkert
82c07590db
thread fx expects to the runner 2022-08-12 14:42:30 +02:00
Folkert
7e6a3ddc15
more boilerplate 2022-08-12 13:50:06 +02:00
Folkert
7c9b1897bb
fully canonicalize expect-fx 2022-08-09 14:50:24 +02:00
Folkert
bcbc8b4d50
basic canonicalization 2022-08-09 13:59:24 +02:00
Folkert
4766c78d61
factor goal phase out of state 2022-08-09 12:45:57 +02:00
Folkert
68888c79ae
skip expect codegen when not running tests 2022-08-06 22:03:56 +02:00
Ayaz
d4e81ccbd2
Merge pull request #3695 from rtfeldman/derive-decoding-list
Derive decoding for lists!
2022-08-05 10:41:24 -05:00
Richard Feldman
0de889c1e9
Rename to_goal_phase, per Clippy's suggestion 2022-08-03 19:50:24 -04:00
Richard Feldman
3136c5fb63
Allow testing interface modules 2022-08-03 19:49:48 -04:00
Ayaz Hafiz
8b63402b1c
Load non-function derived ability specializations correctly 2022-08-03 16:10:44 -05:00
Ayaz Hafiz
57c1bed218
Include Decode aliases 2022-08-02 14:31:17 -05:00
Ayaz Hafiz
fc71e3df04
Add Decode to the load graph 2022-08-01 08:09:22 -05:00
Ayaz Hafiz
0989b2cb82
Move solve problems to their own crate 2022-07-28 08:57:32 -04:00
Ayaz Hafiz
0525c6d616
Import both specializations and declared ability mappings 2022-07-25 10:06:49 -04:00
Ayaz Hafiz
cd0b8577ab
Have load_internal deal with separate declared/known ability specializations 2022-07-25 09:24:58 -04:00
Ayaz Hafiz
e2454f497f
Store declared implementations, both custom and derived, in abilities store 2022-07-25 09:09:01 -04:00
Richard Feldman
cc790a2773
fixup! Rename bindgen_rs to rust_glue 2022-07-24 11:54:40 -04:00
Folkert
6ab0b5069e
run the formatter 2022-07-22 13:45:51 +02:00
Christoph Rüßler
c4f141b735 Use Instant over SystemTime to record timings
Closes #3575.
2022-07-22 10:03:47 +02:00
Folkert de Vries
a432874290
Merge pull request #3592 from rtfeldman/main-dot-roc
Advise using `roc run` with no arg if running `main.roc`
2022-07-21 18:36:39 +02:00
Folkert
2caf58dfd2
show preceding comment in test panic messages 2022-07-21 10:42:58 -04:00
Folkert
5a93da5a11
some work on expect comment regions 2022-07-21 10:42:57 -04:00
Folkert
7597d11b59
parse the region of the preceding comment for an expect 2022-07-21 10:42:57 -04:00
Folkert
9d294b459e
thread top-level expect region through 2022-07-21 10:42:57 -04:00
Richard Feldman
eacc65e07f
Revise message for trying to run non-app modules 2022-07-20 16:58:52 -04:00
Brian Carroll
00d96d5a8b
Merge branch 'trunk' of github.com:rtfeldman/roc into http-sync 2022-07-18 21:02:32 +01:00
Ayaz Hafiz
72c6cf7801
Import Encode in all modules 2022-07-18 12:17:06 -04:00
Brian Carroll
8cf7752514
Improve a debug assert message (triggered by unnecessary import of Box) 2022-07-17 22:00:20 +01:00
Ayaz Hafiz
c98ba441cf
Properly handle immediate derivations 2022-07-15 10:38:11 -04:00
Ayaz Hafiz
e91247a64d
Store ability member lambda sets in storage subs 2022-07-15 10:38:11 -04:00
Folkert
b9ebd4fa27 Merge remote-tracking branch 'origin/trunk' into pretty-expect-output 2022-07-15 09:12:04 +02:00
Folkert
b6224a3806
ugly hack to make the docs build 2022-07-14 22:15:19 +02:00
Folkert de Vries
1b1b63aad0
Merge branch 'trunk' into assoc-list-dict 2022-07-14 16:47:50 +02:00
Ayaz
a9243720da
Merge pull request #3496 from rtfeldman/derive-w-mono
Monomorphize and compile derived implementations
2022-07-14 07:45:21 -05:00
Folkert
06938429a1
Merge branch 'assoc-list-dict' into pretty-expect-output 2022-07-14 00:39:01 +02:00
Richard Feldman
b734986fc8
Use config_shorthand of "" but never a shorthand of ""
This was breaking bindgen's ability to work on some platform modules.
2022-07-13 17:03:32 -04:00
Folkert
ed27e0ea62
Dict and Set are always in scope 2022-07-13 19:36:53 +02:00
Richard Feldman
af39bc5369
Revert "Don't invent shorthands"
This reverts commit 8b6d55df01.
2022-07-13 13:24:48 -04:00
Folkert
8c77899d8f
fix missing field 2022-07-13 18:51:26 +02:00
Richard Feldman
bf63c45b46
Compute src_dir from original filename
This fixed a bug where bindgen was providing cwd() for src_dir,
but actually the src_dir should have been based on the filename.
This prevents that problem from happening in the future!
2022-07-13 12:49:06 -04:00
Richard Feldman
8b6d55df01
Don't invent shorthands 2022-07-13 12:42:43 -04:00
Folkert
fe7882b598
implement expect collector 2022-07-13 16:23:39 +02:00
Folkert
6190fc9f67
trying to gather expects 2022-07-13 15:47:25 +02:00
Folkert
9d0e3e42d3
bring expectation info to the running code 2022-07-13 15:32:02 +02:00