Commit Graph

26036 Commits

Author SHA1 Message Date
Folkert
59af059912
make dec formatting consistent with f64 2023-09-13 20:24:15 +02:00
Folkert
3560498106
sort tag fields back into user/syntax order in the repl 2023-09-13 20:24:15 +02:00
Richard Feldman
eb8dc25cd2
Update mono tests 2023-09-13 20:24:14 +02:00
Richard Feldman
2ebc1c415e
Default decimal literals to Dec, not F64 2023-09-13 20:24:14 +02:00
Richard Feldman
07622eb6fd
Merge pull request #5801 from roc-lang/web-repl-ordering-bug
Fix Web REPL ordering bug
2023-09-13 06:46:46 -04:00
Brian Carroll
11a3eec49c
Tweak local dev instructions for repl_wasm 2023-09-13 08:37:27 +01:00
Brian Carroll
fc991baf6a
Fix a bug in displaying :help text at top of web REPL history
The previous implemenation was adding a fake input and output
to the history and then removing just the input from the DOM.
We also removed the entry from the `inputHistory` array, to
prevent it appearing in the panel when you hit the UP arrow
enough times.
However this introduces a mismatch between the number of items
in `inputHistory` array and the number of `.history-item` divs
in the DOM.
This caused each REPL output to appear *above* the user input
that caused it! 🙃

The fix is to just make all of this separate from history!
We just make a separate call into Rust to get the initial :help.

The original idea was to share code between the initial :help
and the normal REPL operation, but they turn out to be only
similar, not the same.
2023-09-13 08:08:03 +01:00
Brian Carroll
7c54cba17f
Remove unnecessary function wrapper 2023-09-13 08:07:40 +01:00
Luke Boswell
9507c527c8
Merge pull request #5799 from roc-lang/luke-windows-changes
fix  memcpy on windows
2023-09-13 05:31:58 +10:00
Richard Feldman
69f116a1e5
Merge pull request #5796 from roc-lang/remove-editor
removed editor, ast, markup crate
2023-09-12 13:16:33 -04:00
Folkert
cd89775176
try to force the sysv calling convention 2023-09-12 18:11:55 +02:00
Anton-4
25b2276a13
leave this for another PR 2023-09-12 16:31:50 +02:00
Anton-4
8b9b36c4ae
added nix dependency for lld 2023-09-12 14:48:05 +02:00
Folkert de Vries
cca2ebb7ca
Merge pull request #5694 from lukewilliamboswell/windows-zig-fixes
Fixes for Windows zig builtin tests
2023-09-12 14:45:05 +02:00
Anton-4
a3c32f3bf7
Merge branch 'main' of github.com:roc-lang/roc into remove-editor 2023-09-12 14:35:50 +02:00
Anton-4
f91054df20
try linking with lld
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2023-09-12 14:33:12 +02:00
Folkert
fa0a7fabb8
clippy 2023-09-12 14:29:50 +02:00
Luke Boswell
dd766686d1
windows fix getScalarUnsafe, run gen_str tests 2023-09-12 14:29:50 +02:00
Luke Boswell
446cff6157
fix memcpy segfault windows llvm 2023-09-12 14:29:50 +02:00
Luke Boswell
e76c63f448
fix windows function pointer return 2023-09-12 14:29:49 +02:00
Anton-4
04ff184466
do zig tests on windows CI
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2023-09-12 13:39:17 +02:00
Anton-4
0f3f031ff9
Merge pull request #5794 from roc-lang/float-to-frac
Rename Float to Frac in more places
2023-09-12 12:23:02 +02:00
Luke Boswell
2e0c83ae63
fixes for zig tests Windows 2023-09-12 19:28:11 +10:00
Richard Feldman
2f511779a6
Merge pull request #5784 from pinage404/nix_flake_deduplicate_dependencies
ensure to have only once version of Nix Flakes depenencies
2023-09-11 14:57:01 -04:00
Anton-4
bd8e621091
fmt 2023-09-11 17:41:39 +02:00
Anton-4
38bd84d603
Merge branch 'main' of github.com:roc-lang/roc into remove-editor 2023-09-11 17:38:32 +02:00
Anton-4
99cfd1fe92
removed editor, ast, markup crate 2023-09-11 16:40:52 +02:00
Folkert de Vries
5b411328c0
Merge pull request #5785 from roc-lang/dependabot/cargo/webpki-0.22.1
Bump webpki from 0.22.0 to 0.22.1
2023-09-11 15:49:40 +02:00
Richard Feldman
dc7e8b43bd
Rename Float to Frac in more places 2023-09-11 08:50:13 -04:00
Anton-4
26e9338fd8
Merge branch 'main' into nix_flake_deduplicate_dependencies 2023-09-11 11:41:24 +02:00
Richard Feldman
0f89d4c3a5
Merge pull request #5790 from roc-lang/repl-state
Use state machine for web REPL
2023-09-10 14:41:00 -04:00
Brian Carroll
b8e66d08de
Don't parse twice in ReplState::step 2023-09-10 18:36:41 +01:00
Brian Carroll
ead3c33eb8
Tweak comments and factoring 2023-09-10 11:28:29 +01:00
Brian Carroll
034482101f
Remove initial :help from web REPL history + fix edge cases 2023-09-10 11:26:29 +01:00
Brian Carroll
a99f9fee14
Fix wasm REPL tests 2023-09-10 08:39:10 +01:00
Anton-4
15a97c60b9
Merge pull request #5789 from roc-lang/signing_guide
Updated commit signing guide
2023-09-10 06:58:01 +02:00
Brendan Hansknecht
74471cb83a
Merge branch 'main' into signing_guide 2023-09-10 03:48:29 +00:00
Anton-4
e11294cc7e
.key > .asc
This simplifies the later import into kleopatra.

Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2023-09-09 20:03:14 +02:00
Anton-4
c65d638c1d
Apply Brendan's review suggestions
Co-authored-by: Brendan Hansknecht <Brendan.Hansknecht@gmail.com>
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2023-09-09 20:02:03 +02:00
Anton-4
4db62f76e4
Merge pull request #5791 from roc-lang/update-wyhash
Update to wyhash final 4
2023-09-09 19:52:05 +02:00
Brian Carroll
e37d0c45c6
Fix types in web REPL tests 2023-09-09 17:19:40 +01:00
Brian Carroll
01a4a4d356
Improve README instructions for web REPL local dev 2023-09-09 17:17:03 +01:00
Brian Carroll
50980f4b35
Show :help text on loading the web REPL 2023-09-09 16:55:14 +01:00
Brian Carroll
7dfd4ada48
Support both Shift-Enter and Ctrl-Enter for multi-line input 2023-09-09 16:55:08 +01:00
Brian Carroll
03b3b34e3d
Reduce font size on the web REPL 2023-09-09 16:53:47 +01:00
Brian Carroll
ee2731b152
Remove warning on web REPL page 2023-09-09 16:19:03 +01:00
Brian Carroll
6a47a99114
formatting & clippy 2023-09-09 16:13:17 +01:00
Brian Carroll
adc97a0099
Renaming and comments 2023-09-09 16:01:31 +01:00
Brian Carroll
f007d5c33a
Integrate UI state machine into Web REPL 2023-09-09 15:47:22 +01:00
Brian Carroll
aa0e975845
clippy 2023-09-09 15:03:50 +01:00