Richard Feldman
009e6f911a
Update string interpolation error message
2023-07-29 18:12:56 -04:00
shamsartem
5fd7ff3986
Merge branch 'main' into main
2023-07-12 08:28:21 +02:00
Folkert
ef39bad7c6
auto clippy fixes
2023-07-10 18:27:08 +02:00
Artsiom Shamsutdzinau
a806ea1a5b
improve error message for <|
operator non-existence
2023-07-07 17:44:39 +02:00
Kilian Vounckx
bf2c01554f
Give better error messages when provides is missing in header
2023-06-27 20:12:02 +02:00
Bryce Miller
e463ccf4a6
merge main
2023-06-07 20:36:54 -04:00
Ajai Nelson
2e5fef5231
Improve error messages involving ignored variables
...
Fix #3987
2023-06-06 19:46:15 -04:00
Bryce Miller
29561372de
merge main
2023-06-05 20:21:44 -04:00
Bryce Miller
cb08225bf0
|
-> where
2023-06-05 20:19:00 -04:00
Fábio Beirão
3482bb0108
Adjust the conditional imports to the fact that wasm doesn't use https for packages
2023-06-05 10:50:06 +02:00
Fábio Beirão
f1a581f5c5
Apply clippy suggestions
2023-06-04 15:37:41 +02:00
Fábio Beirão
7e3190553c
Run cargo fmt --all
2023-06-04 14:20:30 +02:00
Fábio Beirão
ab320e161b
Add dependency on byte-unit (4.0.19) to be able to print bytes in human readable formats
...
Contributes to #5487
2023-06-02 17:48:43 +02:00
Fábio Beirão
200449511c
Apply textual review suggestions
...
Contributes to #5487
2023-06-02 17:24:10 +02:00
Fábio Beirão
0a0045675b
Add nice error message for Problem::InvalidUrl(UrlProblem::DownloadTooBig)
...
Contributes to #5487
2023-06-02 12:39:42 +02:00
Fábio Beirão
bf22a2520e
Add nice error message for Problem::InvalidUrl(UrlProblem::MisleadingCharacter)
...
Contributes to #5487
2023-06-02 12:25:37 +02:00
Fábio Beirão
3ba96709fa
Add nice error message for Problem::InvalidUrl(UrlProblem::MissingHttps)
...
Contributes to #5487
2023-06-02 12:11:13 +02:00
Fábio Beirão
b1321659c5
Add nice error message for Problem::InvalidUrl(UrlProblem::MissingHash)
...
Contributes to #5487
2023-06-02 12:05:22 +02:00
Fábio Beirão
8cd09b5210
Add nice error message for Problem::InvalidUrl(UrlProblem::InvalidFragment)
...
Contributes to #5487
2023-06-02 11:55:18 +02:00
Fábio Beirão
bab52edba4
Add nice error message for Problem::InvalidUrl(UrlProblem::MissingTarExt)
...
Contributes to #5487
2023-06-02 11:40:39 +02:00
Fábio Beirão
389a714f0e
Add nice error message for Problem::InvalidUrl(UrlProblem::InvalidExtensionSuffix)
...
Contributes to #5487
2023-06-02 11:40:38 +02:00
Fábio Beirão
449c58cc23
Add nice error message for Problem::HttpErr
...
Contributes to #5487
2023-06-02 11:40:37 +02:00
Fábio Beirão
9a75542a11
Add nice error message for Problem::FsExtraErr
...
Contributes to #5487
2023-06-02 11:40:36 +02:00
Fábio Beirão
1080269aaa
Add nice error message for Problem::IoErr
...
Contributes to #5487
2023-06-02 11:40:36 +02:00
Fábio Beirão
d4d26a545e
Add nice error message for Problem::InvalidContentHash
...
Contributes to #5487
2023-06-02 11:40:35 +02:00
Fábio Beirão
5306570a86
Remove the url_problem_intro_x functions
...
This approach did not scale to other error messages
Contributes to #5487
2023-06-02 11:40:34 +02:00
Fábio Beirão
281b044ed8
Add nice error message for Problem::MultipleEncodings
...
Contributes to #5487
2023-06-02 11:40:33 +02:00
Fábio Beirão
c5269e24b8
Add friendly error message for Problem::UnsupportedEncoding
...
Contributes to #5487
2023-06-02 11:40:33 +02:00
Fábio Beirão
273b7c07c1
Initial plumbing to be able to show https errors
...
Related to #5487
2023-06-02 11:40:32 +02:00
Bryce Miller
e514d0cb83
Define and use IMPLEMENTS const in roc_parse::keyword
2023-05-29 07:21:27 -04:00
Bryce Miller
43e6cf6f90
Fix typo
2023-05-20 21:36:55 -04:00
Bryce Miller
17c733ec81
has -> implements in roc_problem::can::Problem
2023-05-20 21:12:26 -04:00
Bryce Miller
e04f09231c
has -> implements in error messages
2023-05-20 21:05:34 -04:00
Agustin Zubiaga
23db4a5e87
Update tests to new record builder syntax
2023-05-17 11:47:34 -03:00
Richard Feldman
922a10db52
Merge pull request #5389 from agu-z/agu-z/record-builder-syntax
...
Record Builder Syntax
2023-05-13 22:47:03 -04:00
Agustin Zubiaga
f94004d137
Parse builders without backtracking from records
2023-05-13 20:05:42 -03:00
Agustin Zubiaga
c3bcb88c5b
Special record builder error when applying opaque types
2023-05-11 20:20:35 -03:00
Agustin Zubiaga
71a2990e21
Tip replacing <- with : for static values
2023-05-09 23:37:24 -03:00
Agustin Zubiaga
d2a57112fd
Unapplied record builder error
2023-05-08 20:16:38 -03:00
Agustin Zubiaga
6670fbb1ab
Multiple record builder error
2023-05-08 19:26:47 -03:00
Gabriel Dertoni
7d0027f428
refactor: remove needles string allocation in pretty printer
...
Many times, in order to create a `ven_pretty::Doc` containing a text
node, the pattern `alloc.text(format!(...))` would be used. This code
then creates a fresh string that is then used in the `Doc`. However,
many times only a small string is necessary and so the allocation could
be optimized. The `ven_pretty` crate supports this through a `SmallString`
type. Allocating a fresh string with `format!` also moves control away
from the `DocAllocator` which isn't ideal, since it could also handle
the string allocations. So, instead of creating a fresh string, one can
simply call `alloc.as_string(format_args!(...))` and delegate the
allocation to the `DocAllocator` without any loss in expressivity. So,
in order to encorage this pattern, this commit also introduces the
`text!` macro.
In order to find all instances of the code pattern, the following
tree-sitter query was used:
```scm
(call_expression
function: (field_expression
field: (field_identifier) @field.name
(#eq? @field.name "text"))
arguments: (arguments
(macro_invocation
macro: (identifier) @macro.name
(#eq? @macro.name "format")))) @reference.call
```
2023-05-03 21:28:36 -03:00
Ayaz Hafiz
3b885ccf66
Improve error message when opaque wrapping a function is applied directly
...
Closes #5094
2023-04-12 10:06:27 -05:00
Brendan Hansknecht
e5b88366fe
add proper error messages for ingested files
2023-04-09 14:03:33 -07:00
Brendan Hansknecht
6302a8d4b5
switch from type annotation to type variable
2023-04-09 14:03:33 -07:00
Brendan Hansknecht
8f4945f286
make file loading errors that happen late in compilation still fatal
2023-04-09 14:03:33 -07:00
Brendan Hansknecht
7079361841
add ingested file category for error messages
2023-04-09 14:03:32 -07:00
Richard Feldman
d391982c33
Apply tag union diffs to recursive tag unions
2023-03-26 23:19:50 -04:00
Richard Feldman
389ec09451
Show ellipses for tag payload slots of same types
2023-03-26 21:43:13 -04:00
Richard Feldman
3013b9e113
Fix reporting edge case where both unions are open
2023-03-26 14:50:27 -04:00
Richard Feldman
21e14589b0
Update tests
2023-03-26 11:49:45 -04:00