Commit Graph

8123 Commits

Author SHA1 Message Date
faldor20
c4c372de39
Merge branch 'main' into docs 2024-03-14 23:29:35 +10:00
Trevor Settles
805ca70f75
example and docs for either 2024-03-13 22:10:35 -06:00
Trevor Settles
5714db6528
example and docs for debug 2024-03-13 21:58:45 -06:00
Trevor Settles
956bfdfde0
aero_or_more and one_or_more 2024-03-13 21:21:51 -06:00
Jonathan Schear
72916dfdf8
Add --verbose flag, move per-module test results behind it 2024-03-13 16:59:06 -04:00
Trevor Settles
2fc7b939da
example and docs for map 2024-03-13 14:04:20 -06:00
Anton-4
1efd7615f0
stylistic improvements 2024-03-13 20:27:23 +01:00
Folkert
51a4192659
infer for a proc whether it is OK to pass an argument as borrowed
this only looks at calls to lowlevels right now, not calls to other functions
2024-03-13 20:12:51 +01:00
Folkert
ae88295365
make the lowlevel borrow signature have a static lifetime
no more allocations, yay!
2024-03-13 19:25:05 +01:00
Trevor Settles
6db6629417
examples and docs for word2 and word3 2024-03-12 21:18:30 -06:00
Trevor Settles
b6d5425f6e
examples and docs for word1_indent 2024-03-12 20:42:35 -06:00
Trevor Settles
7884d92e29
example and docs for word1 2024-03-12 20:11:17 -06:00
Trevor Settles
47b537c278
added example for one_of_with_error 2024-03-12 15:43:08 -06:00
Trevor Settles
b146030fff
docs and examples for one_of 2024-03-12 15:03:14 -06:00
Luke Boswell
2c5b085ed5
Merge branch 'main' into extra-completion-data 2024-03-12 09:02:44 +11:00
Eli Dowling
5167d658a7
clippy and formatting 2024-03-12 06:42:40 +10:00
Eli Dowling
bc879c9869
split imports 2024-03-12 06:42:40 +10:00
Eli Dowling
4174bf38d6
cleanup nitpicks and reorganising 2024-03-12 06:42:39 +10:00
Eli Dowling
a7259a2a52
typo 2024-03-12 06:42:38 +10:00
Eli Dowling
cc4453b301
remove alias 2024-03-12 06:42:37 +10:00
Eli Dowling
7a09a31a6a
clippy 2024-03-12 06:42:37 +10:00
Eli Dowling
234d1d7e03
fix the tests that cargo clippy and fmt somehow broke 2024-03-12 06:42:36 +10:00
Eli Dowling
584a21ea7c
typos 2024-03-12 06:42:35 +10:00
Eli Dowling
6c36d5f510
comment cleanup 2024-03-12 06:42:34 +10:00
Eli Dowling
15faf59c6b
removed unneeded imported modules info 2024-03-12 06:42:34 +10:00
Eli Dowling
ed3649fe1f
cleanup refactor and clippy 2024-03-12 06:42:33 +10:00
Eli Dowling
02f0aca18c
remove un-used? 2024-03-12 06:42:32 +10:00
Eli Dowling
c7e60e69a0
Nice formatting 2024-03-12 06:42:31 +10:00
Eli Dowling
ebd9eda7aa
Added formatting for module completion 2024-03-12 06:42:31 +10:00
Eli Dowling
edb076e5df
completionitems have correct type 2024-03-12 06:42:30 +10:00
Eli Dowling
4a872a3ccf
cleanup and comment for clarity 2024-03-12 06:42:29 +10:00
Eli Dowling
b98633f1ba
fixed unwinding of async 2024-03-12 06:42:29 +10:00
Eli Dowling
84f4a5692d
removed aliases completion for now 2024-03-12 06:42:28 +10:00
Eli Dowling
c89c8c3e95
fix formatter crash 2024-03-12 06:42:27 +10:00
Eli Dowling
b9d5979c1f
run rust fix 2024-03-12 06:42:26 +10:00
Eli Dowling
adca9df695
remove unwraps 2024-03-12 06:42:25 +10:00
Eli Dowling
87bf2bf70b
made tests better 2024-03-12 06:42:25 +10:00
Eli Dowling
d681f743c2
made trace logs trace 2024-03-12 06:42:24 +10:00
Eli Dowling
7e6faa536b
types for external completions 2024-03-12 06:42:23 +10:00
Eli Dowling
ae27682de7
stop builtin crash 2024-03-12 06:42:22 +10:00
Eli Dowling
3027fc2284
working completions 2024-03-12 06:42:22 +10:00
David Dunn
a8839108f8
Update mono test files 2024-03-11 18:59:33 +02:00
faldor20
23dd23c337
update builtin comments 2024-03-12 00:39:49 +10:00
faldor20
be71514435
spelling 2024-03-12 00:26:29 +10:00
faldor20
45d994d7d7
clippy 2024-03-12 00:18:01 +10:00
faldor20
ee264981b6
cleanup getting docs for symbol 2024-03-12 00:13:57 +10:00
faldor20
321baf86d1
moved exposed module filtering into docs 2024-03-12 00:02:19 +10:00
faldor20
98b454d1cf
add tests for docs 2024-03-11 23:36:36 +10:00
Richard Feldman
e06b134228
Fix the TagOrClosure case 2024-03-11 10:58:38 +02:00
Folkert
d95bc02145
WIP 2024-03-11 10:58:36 +02:00
faldor20
899dbdd7ec
cleanup tests and whitespace 2024-03-11 16:25:46 +10:00
faldor20
64c25cf4d5
remove prints 2024-03-11 15:35:36 +10:00
faldor20
f3f86ff788
put docs data in correct place 2024-03-11 15:30:47 +10:00
faldor20
3fe3a3439a
cleanup fetching module docs 2024-03-11 15:17:46 +10:00
faldor20
45237c2aa0
move visitor 2024-03-11 15:17:45 +10:00
faldor20
772441dbcb
fixed docs type issue 2024-03-11 15:17:45 +10:00
Trevor Settles
09dbc93b7d
docs and example for and 2024-03-10 21:38:17 -06:00
Eli Dowling
3d80b82973
Delete crates/compiler/load_internal/log.log
Signed-off-by: Eli Dowling <eli.jambu@yahoo.com>
2024-03-11 11:12:07 +10:00
faldor20
2ae44574b2
Add todo to language server 2024-03-11 11:10:36 +10:00
faldor20
f6799cae92
support docs in app, platform and packages 2024-03-11 11:10:36 +10:00
faldor20
d95da9dd5b
completions working 2024-03-11 11:10:35 +10:00
faldor20
0c463555f4
module docs 2024-03-11 11:10:35 +10:00
faldor20
0b56882785
Unannotated types hover 2024-03-11 11:10:35 +10:00
faldor20
cdf218fe7a
first working version of docs hover 2024-03-11 11:10:34 +10:00
faldor20
87af8bd610 clippy and formatting 2024-03-11 10:18:58 +10:00
faldor20
2566d0f983 split imports 2024-03-11 10:18:58 +10:00
faldor20
391b695824 cleanup nitpicks and reorganising 2024-03-11 10:18:58 +10:00
faldor20
72e60ec01b typo 2024-03-11 10:18:58 +10:00
faldor20
6d3fd89f8e remove alias 2024-03-11 10:18:58 +10:00
faldor20
3561d66f62 clippy 2024-03-11 10:18:58 +10:00
Eli Dowling
501748e398 fix the tests that cargo clippy and fmt somehow broke 2024-03-11 10:18:58 +10:00
Eli Dowling
1668d2f5ef typos 2024-03-11 10:18:58 +10:00
Eli Dowling
469026475b comment cleanup 2024-03-11 10:18:58 +10:00
Eli Dowling
a21f987e64 removed unneeded imported modules info 2024-03-11 10:18:58 +10:00
Eli Dowling
505c7c673a cleanup refactor and clippy 2024-03-11 10:18:58 +10:00
Eli Dowling
cb4daf4868 remove un-used? 2024-03-11 10:18:58 +10:00
Eli Dowling
caeb166fb9 Nice formatting 2024-03-11 10:18:58 +10:00
Eli Dowling
76a2fd2fb0 Added formatting for module completion 2024-03-11 10:18:58 +10:00
Eli Dowling
c6f1b8b0b2 completionitems have correct type 2024-03-11 10:18:58 +10:00
Eli Dowling
9680105a19 cleanup and comment for clarity 2024-03-11 10:18:58 +10:00
Eli Dowling
2561ee4707 fixed unwinding of async 2024-03-11 10:18:58 +10:00
Eli Dowling
458c41c896 removed aliases completion for now 2024-03-11 10:18:58 +10:00
Eli Dowling
ad5f7864b9 fix formatter crash 2024-03-11 10:18:58 +10:00
Eli Dowling
62b06a1295 run rust fix 2024-03-11 10:18:58 +10:00
Eli Dowling
eb53f8d99f remove unwraps 2024-03-11 10:18:58 +10:00
Eli Dowling
ff43c4bbcb made tests better 2024-03-11 10:18:58 +10:00
Eli Dowling
3199e9b6cc made trace logs trace 2024-03-11 10:18:58 +10:00
Eli Dowling
cff48fd8d8 types for external completions 2024-03-11 10:18:58 +10:00
Eli Dowling
afb5c6b440 stop builtin crash 2024-03-11 10:18:58 +10:00
Eli Dowling
e809beb882 working completions 2024-03-11 10:18:58 +10:00
Trevor Settles
bf40247aec
example and docs for fail 2024-03-10 15:06:52 -06:00
Trevor Settles
4e33a6c4b3
fail_when example and docs 2024-03-09 21:25:57 -07:00
Trevor Settles
3770b72530
example for succeed 2024-03-09 19:22:54 -07:00
Trevor Settles
c582ad6767
example for skip_second 2024-03-09 18:46:52 -07:00
Trevor Settles
eed1957180
skip_first example 2024-03-09 18:42:33 -07:00
Anton-4
76c47c5d6f
stylistic improvements 2024-03-09 20:47:19 +01:00
Anton-4
0486da933f
use println for clippy
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2024-03-09 16:26:52 +01:00
Hristo Georgiev
ee819cb7d1
Add newline after "Failed with error" msg 2024-03-09 12:54:08 +00:00
Trevor Settles
cad29623f9
loc macro example 2024-03-08 22:37:59 -07:00
Trevor Settles
9c67ae15be
example for optional 2024-03-08 22:04:27 -07:00
Jonathan Schear
71b97572ae
Add test for transitive expects 2024-03-08 14:56:36 -05:00
Jonathan Schear
06daaa06ae
Add transitive expects test roc files 2024-03-08 14:56:36 -05:00
Jonathan Schear
504e00d44d
Group toplevel expects by module, run them separately 2024-03-08 14:56:32 -05:00
Anton-4
5b7b24b320
Merge pull request #6559 from normanjaeckel/FixTypefaceForColoredText
Use constant ANSI code to reset boldfaced colors in reporting
2024-03-08 18:05:19 +01:00
Richard Feldman
c217456f05
Merge pull request #6558 from jschear/js/move_cli_testing_examples
Move cli_testing_examples under crates/cli/tests
2024-03-08 09:43:59 -05:00
Brendan Hansknecht
7d51d2b000
Merge pull request #6556 from roc-lang/string-split-simplify
simplify the string splitting code (by using std.mem.split)
2024-03-07 08:41:36 -08:00
Anton-4
ce606916a3
emit-ir and style improvement 2024-03-06 17:15:34 +01:00
Jonathan Schear
ae6516d54f
Remove remaining usages of cli_testing_examples folder 2024-03-06 09:58:11 -05:00
Trevor Settles
f3666b346b
example for keyword_e 2024-03-05 18:51:28 -07:00
Norman Jäckel
cfb068ec94
Use constant ANSI code to reset boldfaced colors in reporting for CHECK and TEST command. Remove unused color_reset constant. 2024-03-06 00:47:34 +01:00
Jonathan Schear
0b6cf5cbcc
Remove redundant cli_testing_examples folder 2024-03-05 18:37:03 -05:00
Jonathan Schear
813b0010b7
Move cli_testing_examples under crates/cli/tests 2024-03-05 12:21:29 -05:00
Folkert
a2d1a1ddb0
simplify the string splitting code (by using std.mem.split) 2024-03-05 16:51:30 +01:00
Anton-4
d232a843e4
Merge pull request #6543 from roc-lang/minor-linking-cleanup
link_linux code style improvements
2024-03-05 16:31:49 +01:00
Trevor Settles
997222a1ce
removed imports and example for then 2024-03-04 23:14:48 -07:00
Richard Feldman
09e8131667
Merge pull request #6549 from hristog/newline-when-tests-failed
Add a newline when reporting test failures
2024-03-04 12:26:02 -05:00
Anton-4
f620508a37
misc improvements 2024-03-04 17:10:59 +01:00
Trevor Settles
62e6e34470
examples for allocated 2024-03-03 21:55:59 -07:00
Hristo Georgiev
c47fff04d2 Add a newline when reporting test failures 2024-03-03 19:44:04 +00:00
Trevor Settles
3cb0edf958
added and_then docs 2024-03-03 12:34:56 -07:00
Trevor Settles
3f2d2dd908
added and examples 2024-03-03 11:50:24 -07:00
Trevor Settles
58c654a092
removed erroneus wrapping function 2024-03-03 11:32:18 -07:00
Trevor Settles
b7181af8f3
better formatting for word docs 2024-03-03 11:15:09 -07:00
Trevor Settles
ff19d1b834
pass and fail examples 2024-03-03 11:02:02 -07:00
Anton-4
9a6eefdbcf
fix sortAsc sortDesc docs
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2024-03-02 19:33:39 +01:00
Brendan Hansknecht
26e21addee
Merge pull request #6545 from roc-lang/approx-eq-update
Update Num.isApproxEq
2024-03-01 18:06:04 -08:00
Brendan Hansknecht
3c737c19ee
update mono tests 2024-02-29 21:33:32 -08:00
Brendan Hansknecht
f79e93cfdc
Update Num.isApproxEq
The function is now symmetric and using max instead of sum to separate the absolute and relative tolerance.

