José Valim
acd9bf6a94
Fix typo
2020-02-08 08:31:05 +01:00
José Valim
10ef56fdfa
Do not imply nil is caused by Access
2020-02-08 01:58:37 +01:00
José Valim
b481ed6668
Do not require parens in IEx
2020-02-07 12:47:55 +01:00
Wojtek Mach
480c3a30be
Fix unused variable warnings ( #9790 )
2020-02-06 20:27:47 +01:00
José Valim
3ea9abaca0
Add missing :erlang.size/1 guard, closes #9789
2020-02-06 18:44:49 +01:00
Jesse Van Volkinburg
35665e7aac
Warn on use of non-match argument to with/1 ( #9784 )
...
Closes #9764 .
2020-02-05 13:14:55 +02:00
José Valim
53dbf7083e
Add Code.can_await_module_compilation?/0 ( #9777 )
2020-02-05 11:39:08 +01:00
José Valim
a1103711db
Emit each file on verbose elixirc
2020-02-05 09:04:18 +01:00
Eric Meadows-Jönsson
0d32ea6bc4
Add IO.warn_once/3 ( #9782 )
...
Only warn once in Supervisor.start_child/2.
2020-02-05 01:06:58 +01:00
José Valim
b9e2d38bb6
Only warn for commas at the end of words
2020-02-04 13:25:02 +01:00
José Valim
c31958aa17
Add tests for timer and interval with infinity
2020-02-03 12:42:05 +01:00
Fernando Tapia Rico
02abfb75fc
Remove unneeded code in test ( #9778 )
2020-02-03 11:23:51 +01:00
José Valim
49fcc6522c
Add missing since annotations
2020-02-03 10:36:01 +01:00
José Valim
1ce5b6a311
Run formatter
2020-02-03 09:46:48 +01:00
José Valim
8715a7215e
Remove redundant process test
...
The previous test already checked trapping exits
returns the exit message.
2020-02-03 09:09:00 +01:00
Masashi Yokota
fc5afad35d
Optimize pattern match of access module's func ( #9776 )
2020-02-02 19:02:05 +01:00
José Valim
89bc4aff6c
Raise proper error message for invalid strftime format
2020-02-02 10:03:00 +01:00
Ganesh Sarwate
0a93a6569e
Escape Unicode chars in doucmentation for String codepoints/1 ( #9775 )
2020-02-02 09:26:19 +01:00
Piotr Szmielew
66f13b7051
Deprecate remote nil arity calls without parens ( #9769 )
2020-02-01 20:54:45 +01:00
José Valim
534d8eac6b
Do not emit invalid code when formatting assocs in maps, closes #9771
2020-02-01 11:18:28 +01:00
Mathieu Decaffmeyer
9f2962253f
Fix doc for time_zone_periods_from_wall_datetime/2 ( #9770 )
2020-01-31 09:07:51 +01:00
Mariusz Gumienny
41b211c0db
Fix typo in Patterns and Guards page ( #9768 )
2020-01-30 20:06:08 +01:00
José Valim
b62a23d521
Deprecations are automatically detected in ExDoc master
2020-01-30 12:42:45 +01:00
Piotr Szmielew
4460b53e1f
Allow using remote or rpc with compile_env
...
Signed-off-by: José Valim <jose.valim@dashbit.co >
2020-01-30 12:05:17 +01:00
Devon Estes
12c91a2780
Fix docs for compiler tracing events ( #9760 )
...
The `local_function` event is a tuple with four elements, not five.
2020-01-29 13:50:59 +01:00
Ian Young
77801a9eb7
Fix typo in String documentation ( #9756 )
2020-01-28 07:36:51 +01:00
José Valim
93a3c5f958
Do not allow bad lines at runtime
2020-01-27 15:37:32 +01:00
José Valim
20d4eb1c44
Add space to quote error message
2020-01-27 12:50:16 +01:00
José Valim
caf642f311
Updates to Calendar.stfrtime/3
2020-01-24 10:34:06 +01:00
Gustavo
0f2c0b3fd2
Turn NimbleStrftime into a Calendar function ( #9747 )
2020-01-24 09:04:05 +01:00
José Valim
5918b24d72
Allow file, line and context to be dynamically set on quote, closes #9721
2020-01-23 20:26:16 +01:00
Eric Meadows-Jönsson
1d7af251ad
Only error for duplicate map keys in matches ( #9748 )
...
In matches we will error:
%{a: :b, a: :c} = %{a: :b}
In normal expressions we will only warn:
%{a: :b, a: :c}
2020-01-21 18:15:35 +01:00
Everett Griffiths
391f8c9e8b
Adds links and examples to docs around logging ( #9743 )
2020-01-21 17:43:07 +01:00
José Valim
b2de6d8cd8
Clear up all monitors on async_many failures
2020-01-19 13:21:23 +01:00
Ian Young
86df142ed0
Add Task.await_many/2 ( #9741 )
2020-01-19 13:14:03 +01:00
José Valim
ef61614f60
Keep existing APIs for min/max/min_by/max_by
2020-01-17 12:54:31 +01:00
Everett Griffiths
2cb4b77f40
Improve example and add "implicit try" phrase ( #9740 )
2020-01-15 22:12:59 +01:00
Fernando Tapia Rico
58a551f338
Update Library Guidelines.md ( #9739 )
2020-01-15 19:00:34 +01:00
José Valim
a4450fa8b2
Add a new anti-pattern section to library guidelines
2020-01-15 17:56:03 +01:00
Wojtek Mach
7287ae758a
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
331df3587b
Add :indentation to sigil heredoc meta ( #9725 )
2020-01-14 20:45:24 +01:00
Eric Meadows-Jönsson
d8d8eafc52
Keep line number in cond_clause error ( #9730 )
2020-01-14 17:53:25 +01:00
Po Chen
09ad598a12
Fix since for is_struct/2 ( #9726 )
2020-01-13 23:33:03 +01:00
Wojtek Mach
c5f735c989
Add since to new :column option on string_to_quoted ( #9723 )
2020-01-13 18:36:59 +01:00
Łukasz Jan Niemier
a189bb24f1
Add is_struct/2 macro ( #9718 )
2020-01-13 09:37:53 +01:00
José Valim
216bf94577
Do not expand interpolation twice, closes #9709
2020-01-12 17:19:50 +01:00
José Valim
b75f5899e1
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
8364149953
Add :column to Code.string_to_quoted*/2
2020-01-12 15:41:36 +01:00
Pete Matsyburka
45fd2a6fac
Add :. to special forms ( #9717 )
2020-01-12 15:37:09 +01:00
Eric Meadows-Jönsson
b78d68db32
Fix formatting
2020-01-12 13:24:58 +01:00