Commit Graph

7921 Commits

Author SHA1 Message Date
Anton-4
aeb644cc50
regex to strip html colors 2024-02-16 19:20:20 +01:00
Anton-4
64113bbf72
fix expect colors 2024-02-16 17:14:49 +01:00
Anton-4
7f947ad00b
removed dbg 2024-02-16 16:34:24 +01:00
Anton-4
f66711d53e
re-use strip_colors 2024-02-16 16:32:46 +01:00
Anton-4
00d1ac0aef
removed duplicate code 2024-02-16 15:13:40 +01:00
Richard Feldman
3b55b64ca6
Update mono tests 2024-02-15 06:47:14 -05:00
Richard Feldman
ada83561e5
Split ListLen into ListLenU64 and ListLenUsize
The usize one gets used internally for things like
pattern matches. This is both more efficient (means
they don't have to do unnecessary casts) and also
less error-prone due to e.g. comparing length to
capacity, which is usize.
2024-02-14 21:00:49 -05:00
Richard Feldman
a15cc0589c
Revert "Fix some usize -> u64 in List patterns"
This reverts commit e8a0b0930d.
2024-02-14 20:17:14 -05:00
Richard Feldman
30712d352a
Silence some unused test macro warnings 2024-02-14 20:16:39 -05:00
Richard Feldman
c2ab73c115
Add a TODO comment for later 2024-02-14 20:16:28 -05:00
Richard Feldman
d674c53b80
Merge pull request #6520 from roc-lang/fix-2-repl-panics
fix two repl panics
2024-02-14 14:48:31 -05:00
Richard Feldman
3aec2a9182
Address some unused warnings 2024-02-14 13:47:26 -05:00
Richard Feldman
adfaefd4b7
Fix some more usize -> u64 in gen tests 2024-02-14 13:43:49 -05:00
Anton-4
719e32e0f0
clippy 2024-02-14 18:18:16 +01:00
Anton-4
38467394cc
fmt 2024-02-14 18:09:41 +01:00
Anton-4
c6b5e2f8c3
less colors more contrast 2024-02-14 17:20:44 +01:00
Richard Feldman
d378a14414
Minor zig refactor 2024-02-13 19:49:11 -05:00
Richard Feldman
5fe9c0d7a3
Remove obsolete wasm-specific test cfg 2024-02-13 12:58:42 -05:00
Richard Feldman
e8a0b0930d
Fix some usize -> u64 in List patterns 2024-02-13 12:50:55 -05:00
Richard Feldman
b2ce7e5fcf
Rearrange where usize -> u64 conversions happen 2024-02-13 12:50:40 -05:00
Anton-4
87ff15905e
Merge remote-tracking branch 'upstream/main' into rename-roc-language-server 2024-02-12 11:58:50 +01:00
Folkert
7c104e291b
fix two repl panics
they now hit a runtime error and then report the type errors that caused the crash
2024-02-11 19:04:26 +01:00
Richard Feldman
ca8f83b896
Use usize instead of pointer type for wasm tests 2024-02-11 12:35:37 -05:00
Richard Feldman
24a38c4a26
Merge remote-tracking branch 'origin/main' into remove-nat 2024-02-11 12:26:36 -05:00
Richard Feldman
50ea255703
Fix some tests that were expecting usize over u64 2024-02-11 12:21:50 -05:00
Anton-4
d08bda6b01
update filenames to new rules 2024-02-09 19:46:39 +01:00
Anton-4
2b64123dbb
clippy 2024-02-09 19:20:41 +01:00
Anton-4
3eec1f4bb0
Merge branch 'main' into ensure-roc-files 2024-02-09 19:15:13 +01:00
Anton-4
b22f793967
Merge pull request #6516 from roc-lang/repl-named-file
repl now uses replfile.roc behind the scenes.
2024-02-09 19:13:42 +01:00
Anton-4
fa48f9713e
repl now uses replfile.roc
Previously this was using an empty filename but that seems potentially confusing during debugging.
2024-02-09 15:18:51 +01:00
Luke Boswell
448c29353e
Merge pull request #6134 from faldor20/lsp_completion
Support for completion in the language server
2024-02-09 18:43:40 +11:00
Trevor Settles
cd4adeb9c1
added nicer indentation 2024-02-08 16:37:46 -07:00
Trevor Settles
5f6d259e5d
updated error messages 2024-02-08 15:25:15 -07:00
Brendan Hansknecht
738a3b5282
update some compiler-rt dce protection 2024-02-08 11:52:25 -08:00
Trevor Settles
4b4ad47312
added test for no file ext or shebang 2024-02-07 10:18:33 -07:00
Trevor Settles
50c8adbbbb
added test for non roc file 2024-02-06 23:10:18 -07:00
Trevor Settles
295e1c9d35
Merge branch 'main' of https://github.com/rtfeldman/roc into ensure-roc-files 2024-02-06 20:31:36 -07:00
Eli Dowling
9ba4436615
Update crates/lang_srv/src/registry.rs
Co-authored-by: Ayaz <20735482+ayazhafiz@users.noreply.github.com>
Signed-off-by: Eli Dowling <eli.jambu@gmail.com>
2024-02-06 18:57:57 +10:00
Brian Carroll
a9a1ae1511
Get rid of dead code warning 2024-02-06 08:17:31 +00:00
Brian Carroll
0f19ecbb86
Handle env vars in debug printing 2024-02-06 08:04:00 +00:00
Brian Carroll
26fdbaf4cd
Create a debug flag for build commands 2024-02-06 07:54:55 +00:00
Trevor Settles
1b757e724c
reverted import 2024-02-05 23:00:49 -07:00
Trevor Settles
bb54832146
added more descriptive error messages 2024-02-05 22:27:17 -07:00
Trevor Settles
2f9ecc7f8e
added no ext error checking 2024-02-05 22:06:53 -07:00
Trevor Settles
2fe506ee50
Merge branch 'main' of https://github.com/rtfeldman/roc into ensure-roc-files 2024-02-04 21:25:15 -07:00
Trevor Settles
5270e896a8
moved file ext handling 2024-02-04 21:24:36 -07:00
Folkert de Vries
0e7fee4e7f
Merge pull request #6486 from roc-lang/remove-unused-lowlevel
Remove unused lowlevel StrGetCapacity
2024-02-04 13:57:46 +01:00
Folkert de Vries
4cbdf08a2d
Merge pull request #6499 from JRI98/fix_6174
Don't skip closure captures when fixing them
2024-02-04 13:57:18 +01:00
Anton-4
b2b55876d3
Merge pull request #6488 from roc-lang/forgot-old-interpolation-syntax
update to new interpolation syntax
2024-02-04 11:03:34 +01:00
JRI98
be30e470a8
Don't skip closure captures when fixing them 2024-02-03 23:19:08 +00:00
Folkert de Vries
8e3c1597c3
Merge pull request #6487 from roc-lang/gen-dev-lambda-name
Avoid generating actual lambda names
2024-02-03 17:26:18 +01:00
Folkert de Vries
3ede352309
Merge pull request #6493 from JRI98/fix_5513
Create symbols for struct fields before record update
2024-02-03 17:24:56 +01:00
Anton-4
c2e4ad6c84
Merge pull request #6445 from ashermancinelli/header-parse-error-message
Better error message for bad packages list
2024-02-03 14:07:52 +01:00
faldor20
32f73b7ea1
clippy 2024-02-03 21:06:09 +10:00
Anton-4
f47b2eb2eb
change wording
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2024-02-03 12:05:15 +01:00
faldor20
718e611c22
moved comment 2024-02-03 20:59:56 +10:00
faldor20
1c7804420a
Added env var configuration for language server timeouts 2024-02-03 20:53:31 +10:00
Anton-4
930e298706
Merge pull request #6492 from roc-lang/basic-cli-8-1
update everything to basic-cli 0.8.1
2024-02-03 04:32:16 +01:00
JRI98
ad6900514b
Create symbols for struct fields before record update 2024-02-02 23:49:48 +00:00
Folkert de Vries
2347c3f667
Merge pull request #6481 from roc-lang/roc-test-inline-expect
make an inline expect triggered by a top-level expect work
2024-02-02 21:35:05 +01:00
Anton-4
76005451cc
update to basic-cli 0.8.1 2024-02-02 20:01:20 +01:00
Anton-4
3c7a834da1
update to new interpolation syntax 2024-02-02 13:39:10 +01:00
Brendan Hansknecht
50f220f878
Avoid generating actual lambda names
This is super slow. When trying to compile a "real" app like rocci-bird or the false interpreter,
the compiler will just hang in repeated calls to this function.

I am not sure if this "fix" is valid. I would assume that hashing the names should be equivalent hashing
the InLayout. The InLayout should be a unique id that maps to the layout. The layout should map to name.
So I think it should be a fix.

I haven't done intensive testing, but this is way way faster.
2024-02-01 21:35:17 -08:00
Richard Feldman
f79ff6d496
Remove unused lowlevel StrGetCapacity 2024-02-01 21:37:16 -05:00
Richard Feldman
6a6c25d32d
Update some docs and names 2024-02-01 21:30:44 -05:00
Brendan Hansknecht
fc6b519b59
Merge pull request #6463 from roc-lang/dec-pow
`Num.pow` for `Dec`
2024-02-01 09:17:55 -08:00
Folkert
41ad915c35
make an inline expect triggered by a top-level expect work 2024-02-01 13:08:01 +01:00
faldor20
ff0514aafc
spelling 2024-02-01 18:17:10 +10:00
Richard Feldman
0b42a902ab
Have List.withCapacity lowlevel use u64 over usize 2024-01-31 20:29:17 -05:00
Brendan Hansknecht
82ddfbb665
Merge pull request #6475 from roc-lang/windows-cc-return-correction
Correct windows return by pointer calculation
2024-01-31 12:30:18 -08:00
Brendan Hansknecht
a03a6d3bd3
Merge pull request #6477 from roc-lang/glue-with-legacy-and-surgical
Update test_glue_cli to use surgical and legacy linker
2024-01-31 02:37:30 -08:00
Brendan Hansknecht
39a90ec32d
Merge pull request #6474 from roc-lang/numeric-match-llvm-18
Change our alignment for 128bit numbers to match correct abi
2024-01-31 01:59:51 -08:00
Brendan Hansknecht
81dcaeceef
Update test_glue_cli to use surgical and legacy linker
I am hoping this will increase the changes of hitting a repro of #5924 with the legacy linker.
2024-01-30 22:30:30 -08:00
Brendan Hansknecht
795c368638
Merge pull request #6340 from roc-lang/pi-is-not-3
pi is not 3
2024-01-30 22:30:17 -08:00
Brendan Hansknecht
47ba132905
Correct windows return by pointer calculation
I always thought this was wrong. Saw it again today and decided to look it up.
Windows will return by pointer for anything over 64bits on an x86_64 machine.

Note: this is wrong for windows aarch64, but I will correct that in a PR where I clean up targets.
https://learn.microsoft.com/en-us/cpp/build/x64-calling-convention?view=msvc-170#return-values
https://learn.microsoft.com/en-us/cpp/build/arm64-windows-abi-conventions?view=msvc-170#return-values
2024-01-30 21:37:51 -08:00
Brendan Hansknecht
f3b934c444
skip more broken glue tests on linux 2024-01-30 20:32:52 -08:00
Richard Feldman
aabd95404f
Merge remote-tracking branch 'origin/main' into remove-nat 2024-01-30 21:42:45 -05:00
Brendan Hansknecht
a925478f8d
Correct wasm32 alignment for 128bit types 2024-01-30 16:53:42 -08:00
Brendan Hansknecht
90a1468e37
Change our alignment for 128bit numbers to match llvm 18 and correct abi 2024-01-30 16:38:30 -08:00
Brendan Hansknecht
e7be9d435d
Merge pull request #6460 from roc-lang/dec-div-floor
`floor`, `ceiling` and `round` for `Dec`
2024-01-30 16:38:12 -08:00
Folkert
164319a07d
pi is not 3 2024-01-30 15:51:49 -08:00
Folkert
73d4a4ee56
wasm: incorrect step used to read RocList elements 2024-01-30 18:51:14 +01:00
Folkert
8c46ab95f2
prepend used wrong layout for alignment 2024-01-30 18:51:14 +01:00
Folkert
e16b25c93e
Num.pow for Dec 2024-01-30 16:33:50 +01:00
Folkert
21b540751a
force interpolated variables to be of type string 2024-01-30 15:04:56 +01:00
Kiryl Dziamura
b3dfdb562b
crash on rem div by zero 2024-01-30 11:12:02 +01:00
Richard Feldman
dd86b11150
Merge pull request #6430 from stuarth/links-in-doc-headers
allow attributes in doc headers
2024-01-29 14:49:04 -05:00
Folkert
2e648cfdd5
add support in llvm/wasm backends 2024-01-29 16:16:06 +01:00
Richard Feldman
7c19b42a99
Merge pull request #6457 from roc-lang/division-by-zero
Division by zero
2024-01-29 08:37:31 -05:00
Folkert
db3b40a07b
Dec floor/ceiling/round 2024-01-29 13:39:38 +01:00
Richard Feldman
3e27e18566
Merge remote-tracking branch 'origin/main' into remove-nat 2024-01-29 07:23:58 -05:00
Eli Dowling
84e8e61fa5
formatting
fix formatting

fixed last formatting issue

Signed-off-by: faldor20 <eli.jambu@yahoo.com>
2024-01-29 21:54:53 +10:00
Eli Dowling
987e0c6c4b
Support for completion of closures
Signed-off-by: faldor20 <eli.jambu@yahoo.com>
2024-01-29 21:54:52 +10:00
Eli Dowling
2da3a2e7a6
remove time based tests
Signed-off-by: faldor20 <eli.jambu@yahoo.com>
2024-01-29 21:54:52 +10:00
Eli Dowling
55b364e76b
Added comment about condvar for waiting on latest doc
Signed-off-by: faldor20 <eli.jambu@yahoo.com>
2024-01-29 21:54:52 +10:00
Eli Dowling
59ed193f67
spelling
removed sleep

Rework comment

Signed-off-by: faldor20 <eli.jambu@yahoo.com>
2024-01-29 21:54:51 +10:00
Eli Dowling
85ed513775
prevented overwriting newer documents during updating
Signed-off-by: faldor20 <eli.jambu@yahoo.com>
2024-01-29 21:54:51 +10:00
Eli Dowling
9e65c28891
added env var for debounce, removed app from tests
Signed-off-by: faldor20 <eli.jambu@yahoo.com>
2024-01-29 21:54:51 +10:00
Eli Dowling
9d02662d2c
added indoc to tests and increased delay to ensure it is longer than change debounce
Signed-off-by: faldor20 <eli.jambu@yahoo.com>
2024-01-29 21:54:51 +10:00
Eli Dowling
22b8c77232
Update crates/lang_srv/src/analysis/completion.rs
Co-authored-by: Ayaz <20735482+ayazhafiz@users.noreply.github.com>
Signed-off-by: Eli Dowling <eli.jambu@yahoo.com>
Signed-off-by: faldor20 <eli.jambu@yahoo.com>
2024-01-29 21:54:50 +10:00