Richard Feldman
71a1f90a59
Retry a CSP hash
2022-11-19 05:40:45 -05:00
Richard Feldman
951fc5a8ed
Revert "Give up on CSP blocking inline <style>s"
...
This reverts commit 5829d1320a
.
2022-11-19 04:51:10 -05:00
Richard Feldman
fa68d860b1
Merge pull request #4546 from roc-lang/no-csp
...
Give up on CSP blocking inline <style>s
2022-11-19 04:26:56 -05:00
Richard Feldman
5829d1320a
Give up on CSP blocking inline <style>s
2022-11-19 04:26:17 -05:00
Richard Feldman
09cc3a66ab
Only use style-src of the hash
2022-11-19 04:12:23 -05:00
Richard Feldman
1aa928b56e
Merge pull request #4545 from roc-lang/fix-csp-again
...
Fix Content-Security-Policy directive
2022-11-19 04:00:26 -05:00
Richard Feldman
fead6cdcb0
Fix Content-Security-Policy missing sha256-
2022-11-19 03:59:38 -05:00
Richard Feldman
79789fd56f
Merge pull request #4543 from joshuawarner32/more-parser-refactoring
...
Refactor parser methods to not return State as part of ParseError
2022-11-19 02:37:50 -05: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
Anton-4
3cd57e078e
Merge pull request #4539 from georgesboris/main
...
Use roc-lang/design-assets for website fonts
2022-11-18 20:59:36 +01:00
Georges Boris
860f27bbf4
chore: www/build.sh get fonts from commit tarball
...
Signed-off-by: Georges Boris <georgesboris@gmail.com>
2022-11-18 16:56:35 -03:00
Georges Boris
3d1ae8d317
refactor: remove support for super old browsers
...
Signed-off-by: Georges Boris <georgesboris@gmail.com>
2022-11-18 16:56:35 -03:00
Georges Boris
4d94b3ec87
chore: update www/build.sh using roc-lang/design-assets
...
Signed-off-by: Georges Boris <georgesboris@gmail.com>
2022-11-18 16:56:24 -03:00
Richard Feldman
e4e629c4e4
clippy doesn't like Result with () for the error
2022-11-18 14:45:12 -05:00
Richard Feldman
ebc314691c
Fix Swift linking
2022-11-18 14:26:04 -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
0b2c2ab36c
Fix compiler warnings on examples/cli/echo.roc
2022-11-18 14:01:55 -05:00
Richard Feldman
e2b6d93096
Use debug_assert_eq! instead of debug_assert!
2022-11-18 14:01:51 -05:00
Richard Feldman
608f285e50
Merge pull request #4540 from roc-lang/fix-csp-violations
...
Fix some CSP violations
2022-11-18 12:51:06 -05:00
Richard Feldman
d657e65b4e
Add a note about how CSP style-src works
2022-11-18 10:17:37 -05:00
Richard Feldman
fbac6d9a97
Use a hash to avoid CSP violation on favicon
2022-11-18 10:09:02 -05:00
Richard Feldman
0fefe11966
Drop unnecessary <script> tag
2022-11-18 09:58:17 -05:00
Ayaz Hafiz
bbaa9299f1
Update cli tests
2022-11-17 17:21:38 -06:00
Brian Carroll
c16d425936
Merge branch 'main' of github.com:roc-lang/roc into wasm_module_crate
2022-11-17 21:29:59 +00:00
Brian Carroll
29baa45774
debug generated linker data for Roc->JS calls
2022-11-17 21:26:33 +00:00
Ayaz
e88c6ea17b
Merge pull request #4533 from roc-lang/i4416
...
Choose `hash` lambda for ranged numbers based on their default compilation width
2022-11-17 12:30:34 -06:00
Ayaz
a74d7e14b7
Merge branch 'main' into i4416
...
Signed-off-by: Ayaz <20735482+ayazhafiz@users.noreply.github.com>
2022-11-17 09:07:00 -06:00
Ayaz
2836e0a9e9
Merge pull request #4534 from roc-lang/fix-able-binding-variables-behind-aliases
...
Ensure ability-bound variables are registered in their generalization pool
2022-11-17 07:45:49 -06:00
Richard Feldman
a8ee5b7cbf
Merge pull request #4537 from roc-lang/output-tweaks
...
Reporting tweaks
2022-11-17 08:28:57 -05:00
Brian Carroll
24e6e8445d
Remove the trick of pushing an extra N+1 entry to function_offsets. It's bug-prone.
2022-11-17 07:49:38 +00:00
Richard Feldman
6c4e2c8738
Revise wording on unnecessary wildcard warning
...
My concern with the previous wording is that:
- Beginners will be confused by "these are always open"
- Users advanced enough to understand what that actually means won't benefit from seeing it in this warning message!
2022-11-16 23:18:51 -05:00
Richard Feldman
2f54e46909
Add a blank line after failed inline expectations
2022-11-16 23:11:05 -05:00
Richard Feldman
1e4cf52fd4
Merge pull request #4504 from roc-lang/fix-styles
...
Fix some web styles
2022-11-16 21:53:05 -05:00
Richard Feldman
6afaa98e83
Merge pull request #4536 from roc-lang/favicon
...
Lighten favicon in dark mode
2022-11-16 21:20:34 -05:00
Ayaz Hafiz
fe0eacb70a
Propogate only_unseen phanton type count check
2022-11-16 19:46:54 -06:00
Richard Feldman
d3f4b60246
Favicon night mode
2022-11-16 20:17:27 -05:00
Ayaz Hafiz
48c0921cd2
Fix off by one conditional
2022-11-16 19:15:22 -06:00
Ayaz Hafiz
b43078440f
Ensure ability-bound variables are registered in their generalization pool
...
When we attempt to bind a type argument to an ability in an alias/opaque
instantiation, we create a fresh flex var to represent satisfaction of
the ability, and then unify the type argument with that flex var.
Previously, we did not register this fresh var in the appropriate rank
pool.
Usually this is not a problem; however, our generalization algorithm is
such that we skip adjusting the rank of redundant variables. Redundant
variables are those that are in the same unification tree, but are not
the root of the unification trees.
This means that if such a flex able var becomes the root of a
unification tree with the type argument, and the type argument is itself
generalized, we will have missed generalization of the argument.
The fix is simple - make sure to register the flex able var into the
appropriate rank pool.
Closes #4408
2022-11-16 17:09:47 -06:00
Ayaz Hafiz
716c4cb8e4
Print rigid name in debug representation
2022-11-16 17:09:31 -06:00
Brian Carroll
0c81063c68
Fix dummy function replacement
2022-11-16 21:25:53 +00:00
Brian Carroll
ba99870de0
minor tweaks
2022-11-16 21:25:16 +00:00
Ayaz Hafiz
b957e670e2
Fix cli run test
2022-11-16 14:54:06 -06:00
Brian Carroll
24cef94fb5
Fix Wasm dummy function
2022-11-16 20:34:38 +00:00