José Valim
d98e532b6c
Improve references around functions
2020-05-17 16:05:45 +02:00
Dallin Osmun
86c3f20774
Report the correct line number when raising inside a macro ( #10040 )
2020-05-16 09:32:22 +02:00
Wojtek Mach
4bc073dcca
Add CHANGELOG.md to docs ( #10038 )
2020-05-15 14:18:26 +02:00
Andrew France
a990d490b6
Document data and fun arguments to update_in/3 ( #10034 )
2020-05-14 12:27:23 +02:00
Jeroen Visser
e05a7b9728
Allow a sorting function on Enum.min_max_by/3,4 ( #10033 )
...
This should keep backwards compatibility as it relies on the arity of
the sorter to determine if it is a empty_fallback or a sorter.
2020-05-14 12:26:59 +02:00
José Valim
4bceecb710
Stacktrace may no longer be available
2020-05-14 01:53:04 +02:00
José Valim
54802cff9b
Add coloring support for Windows ( #10031 )
...
Closes #9810 .
2020-05-14 01:05:07 +02:00
José Valim
e2fd84392c
v1.10.3 is compatible with Erlang/OTP 23
2020-05-13 12:55:46 +02:00
Ryan Zidago
8fa9b0d954
Fix Task PID and caller in Task Supervisor reports ( #10025 )
...
Closes #10024
2020-05-09 01:14:09 +02:00
Michał Muskała
bb407c8a8b
Add note that System.stacktrace/0 will always return an empty list ( #10023 )
...
Starting with OTP 23 erlang:get_stacktrace/0 will always return an
empty list. The function will be completely removed in OTP 24 - we
should plan appropriately for that.
2020-05-08 16:22:24 +02:00
Denis Oblogin
982865f0d3
Add linear representation functions to Calendar types ( #10009 )
2020-05-07 18:52:32 +02:00
Anderson Cook
913194832d
improve performance of Enum.with_index/2 ( #10020 )
2020-05-06 23:08:51 +02:00
tarree and Samuel Smith
c858e0c0fa
Adjust @type body for Registry to match erlang ets match_spec Result ( #10017 )
...
Co-authored-by: Samuel Smith <samuel.smith@se.com >
2020-05-05 21:07:37 +02:00
Ryan Zidago
f64cff7306
Fix typo in Registry module documentation ( #10015 )
2020-05-03 14:09:45 +02:00
José Valim
ed8d4fd88d
Run the formatter
2020-05-03 11:20:23 +02:00
Lau Taarnskov
fa23e0fae3
Improve documentation for utc_offset and std_offset fields ( #10014 )
2020-05-03 09:42:18 +02:00
José Valim
cde828734c
Improve tests for cond
2020-05-02 14:01:52 +02:00
José Valim
7ff2bb47dc
Support proper encoding in releases config ( #10012 )
2020-05-01 20:13:50 +02:00
José Valim
67d784e1c8
Enforce keys to be atoms in Keyword.keys/1, closes #10010
2020-05-01 15:48:03 +02:00
José Valim
13c5047fde
Revert "Add String.titlecase/2 ( #10008 )"
...
Unicode says "HH" is not titlecased, which means we need
to downcase the rest of the string, which is the behaviour
we already have in capitalize.
This reverts commit 41cf77370e .
2020-04-30 21:34:25 +02:00
José Valim
062d28bc06
Run the formatter
2020-04-30 21:18:18 +02:00
José Valim
5bcf6e3428
Improvements to titlecase
2020-04-30 21:18:05 +02:00
Denis Oblogin
41cf77370e
Add String.titlecase/2 ( #10008 )
2020-04-30 21:11:02 +02:00
Wojtek Mach
267a81caff
Add a note about @external_resource not being there yet ( #10006 )
2020-04-30 12:25:52 +02:00
José Valim
d35c3104e7
Recompile Kernel before bootstrapping stdlib ( #10002 )
...
Before this patch, we could have slightly different
AST while compiling modules in parallel, depending
if modules were recompiled or not. Now we always
recompile Kernel before compiling the whole stdlib.
We used this opportunity to simplify bootstrap by
breaking it two steps. The first step is the minimal
necessary to compile Kernel itself. The second step
contains the whole compiler.
Closes #10000 .
2020-04-30 01:38:04 +02:00
José Valim
8aa2730841
Improvements to the diff script which helped tackle #10000
2020-04-30 00:52:59 +02:00
José Valim
ff2b0ab5f3
Do not send keyword through static_atoms_encoder, closes #9996
2020-04-29 11:09:05 +02:00
Michał Łępicki
5b00548b5d
Fix handling of empty user home flag in System.user_home/0 ( #9991 )
...
According to erlang documentation, :init.get_argument/1 returns :error when no value is associated with the flag: http://erlang.org/doc/man/init.html
2020-04-28 13:52:17 +02:00
Vinicius Ferreira Negrisolo
a228952fc6
Document Task.async_stream/5 infinity timeout ( #9984 )
...
Task.async_stream/5 accepts `timeout: :infinity` option.
2020-04-28 00:05:29 +02:00
Michał Łępicki
08650f7a06
Fix spec for Exception.blame_mfa/3 ( #9981 )
2020-04-27 19:14:39 +02:00
Michał Łępicki
6bbc870668
Remove redundant pad handling in Calendar.parse_modifiers ( #9977 )
...
The - padding is already handled at line 526
2020-04-26 20:49:17 +02:00
Michał Łępicki
6c785cdc80
Inline types not exported from their erlang modules ( #9976 )
2020-04-26 18:19:36 +02:00
indi
37aa8790a6
Fix a typo in the Application docs ( #9971 )
2020-04-26 12:55:33 +02:00
José Valim
fbaba1cce1
Handle ; inside empty parens, closes #9964
2020-04-26 11:42:20 +02:00
Arthur Bailão
0059f0e29a
Fix deep nested lists inside docs ( #9970 )
2020-04-26 11:13:04 +02:00
José Valim
92660cb51b
Do not use lists:concat, closes #9973
2020-04-26 11:10:13 +02:00
José Valim
9ce3f7d816
Force modules to be loaded when they are required
2020-04-26 11:03:30 +02:00
Michał Łępicki
32b767a10f
Fix multiple dialyzer errors in the Elixir application ( #9965 )
...
* fix dialyzer issue in ParallelChecker.verify/2
* fix dialyzer specs for elixir_errors:form_error and elixir_errors:form_warn
* fix dialyzer error caused by erl_anno:anno type being opaque in exception.ex
* fix spec for File.stream!
* fix spec for IO.getn/2 - dialyzer doesn't support overloaded specs
* add explicit spec for System.halt/0 to fix dialyzer error
* fix spec for Regex.recompile/1
2020-04-26 09:40:40 +02:00
José Valim
ab295f38dd
Allocate line zero ann just once
2020-04-25 20:41:53 +02:00
Michał Łępicki
5cf65513bd
Fix dialyzer errors caused by erl_anno:anno type being opaque ( #9961 )
2020-04-25 20:29:56 +02:00
Mikael Muszynski
b7fb26b566
Fix erroneous code snippet in documentation ( #9963 )
...
The return value in the code example is the opposite of what the code
would actually return, making the example misleading.
2020-04-25 18:12:20 +02:00
José Valim
412994c3f7
Ensure generated docs can be overridden without explicit clause
2020-04-25 00:35:04 +02:00
Alexei Sholik
fbee5ad359
Improvements in Time.diff() docs ( #9955 )
2020-04-25 00:06:18 +02:00
Cohen Carlisle
7a325a0e21
Update Enum.join and map_join docs ( #9960 )
...
* reference string instead of binary for both functions
* remove outdated reference to list joiner in map_join
2020-04-25 00:05:51 +02:00
José Valim
09269ecd00
Do not assume all files have started to compile, closes #9943
2020-04-23 20:07:42 +02:00
José Valim
e7c1b76dcd
Do not attempt to load in memory beam files, closes #9788
2020-04-23 15:58:29 +02:00
José Valim
e11e1bd833
Bring back String.normalize and fix infinite loop
2020-04-23 13:35:49 +02:00
José Valim
95f8d1f34c
Fixes to ExUnit.Diff, closes #9926
2020-04-21 20:24:09 +02:00
Wojtek Mach
5975091ba7
Add __mix_recompile__?/0 callback ( #9919 )
2020-04-21 13:40:47 +02:00
Ivan Rublev
0ae5f4fda5
Add +++ and --- with right associativity to the list of custom operators ( #9954 )
2020-04-21 13:03:31 +02:00