Reason for change here: https://roc.zulipchat.com/#narrow/stream/304641-ideas/topic/ApproxEq.20implementation/near/419553929
2024-02-29 11:30:01 -08:00
Anton-4
9e05d21b3f
less verbose build debugging 2024-02-28 13:50:48 +01:00
Anton-4
bb0df1ef0a
link_linux cleanup 2024-02-28 12:33:34 +01:00
Richard Feldman
878042bc3d
Revise error for single-quote interpolation 2024-02-27 12:11:54 -05:00
Richard Feldman
ffd72b184b
Fix tests 2024-02-27 11:35:06 -05:00
Richard Feldman
6978ca7bf3
roc format now auto-upgrades string interpolation 2024-02-26 23:08:25 -05:00
Richard Feldman
6f84e24fa5
Merge remote-tracking branch 'origin/main' into more-dollars 2024-02-26 23:06:23 -05:00
Oskar Hahn
06ab08003f
Export all symbols on wasm builds 2024-02-26 15:40:58 +01:00
JRI98
acbbdd0f7b
Improve handling of multi pattern unbound variables 2024-02-23 15:22:23 +00:00
Anton-4
b74653db8e
Merge pull request #6533 from lukewilliamboswell/encode-docs
Docs for `Encode` builtin
2024-02-23 15:50:52 +01:00
Anton-4
67cfe7ece0
List.concat -> List.append
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2024-02-23 14:21:43 +01:00
Anton-4
af389a9792
minor improvement
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2024-02-23 14:08:39 +01:00
Anton-4
df58a4ff07
fix expects
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2024-02-23 13:56:34 +01:00
Luke Boswell
a671c4cdc9
clean up 2024-02-22 19:15:01 +11:00
Luke Boswell
921c90a460
roc-gpt attempt 2024-02-22 19:04:18 +11:00
Anton-4
b5f68bc020
Merge pull request #6525 from roc-lang/fix_text_contrast
less colors and more contrast in terminal
2024-02-20 15:46:13 +01:00
Richard Feldman
3b3a330d73
Merge pull request #6422 from roc-lang/remove-nat
Remove `Nat`
2024-02-20 09:45:36 -05:00
Anton-4
adf88e7282
change underline color 2024-02-19 13:53:01 +01:00
Richard Feldman
12aa775f54
Update mono tests 2024-02-17 13:20:34 -05:00
Richard Feldman
739565e836
Revert "Remove obsolete ListLenUsize"
This reverts commit ad1bca4ac9c40d336522f944df60d61a814435dd.
2024-02-17 13:20:34 -05:00
Richard Feldman
87d4760356
Remove obsolete ListLenUsize 2024-02-17 13:20:34 -05:00
Richard Feldman
762f52b714
Use ListLenU64 where it's needed over ListLenUsize 2024-02-17 13:20:33 -05:00
Richard Feldman
37b154df4f
Remove Str.fromUtf8Range
Seamless slices make this obsolete!
2024-02-17 13:20:33 -05:00