José Valim
386113af86
Include snippets in more syntax errors
2022-10-25 12:52:20 +02:00
José Valim
d739957b3d
Expand left side of -> in rescue, closes #12209
2022-10-21 17:04:25 +02:00
José Valim
26a4f3cefd
Consider closing ) on keyword break, closes #12206
2022-10-19 11:36:41 +02:00
sabiwara
5e818fc176
Fix formatter: size*unit shortcut in bitstring ( #12201 )
2022-10-14 21:49:11 +02:00
José Valim
0a1a5991d9
Remove unecessary parens in nullary type funs
2022-10-14 13:55:23 +02:00
José Valim
e070d4fbf4
Use correct column in invalid alias terminator
2022-10-11 14:56:34 +02:00
José Valim
ff5dcc804e
Expand :for in protocols with the appropriate env
2022-10-11 14:50:59 +02:00
José Valim
41f7f47a6c
Improve URI tests
2022-10-08 22:21:33 +02:00
Michał Łępicki
cd5932a9b0
Expand default compile_env argument in expand literals ( #12181 )
2022-10-08 21:07:20 +02:00
Schnittchen
4339ee9154
Fix URI.merge using the examples from rfc3986 ( #12180 )
2022-10-08 19:48:55 +02:00
José Valim
9fb3cf6030
Fix ambiguity in &INT with brackets
2022-10-08 10:52:37 +02:00
José Valim
8447db887b
Add Macro.expand_literals/2 and do partial literal expansion in @
...
Closes #12174 .
2022-10-07 11:43:17 +02:00
sabiwara
26d050e65b
Handle unused :uniq comprehensions ( #12116 )
2022-10-05 10:42:56 +02:00
José Valim
9aa1f6f368
More tests for malformed sequences
2022-10-04 16:14:14 +02:00
George Rodrigues
89d831d67e
fix: typos on test and docs ( #12167 )
2022-10-04 14:53:09 +02:00
José Valim
759e7edb4f
Improve coverage of malformed sequences in String
2022-10-03 12:41:41 +02:00
José Valim
0b79500ea9
Ignore malformed pictographic sequences, closes #12165
2022-10-03 12:13:11 +02:00
sabiwara
1d0100e394
Fix algebra edge case on :erlang.binary_to_atom/2 ( #12163 )
2022-10-02 23:32:31 +02:00
José Valim
42eacb8a67
mix format
2022-09-30 18:54:34 +02:00
José Valim
87aeda3c59
Properly handle list output of :unicode_util.gc/1, closes #12160
2022-09-30 18:48:47 +02:00
José Valim
b7dd72f567
Improve error message for invalid % { syntax
2022-09-27 18:56:29 +02:00
Wojtek Mach
009b885672
Add ExUnit.DocTest.doctest_file/2 ( #12150 )
2022-09-27 18:00:16 +02:00
José Valim
9aca91ce06
Improve error message for too many arguments in access
2022-09-27 17:51:23 +02:00
José Valim
4a660784e5
Add Range.split/2
2022-09-25 10:09:24 +02:00
José Valim
29ed6925b3
Warn for nested calls without parens inside keywords
2022-09-24 16:50:07 +02:00
Simon Prévost
b7083180a6
Add complete list of time units on DateTime.add/3 argument error ( #12152 )
2022-09-23 17:24:39 +02:00
José Valim
e5458b02f1
Fix signature order in type checkings messages, closes #11744
2022-09-23 13:38:13 +02:00
José Valim
8fc61e0ebd
Do not recursively traverse vars to simplify checker, closes #12149
2022-09-23 13:38:13 +02:00
José Valim
47e05c4d76
Remove head blocking on Task.yield_many/2
...
`yield_many/2` would previously block waiting for
the reply from the first task, then the second task,
and so on.
However, if the first task was slow, it means the
message inbox would grow quickly, only to be processed
later.
This commit makes it so messages are consumed as they
arrive. This yields better performance but uses more
memory as all results have to be accumulated first.
Then, finally, there is one last pass on the data to
associate results to tasks. Given this additional pass,
we now also support killing or ignoring tasks directly
from Task.yield_many/2.
2022-09-23 13:38:13 +02:00
José Valim
fb97f39fc9
Handle :port :undefined on URI.new
2022-09-15 19:40:04 +02:00
José Valim
00e2ed694d
Add :close_stdin to System.shell/2
...
It defaults to false as that was the behaviour
in past Elixir versions.
Closes #12135 .
2022-09-15 00:09:15 +02:00
José Valim
3ee1e83eef
Remove parser ambiguity within stepped ranges
2022-09-10 00:32:13 +02:00
José Valim
e60e59d9ce
Fix race in dynamic supervisor suite
2022-09-09 21:10:47 +02:00
José Valim
fbb0420b08
Do not delete enforce_keys on defstruct, closes #12126
2022-09-09 09:24:46 +02:00
José Valim
7a3638c7c1
Consistently use normalize prefix for AST changing options
2022-09-07 15:55:37 +02:00
José Valim
c8fdbe89b7
Do not process binary modifiers as variables during type checking, closes #12121
2022-09-07 15:45:10 +02:00
Michael Adkins
4dd730267a
Add commas to bare usage of "however" where appropriate ( #12119 )
2022-09-06 20:29:01 +02:00
José Valim
904072081a
Raise on missing struct for module conflict, closes #12113
2022-09-04 16:01:37 +02:00
sabiwara
239ae0877a
Handle syntax_colors in quoted_to_algebra and dbg ( #12106 )
2022-09-04 15:10:22 +02:00
Chris Miller
2bfa617acd
Add Map.split_with/2, MapSet.split_with/2 and Keyword.split_with/2 ( #11482 )
2022-09-02 23:59:21 +02:00
Andrea Leopardi
01ded3880b
Don't raise on overflowing floats in Float.parse/1 ( #12099 )
...
When floats are expressed in scientific notation,
:erlang.binary_to_float/1 can raise an ArgumentError if the e exponent
is too big. For example, "1.0e400". Because of this, we rescue the
ArgumentError and return an error.
2022-08-27 11:43:42 +02:00
José Valim
7a8e5f1d05
Fix module attribute with empty list in Macro.to_string, closes #12097
2022-08-26 08:56:20 +02:00
Andrea Leopardi
2370810002
Raise when using Macro.dbg/3 in guards or matches ( #12094 )
2022-08-24 08:47:53 +02:00
José Valim
937cece227
Improve error message
2022-08-22 11:27:49 +02:00
José Valim
b9e1d7cfbe
Fix heisentest
2022-08-19 12:49:37 +02:00
José Valim
4ce0376e76
Only consume DOWN messages dedicated to the parallel compiler, closes #12087
2022-08-19 09:49:03 +02:00
bbhoss
c3db766c76
Add support for automatic shutdown to Supervisor ( #12077 )
...
* Prevent auto_shutdown from being used with DynamicSupervisor
* Prevent auto_shutdown from being used with PartitionSupervisor
2022-08-16 23:44:48 +02:00
José Valim
5290c01316
Do not set step to nil in ranges
...
Closes #12076
2022-08-15 10:07:19 +02:00
José Valim
2ad1515818
Fix loop while unifying type variables, closes #11658
2022-08-13 11:46:42 +02:00
sabiwara
8908334041
Inspect charlists as ~c sigils ( #12074 )
2022-08-13 09:08:17 +02:00