Commit graph

383 commits

Author SHA1 Message Date
Folkert
e7f3c6f281
inline dbg 2022-11-23 21:23:28 +01:00
Folkert de Vries
099ab4938f
Merge pull request #4565 from roc-lang/more-standalone
Use include_bytes! so builtin hosts live in binary
2022-11-23 13:01:39 +01:00
Richard Feldman
e1959d0a84
Fix wasm host_input_path generation 2022-11-23 00:38:54 -05:00
Richard Feldman
c0b065b51a
Fix a couple of preprocessed host bugs 2022-11-22 23:38:07 -05:00
Richard Feldman
a8b6fa051a
Centralize host tempfile builder logic 2022-11-22 20:52:44 -05:00
Richard Feldman
0b73ea69af
Make sure tempfiles don't get dropped too early 2022-11-22 20:22:08 -05:00
Richard Feldman
9c1291d57d
Give tempfiles the file extensions Zig expects 2022-11-22 19:19:54 -05:00
Richard Feldman
e97a5fe7f6
Use include_bytes! so builtin hosts live in binary 2022-11-22 17:57:32 -05:00
Ayaz Hafiz
91ceebc065
Fix imports 2022-11-22 11:00:14 -06:00
Richard Feldman
52b71cd85f
Using a HTTPS URL platform implies it's prebuilt 2022-11-22 10:45:22 -05:00
Richard Feldman
d0a1fa3d57
Bundle tarballs with compression after all 2022-11-21 03:57:05 -05:00
Richard Feldman
a38380ec76
Remove references to obsolete .rp1 format 2022-11-21 02:58:18 -05:00
Richard Feldman
7d2fa63dca
Make roc_cache_dir() panic if it can't find $HOME 2022-11-20 20:54:03 -05:00
Richard Feldman
721841fa1f
Provide roc_cache_dir everywhere 2022-11-20 19:53:48 -05:00
Richard Feldman
04492ce485
.rp1 -> .tar; let the server handle compression! 2022-11-19 23:46:29 -05:00
Richard Feldman
1661c0c87f
Only check for --bundle flag in roc build 2022-11-19 23:46:28 -05:00
Richard Feldman
2fd59981e5
Tweak wording on --bundle 2022-11-19 23:46:28 -05:00
Richard Feldman
777e05cdc8
Report how long it took to make the bundle 2022-11-19 23:46:28 -05:00
Richard Feldman
4f34eac1e6
Add roc build --bundle to CLI 2022-11-19 23:46:28 -05:00
Richard Feldman
0e416adc3a
Give a nice error if precompiled host is missing 2022-11-19 23:46:27 -05:00
Richard Feldman
00128e3a18
Don't spawn platform-rebuilding thread if prebuilt 2022-11-19 23:46:27 -05:00
Richard Feldman
571844fc27
Change preprocessedhost filename 2022-11-19 23:46:27 -05:00
Folkert de Vries
3e0176a717
Merge pull request #4541 from roc-lang/fix-echo
Fix warnings on examples/cli/echo.roc
2022-11-19 14:46:14 +01:00
Richard Feldman
674d449bc1
Give a nice error if precompiled host is missing 2022-11-19 00:20:04 -05:00
Richard Feldman
61153ed33b
Don't spawn platform-rebuilding thread if prebuilt 2022-11-19 00:10:37 -05:00
Richard Feldman
062ecce84c
Change preprocessedhost filename 2022-11-18 23:54:21 -05:00
Joshua Warner
2d9aba2242
Refactor parser methods to not return State as part of ParseError
As previously discovered with #4464, it's easy to accidentally mis-use the State value returned on the Err path.

There were mixed assumptions about what that State represents: (1) the State where the error occurred, or (2) the State at the beginning of the thing we were just parsing.

I fixed this up to always mean (2) - at which point we don't actually need to return the State at all - so it's impossible for further discrepency to creep in.

I also took the liberty to refactor a few more methods to be purely combinator-based, rather than calling `parse` directly.
2022-11-18 19:52:23 -05:00
Richard Feldman
7f617c87bf
Change precompiled host filename format 2022-11-18 17:08:10 -05:00
Richard Feldman
fa2e0648ca
Fix wasm32 host filename generation 2022-11-18 16:47:29 -05:00
Richard Feldman
e4e629c4e4
clippy doesn't like Result with () for the error 2022-11-18 14:45:12 -05:00
Richard Feldman
ba90cbfbd2
Panic in legacy linker if ld returns nonzero
We don't print an error message for this, so it's very
confusing if we don't panic - and legacy linker is
going away eventually anyway, so not worth investing in
better error reporting
2022-11-18 14:16:21 -05:00
Richard Feldman
c331925f3f
Drop obsolete comment 2022-11-18 14:16:12 -05:00
Richard Feldman
b80d92e344
Use legacy_host_filename instead of always host.o 2022-11-18 14:15:48 -05:00
Richard Feldman
e2b6d93096
Use debug_assert_eq! instead of debug_assert! 2022-11-18 14:01:51 -05:00
Brian Carroll
b64514d7e4
Fix web REPL error formatting by routing the active Palette everywhere 2022-11-11 23:38:08 +00:00
Richard Feldman
63e8429859
Fix indentation 2022-11-09 10:50:07 -05:00
Richard Feldman
5a2dde73e0
Use strum to automate keeping targets list in sync 2022-11-09 10:47:09 -05:00
Richard Feldman
6486591201
Merge pull request #4462 from lukewilliamboswell/rust-docs
Rust docs update #2
2022-11-08 09:35:04 -08:00
Folkert
8be5399ccf
remove duplication in argv/envp creation 2022-11-06 13:13:16 +01:00
Luke Boswell
cec67721e6
merge upstream/main 2022-11-06 09:27:46 +11:00
Folkert
92cc120c7f
Merge remote-tracking branch 'origin/main' into roc-dev-inline-expects 2022-11-05 12:21:37 +01:00
Richard Feldman
c03dc17ab4
Merge remote-tracking branch 'origin/main' into repl 2022-11-05 01:04:44 -04:00
Luke Boswell
f3bdb5f321
updating rust package documentation 2022-11-03 20:00:06 +11:00
Folkert
0c9b49f5cd
Merge remote-tracking branch 'origin/main' into roc-dev-inline-expects 2022-11-02 23:02:22 +01:00
Folkert de Vries
b143183ba8
Merge pull request #4442 from roc-lang/better_errors
centralized commands, better errors, link build command refactoring
2022-11-01 21:10:37 +01:00
Richard Feldman
220c362671
Merge remote-tracking branch 'origin/main' into repl 2022-10-31 20:49:28 -04:00
Anton-4
4ec43d9964
Closes #4423, link build command refactoring 2022-10-31 21:32:38 +01:00
Joshua Warner
07be8ec000
Refactor Parser trait to pass min_indent
This removes the need to explicitly pass thru min_indent when using the parser combinators.

My ultimate goal here is to evolve the current parser closer toward a purely combinator-based parser,
at which point we can more easily transition smoothly to a formal(ish) grammar, or expand the meanings of combinators
to include things like:
* Incremental (re)parsing
* Unified parsing and formatting code
* Better error recovery
* Using the main parser directly for syntax highlighting
2022-10-31 13:31:47 -07:00
Folkert
dbd0d30893
Merge remote-tracking branch 'origin/main' into roc-dev-inline-expects 2022-10-30 15:57:07 +01:00
Anton-4
ae1a9e4dd6
Merge pull request #4403 from lukewilliamboswell/rust-docs
adding crates/README.md for rust docs
2022-10-29 08:30:20 +02:00