José Valim
5e710eaa8c
Do not add runtime deps for alias references in patterns and guards
2023-02-03 19:37:15 +01:00
Bram Verburg
4e4f150cd6
Fix elixir_erl:debug_info/4 returning core_v1 ( #12376 )
2023-02-02 21:47:19 +01:00
José Valim
e1eecb8ca6
Move path loading and IEx booting to Elixir ( #12375 )
...
This gives us more control to cache paths
and over boot compared to relying on scripts.
This also makes it easier for someone to provide
alternatives to IEx.
2023-02-02 21:45:24 +01:00
JP Ramassini
aa8e6d3feb
Add error message when piping into an expression ending in bracket-based access ( #12359 )
...
Closes #12351 .
2023-01-23 21:43:42 +01:00
sabiwara
c0b9f74f27
Optimize for into map as Enum.map/2 ( #12353 )
2023-01-19 16:19:25 +01:00
sabiwara
44b5d3dcb7
Optimize for as Enum.map/2 when sensible ( #12352 )
2023-01-19 13:47:14 +01:00
José Valim
d86916cae8
Improve error message for {foo: :bar} and <<foo: :bar>>
2023-01-19 00:09:40 +01:00
José Valim
a3a7b15768
Fix accidental variable match in errors from macro, closes #12340
2023-01-15 11:19:02 +01:00
José Valim
2fdec63291
Inline Map.intersect/2 and delegate to :maps.merge_with/2
2023-01-13 12:50:27 +01:00
José Valim
79bebf971f
Use new Code.loaded?/1
2023-01-06 23:13:56 +01:00
José Valim
7b73407af8
Respect line breaks after =
...
Many editors use indentation for collapsing
so folks may want to use `var =` followed by
new line to collapse. This PR makes it possible
and aligns `=` with other operators.
2023-01-04 12:06:58 +01:00
José Valim
3186819506
Apply rearrange ops only inside parens, closes #12296
2022-12-10 19:27:26 +01:00
sabiwara
4b5097ca6d
Add :on_undefined_variable compiler option ( #12279 )
2022-12-03 18:41:41 +01:00
José Valim
b8a4292475
Improve warning for pin
2022-11-29 10:54:47 +01:00
José Valim
d634355ace
Fix code comment
2022-11-29 08:18:13 +01:00
José Valim
d716c72f6f
More error handling adjustments
2022-11-28 16:36:37 +01:00
José Valim
da637b7523
Collect function errors where possible in elixir_bitstring and elixir_expand
2022-11-28 16:15:34 +01:00
José Valim
b24869687b
Introduce mechanism to collect several errors in a module ( #12275 )
2022-11-28 15:40:30 +01:00
sabiwara
7ebfcc7de9
Fix formatter error on nested do without parenthesis ( #12274 )
2022-11-27 15:15:18 +01:00
sabiwara
e58f70a65c
Refactor: use :elixir_bitstring to avoid duplication ( #12271 )
2022-11-25 16:00:37 +01:00
sabiwara
9213d07476
Fix unused for optimization ( #12252 )
2022-11-19 10:27:01 +01:00
José Valim
ea8e499996
Generate unique vars in defguard
2022-11-09 13:01:48 +01:00
José Valim
d9f2af697c
Include [if_undefined: :warn] on var metadata
2022-11-08 13:37:42 +01:00
José Valim
749349205d
Do not include module variables in prune_binding
2022-11-08 11:34:55 +01:00
José Valim
439a138089
Revert pruning of defmodule
2022-11-08 00:40:20 +01:00
José Valim
1fc747c75e
Add prune binding to module tracing event
2022-11-08 00:40:20 +01:00
José Valim
44bdc7af2d
Consistently raise for circular module requires, closes #12225
2022-11-04 14:25:18 +01:00
José Valim
fbc459288d
Prune binding from env and on literals
2022-11-03 09:56:26 +01:00
sabiwara
bc354c3a6b
Handle options consistently in with/1 and for/1 ( #12223 )
2022-11-02 14:51:43 +01:00
José Valim
26fc058f05
Mention ELIXIR_ERL_OPTIONS="+fnu" on file encoding warning
2022-10-30 07:57:04 +01:00
José Valim
b8c7bfa1bf
Add prune_binding to Code.eval_quoted_with_env/4
2022-10-29 20:42:51 +02:00
José Valim
ef5916bb67
Refactor and normalize format
2022-10-27 23:29:09 +02:00
sabiwara
8feb6c223c
Use orelse in for guard ( #12217 )
2022-10-27 07:27:41 +02:00
José Valim
386113af86
Include snippets in more syntax errors
2022-10-25 12:52:20 +02:00
José Valim
8f57c0ed1b
Update notes on |
2022-10-25 10:36:40 +02:00
Marc-André Lafortune
f63e600c6c
Add precision to error message ( #12213 )
2022-10-25 10:29:28 +02:00
José Valim
d739957b3d
Expand left side of -> in rescue, closes #12209
2022-10-21 17:04:25 +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
9fb3cf6030
Fix ambiguity in &INT with brackets
2022-10-08 10:52:37 +02:00
sabiwara
26d050e65b
Handle unused :uniq comprehensions ( #12116 )
2022-10-05 10:42:56 +02:00
José Valim
b7dd72f567
Improve error message for invalid % { syntax
2022-09-27 18:56:29 +02:00
José Valim
9aca91ce06
Improve error message for too many arguments in access
2022-09-27 17:51:23 +02:00
José Valim
29ed6925b3
Warn for nested calls without parens inside keywords
2022-09-24 16:50:07 +02:00
José Valim
3ee1e83eef
Remove parser ambiguity within stepped ranges
2022-09-10 00:32:13 +02:00
José Valim
755b25249b
Improve error message for unbound _
2022-09-09 22:26:35 +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
Marc-André Lafortune
b5d40c6f99
Behaviour as runtime dependency ( #12103 )
2022-08-30 08:34:08 +02:00