Commit graph

4827 commits

Author SHA1 Message Date
raleng
1c8bc7d969
Fix formatting block string containing quotes
Single-line block strings are parsed as PlainLines. When the string
contains quotes, this leads to invalid formatted strings. This commit
special cases strings containing quotes the same as strings containing
newlines and formats them to multiple lines using triple-quotes.
2022-08-26 11:36:54 +02:00
raleng
4991adb05b
Fix multiline string formatting
This change adds the proper indentation when formatting multiline
strings to not end up with invalid code. This also make sure that
multiline strings are always formatted using multiple lines, regardless
of the string literal itself contains a newline.
2022-08-26 11:13:37 +02:00
Brian Carroll
601090b0bb
Get rid of Rust warnings in repl_expect on Windows 2022-08-26 08:44:32 +01:00
Brian Carroll
6bae249a71
Add dummy roc_alloc in roc_docs_cli for Windows 2022-08-26 08:44:31 +01:00
Brian Carroll
7caca140b0
Further disable roc_repl_expect on Windows 2022-08-26 08:44:31 +01:00
Brian Carroll
4a4c7b7a11
Fix Rust warnings in roc_cli on Windows 2022-08-26 08:44:30 +01:00
Folkert
1f778db26c
define roc_alloc and friends in cli/src/lib.rs on windows 2022-08-26 08:44:30 +01:00
Folkert
f2b2adb550
attempt to disable roc_repl_expect on windows 2022-08-26 08:44:26 +01:00
Brian Carroll
35de4c6e6e
Merge pull request #3894 from roc-lang/windows-disable-subs-caching
windows disable subs caching statically
2022-08-25 20:50:10 +01:00
Folkert
42d26a20b6
pass return layout along to checked add 2022-08-25 19:35:47 +02:00
Ayaz Hafiz
1c6d423e52
Add comment for why we're ignoring deep specialization tests 2022-08-25 09:41:57 -05:00
Ayaz Hafiz
356ba91f19
Ignore tests that stack overflow on debug builds 2022-08-25 09:22:53 -05:00
Brian Carroll
6a70db7fee
ci: create a CI script to include the web REPL in nightly builds 2022-08-25 08:41:26 +01:00
Brian Carroll
10e88a002d
Fix warnings in roc_load on Windows 2022-08-25 08:30:52 +01:00
Folkert de Vries
a8b83cfe37
Merge pull request #3858 from roc-lang/surgical-generate-dylib
Surgical generate dylib
2022-08-25 09:03:52 +02:00
Folkert de Vries
51d5aa789a
Merge pull request #3870 from roc-lang/dev-backend-div
add int/float division to the dev backend
2022-08-25 09:03:19 +02:00
Folkert
71e78f77a2
disable subs caching on windows statically 2022-08-24 23:16:49 +02:00
Folkert
428b1edf5d
cross-compile hello world (it runs in wine!) 2022-08-24 22:43:09 +02:00
Brian Carroll
6038a5da0d
cli: use memexec crate to execute raw bytes on Windows without spawning a process 2022-08-24 21:36:49 +01:00
Ayaz
f5e1baffda
Merge pull request #3887 from roc-lang/lib-dir-erro
improved lib dir error msg
2022-08-24 12:55:20 -05:00
Folkert de Vries
c06e5cfa32
Merge pull request #3769 from roc-lang/expect-fx-codegen
expect fx codegen
2022-08-24 19:48:42 +02:00
Richard Feldman
7ca0b5e190
Merge pull request #3884 from dit7ya/fix/3875/repl-quit-instructions
Change repl behavior and instructions around quit
2022-08-24 13:36:04 -04:00
Anton-4
53aa346f47
clippy 2022-08-24 17:32:36 +02:00
Folkert
8ca7ee1e14
build zig builtins for windows 2022-08-24 16:59:06 +02:00
Anton-4
25a5303923
improved lib dir error msg 2022-08-24 16:46:55 +02:00
Ayaz Hafiz
238464c505
Get rid of a redundant subs snapshot 2022-08-24 09:01:02 -05:00
Ayaz Hafiz
2afad0127f
Replace snapshot of subs/layout directly with "TypeState" snapshots 2022-08-24 08:53:21 -05:00
Folkert
430c783859
add windows target to the cli 2022-08-24 15:51:54 +02:00
Folkert
7d060e82fc
Merge remote-tracking branch 'origin/main' into expect-fx-codegen 2022-08-24 14:56:46 +02:00
Folkert
592a219f5d
remove test that is not useful 2022-08-24 14:09:16 +02:00
Mostly Void
c5aa453071
Change repl behavior and instructions around quit 2022-08-24 17:34:01 +05:30
Folkert
87988a301b
cleanup 2022-08-24 12:34:08 +02:00
Ayaz Hafiz
eec16fc0ff
Remove old file if it was present 2022-08-23 15:42:54 -05:00
Ayaz Hafiz
3b2e3d515f
Include var in lambda set size traces 2022-08-23 15:42:01 -05:00
Ayaz Hafiz
963911814f
Print traces to files with ROC_LOGTO 2022-08-23 15:37:33 -05:00
Ayaz Hafiz
b3f8ead89d
Add tracing of lambda set sizes in mono layout 2022-08-23 15:20:39 -05:00
Ayaz Hafiz
e5034e7331
Add tracing for external specializations 2022-08-23 14:32:24 -05:00
Folkert
0a2ffc8ba4
rename 2022-08-23 21:20:44 +02:00
Folkert
e609919f39
cleanup 2022-08-23 21:20:23 +02:00
Folkert
daee025ff6
more hardcoding 2022-08-23 21:15:32 +02:00
Folkert
a3a4a5ff3c
some gen_num test cleanups 2022-08-23 20:36:12 +02:00
Folkert
6869c5d5c8
implement signed checked addition 2022-08-23 20:23:01 +02:00
Ayaz Hafiz
2b9013c5f5
Add roc_tracing to test_mono 2022-08-23 13:11:30 -05:00
Folkert
b43c0ac1e3
use RocResult in addChecked test 2022-08-23 20:10:05 +02:00
Folkert
a44afd1383
enable some result tests for the dev backend 2022-08-23 20:08:33 +02:00
Ayaz Hafiz
848facb386
Add roc_tracing crate and initial traces in mono 2022-08-23 12:47:41 -05:00
Ayaz Hafiz
a01583efff
Add derive key tests for able ext vars 2022-08-23 10:41:06 -05:00
Ayaz Hafiz
a8bd529664
Support derivers for tag unions with ext vars 2022-08-23 10:41:06 -05:00
Ayaz Hafiz
2f24c81dab
Support deriving decoder for record with arbitrary ext var 2022-08-23 10:41:06 -05:00
Ayaz Hafiz
b5e59d22e3
Support extension variables in record and tag union encoding derive keys 2022-08-23 10:41:06 -05:00