Commit graph

14474 commits

Author SHA1 Message Date
Brian Carroll
770155312c Merge branch 'trunk' of github.com:rtfeldman/roc into wasm-runtime-error 2022-03-04 21:22:08 +00:00
Brian Carroll
338961d202 wasm: go back to custom bytes->string transformation
CStr version is too hard to get working correctly. I get weird test failures
with random characters in the middle of strings.
2022-03-04 19:52:27 +00:00
Anton-4
37704323b1
basic highlighting flow using MarkupNodes 2022-03-04 20:19:05 +01:00
Folkert de Vries
cfccb92bf9
Merge pull request #2639 from rtfeldman/remove-morphic-from-web-repl
Move alias analysis to its own crate instead of roc_mono
2022-03-04 20:12:30 +01:00
Brian Carroll
20e46fbda4 wasm: address PR feedback 2022-03-04 19:12:18 +00:00
Brian Carroll
f2adf71873 Move alias analysis to its own crate instead of roc_mono
Shrinks roc_repl_wasm by 400kB (~8%)
2022-03-04 14:50:02 +00:00
Brian Carroll
4252f093ad Instructions about Shift+Enter 2022-03-04 13:26:49 +00:00
Brian Carroll
3867b2da01 www: Change download URL for pre-built web REPL
I'm making changes more frequently to the REPL than we are to the source code.
I want to be able to deploy it from a script rather than opening new GitHub issues,
so I decided to just commit the assets into a branch of a GitHub repo.
The repo was only used as a prototype for the web REPL so I don't use it anymore.
2022-03-04 13:12:56 +00:00
Brian Carroll
f8e23d93cc repl_www: nicer line spacing 2022-03-04 08:14:50 +00:00
Brian Carroll
79b65347fa repl_www: Improved UI for multiline input 2022-03-04 07:45:49 +00:00
Brian Carroll
485cbb4bd1
Merge pull request #2635 from rtfeldman/issues-2607/multiline-input-repl
Allow multi string in RePL
2022-03-04 07:40:17 +00:00
Folkert de Vries
874ce855bc
Merge pull request #2634 from rtfeldman/DecFromF64
Remove using a string as an intermediate form in Dec.fromF64.
2022-03-03 23:13:42 +01:00
Philippe Vinchon
8937356b0e Use textarea instead of input 2022-03-03 21:36:00 +00:00
Philippe Vinchon
b9365d06e3 Allow multi string in RePL 2022-03-03 21:15:01 +00:00
Derek Gustafson
b6ad04b0f1
Fix zig fmt error. 2022-03-03 11:14:58 -05:00
Derek Gustafson
6feac21b9b
Remove using a string as an intermediate form in Dec.fromF64. 2022-03-03 11:05:41 -05:00
Brian Carroll
5df4388198
Merge pull request #2630 from rtfeldman/www
Fix web REPL deployment issues
2022-03-03 12:58:05 +00:00
Folkert
a53a5b718e
clippy 2022-03-03 10:36:18 +01:00
Folkert
3d30bcef03
store filenames out of band 2022-03-03 10:13:52 +01:00
Brian Carroll
49be6da565 repl_www: fix DOCTYPE and CSS layout
Today I learned that you need to explicitly set height: 100% on the <html> and <body> tags,
unless you're in quirks mode! And the <DOCTYPE html> takes you out of quirks mode.
Firefox complains if we don't have the DOCTYPE
2022-03-03 08:44:04 +00:00
Brian Carroll
22f571ef3c Simplify www build scripts by putting the REPL HTML where it needs to end up 2022-03-03 08:30:35 +00:00
Folkert
da89152fef
fix static assert 2022-03-03 08:32:32 +01:00
Richard Feldman
54a070893e
Revert "Add DOCTYPE html tag to roc repl page"
This breaks the page layout, somehow

This reverts commit 37d175b086.
2022-03-03 00:26:33 -05:00
Richard Feldman
37d175b086
Add DOCTYPE html tag to roc repl page 2022-03-03 00:23:47 -05:00
Richard Feldman
70b739bbfc
Update CSP to allow wasm compilation in web repl 2022-03-03 00:23:19 -05:00
Richard Feldman
3938dd476d
Capitalize DOCTYPE html in index.html 2022-03-03 00:23:19 -05:00
Richard Feldman
956dfc8101
Merge pull request #2611 from rtfeldman/editor_wip
made editor WIP more obvious
2022-03-02 23:03:57 -05:00
Richard Feldman
5b4615764c
Don't use <base> in repl_www
It seems to work inconsistently across browsers.
2022-03-02 20:26:16 -05:00
Richard Feldman
25f0948cf6
Tell Netlify to always build on push 2022-03-02 18:45:55 -05:00
Richard Feldman
cc105b3ac2
Make a change to index.html so Netlify redeploys 2022-03-02 18:43:59 -05:00
Richard Feldman
87f5c04c6c
Add autofocus to web repl <input> 2022-03-02 18:42:23 -05:00
Richard Feldman
7b489e81b9
Have web repl use /repl as its URL root 2022-03-02 18:34:47 -05:00
Richard Feldman
d91df42147
Merge pull request #2610 from rtfeldman/windows_fixes
`cargo build` on windows
2022-03-02 18:20:06 -05:00
Richard Feldman
364697e662
Merge pull request #2628 from rtfeldman/rust-1.58
Rust 1.58
2022-03-02 18:16:28 -05:00
Brendan Hansknecht
1ce018221a run niv update to get rust 1.58.0 in nix 2022-03-02 14:55:33 -08:00
Brian Carroll
a3a3543b7d repl_www: move CSS into a separate file to keep Netlify happy 2022-03-02 22:51:35 +00:00
Brian Carroll
861117fb64 www: use relative path in script tag for repl.js 2022-03-02 22:42:02 +00:00
Folkert de Vries
03a63cdd00
Merge pull request #2622 from rtfeldman/optimize-def-sorting
optimize def sorting
2022-03-02 23:16:01 +01:00
Richard Feldman
7fa6d0a9a5
Merge pull request #2624 from rtfeldman/www-dont-build-repl-on-netlify
Web REPL: Download a pre-built Wasm binary to Netlify
2022-03-02 17:15:34 -05:00
Folkert
f8021fb449
fix reporting tests 2022-03-02 22:17:25 +01:00
Folkert
760331829f
deduplicate categories 2022-03-02 22:05:38 +01:00
Folkert
d9851b5e68
fix formatting issues 2022-03-02 21:39:30 +01:00
Folkert
48d0286b8a
bump version on CI 2022-03-02 21:39:23 +01:00
Folkert
38d3d3169a
drop final suffixes 2022-03-02 21:30:38 +01:00
Folkert
828483393a
move expr/pattern constraint gen 2022-03-02 21:25:13 +01:00
Folkert
546afc9661
drop soa suffix 2022-03-02 21:21:37 +01:00
Folkert
0eb98a4c59
move over constraint 2022-03-02 21:19:58 +01:00
Folkert
8d2e0a738c
exploiting exactsizeiterator 2022-03-02 21:08:14 +01:00
Folkert
54c6292b4b
clippy 2022-03-02 20:59:51 +01:00
Folkert
289e1a7ae1
fix ordering bug 2022-03-02 20:57:55 +01:00