Everett Griffiths
2c992eb4bd
Adds links and examples to docs around logging ( #9743 )
2020-01-21 17:43:07 +01:00
José Valim
342af1dc6d
Clear up all monitors on async_many failures
2020-01-19 13:21:23 +01:00
Ian Young
906e327863
Add Task.await_many/2 ( #9741 )
2020-01-19 13:14:03 +01:00
José Valim
714654a69a
Keep existing APIs for min/max/min_by/max_by
2020-01-17 12:54:31 +01:00
Everett Griffiths
dcfa6770aa
Improve example and add "implicit try" phrase ( #9740 )
2020-01-15 22:12:59 +01:00
Fernando Tapia Rico
f93c7eee80
Update Library Guidelines.md ( #9739 )
2020-01-15 19:00:34 +01:00
José Valim
bbf273607b
Add a new anti-pattern section to library guidelines
2020-01-15 17:56:03 +01:00
Wojtek Mach
1303afef90
Fix bug: move :indentation from sigil meta to binary meta ( #9738 )
...
We need it there so we can retrieve it like this:
defmacro sigil_E({:<<>>, meta, [expr]}, []) do
options = [
line: __CALLER__.line + 1,
indentation: meta[:indentation] || 0
]
EEx.compile_string(expr, options)
end
2020-01-15 16:11:38 +01:00
Wojtek Mach
c3752ac4df
Add :indentation to sigil heredoc meta ( #9725 )
2020-01-14 20:45:24 +01:00
Eric Meadows-Jönsson
7c152273e9
Keep line number in cond_clause error ( #9730 )
2020-01-14 17:53:25 +01:00
Po Chen
b6c28d56e7
Fix since for is_struct/2 ( #9726 )
2020-01-13 23:33:03 +01:00
Wojtek Mach
530b34d97d
Add since to new :column option on string_to_quoted ( #9723 )
2020-01-13 18:36:59 +01:00
Łukasz Jan Niemier
507c41af4d
Add is_struct/2 macro ( #9718 )
2020-01-13 09:37:53 +01:00
José Valim
d3b011947f
Do not expand interpolation twice, closes #9709
2020-01-12 17:19:50 +01:00
José Valim
aab539b1c5
Remove guard checks on is_odd/is_even as those are tested in defguard, closes #9700
2020-01-12 15:59:59 +01:00
Wojtek Mach
63be6419ee
Add :column to Code.string_to_quoted*/2
2020-01-12 15:41:36 +01:00
Pete Matsyburka
692020796b
Add :. to special forms ( #9717 )
2020-01-12 15:37:09 +01:00
Eric Meadows-Jönsson
62c991648e
Fix formatting
2020-01-12 13:24:58 +01:00
Eric Meadows-Jönsson
6be29a5c41
Do not warn for functions generated by Erlang compiler ( #9713 )
2020-01-12 12:15:21 +01:00
Eric Meadows-Jönsson
6686040c94
Support map.field syntax in guards ( #9711 )
2020-01-11 16:31:56 +01:00
José Valim
97a80c16a8
Use meta on rewrites, closes #9714
2020-01-11 12:17:08 +01:00
Eric Meadows-Jönsson
bfb198a849
Fix no_parens test
2020-01-11 02:24:04 +01:00
José Valim
b116ca18f3
Add more no_parens check to quoted
2020-01-10 09:24:09 +01:00
José Valim
5226e15d0a
Keep no_parens distinction in quote/unquote
2020-01-10 09:03:07 +01:00
Eric Meadows-Jönsson
660ddab53f
Allow any type on the RHS of or/2 ( #9706 )
...
Closes #9704 .
2020-01-09 17:07:18 +01:00
Eric Meadows-Jönsson
61daa0eb6c
Improve type check error message ( #9705 )
...
A type error may not always cause a clause to fail.
Related to #9700 .
2020-01-09 15:17:19 +01:00
José Valim
65121c2004
Deprecate remaining supervisor API
2020-01-07 18:17:34 +01:00
José Valim
25740a1228
Start v1.11
2020-01-07 15:06:25 +01:00
Dmitry Kakurin
fca4f4b8f9
Fix Path.absname/1 to correctly handle UNC paths on Windows ( #9689 )
2020-01-06 22:50:47 +01:00
Eric Meadows-Jönsson
191e0a4a8a
Remove type inversion ( #9695 )
2020-01-06 20:05:17 +01:00
Wojtek Mach
ece165e4bd
Point to the proper docs in the consolidation warning ( #9696 )
...
The docs are on the module nowadays: https://hexdocs.pm/elixir/master/Protocol.html#module-consolidation
2020-01-06 17:17:23 +01:00
Pete Matsyburka
214d0f070e
Optimize Enum.join/2 with empty string ( #9697 )
2020-01-06 17:15:13 +01:00
Wojtek Mach
5e4562618f
Add option :all to :no_warn_undefined ( #9691 )
2020-01-06 00:01:52 +01:00
Devon Estes
fc0ef36880
Always capture delimiter metadata for sigils ( #9671 )
...
This makes it so we're always capturing delimiter metadata for sigils
instead of requiring the `token_metadata` option. This means that we can
now show the correct sigils in ExUnit diffs (and elsewhere) for code
examples.
2020-01-05 16:07:58 +01:00
Sascha Wolf
610845694e
IO.ANSI.Docs - Properly render quote blocks ( #9684 )
2020-01-05 15:54:24 +01:00
José Valim
9bf7d2f223
Clarify usage of version and requires it in releases, closes #9686
2020-01-05 09:45:57 +01:00
José Valim
0772affdf8
Run the formatter
2020-01-04 12:52:45 +01:00
José Valim
6f5aeec8d3
Prepare for v1.10-rc ( #9673 )
2020-01-03 17:29:38 +01:00
José Valim
04f151b68b
Fix bounded funs in macrocallbacks, closes #9687
2020-01-03 17:18:27 +01:00
José Valim
e1eb7102bb
Reduce the amount of data sent between compilation processes
2020-01-03 17:18:27 +01:00
Xavier Noria
071bf45046
Fixes typo in Config docs [skip ci] ( #9682 )
2020-01-02 18:25:56 +01:00
Wojtek Mach
2841cde7cc
Document :file option on quote/2 ( #9679 )
2020-01-01 17:26:27 +01:00
José Valim
a717b72716
Allow reboot to be disabled in releases, closes #9552
2019-12-30 14:06:05 +01:00
José Valim
4f43edca56
Fixes for new Macro.to_string behaviour
2019-12-24 11:57:02 +01:00
José Valim
75e08f109c
Respect :no_parens meta in nullary remote calls in Macro.to_string
...
Closes #9668 .
2019-12-24 11:41:02 +01:00
M. Peter
74cf49de1f
Update enum.ex docs for find_value ( #9641 )
2019-12-24 11:19:25 +01:00
José Valim
b0dc1850ea
Allow positive range slices on infinite streams
...
Closes #9653 .
Closes #9654 .
2019-12-24 11:17:23 +01:00
José Valim
094ece35c4
Clarify which keys are kept, closes #9657
2019-12-23 20:23:49 +01:00
José Valim
8b82564ebd
Make sure error messages contain all relevant information
...
We have recently changed the compiler to emit a warning
for each undefined function with a generic error at the
end saying the module could not be defined.
Unfortunately, some tools like IDEs and Phoenix Reloader
give higher priority to errors over warnings, which means
an error would be shown but without any actionable
information.
This commit changes it so the first undefined function is
an error and all following ones are warnings.
2019-12-23 11:47:21 +01:00
sanposhiho
6073b130ba
Add guards to enum index access ( #9667 )
2019-12-22 19:09:07 +01:00