Commit Graph
8793 Commits
Author SHA1 Message Date
José Valim b028ac88a8 Improve references around functions 2020-05-17 16:05:45 +02:00
Dallin Osmun 479b2890ce Report the correct line number when raising inside a macro (#10040) 2020-05-16 09:32:22 +02:00
Wojtek Mach 5c05d1ab22 Add CHANGELOG.md to docs (#10038) 2020-05-15 14:18:26 +02:00
Andrew France 1b1d365443 Document data and fun arguments to update_in/3 (#10034) 2020-05-14 12:27:23 +02:00
Jeroen Visser c12a130e7c 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 533f2f7d2f Stacktrace may no longer be available 2020-05-14 01:53:04 +02:00
José Valim f89d809d0b Add coloring support for Windows (#10031)
Closes #9810.
2020-05-14 01:05:07 +02:00
José Valim 68aa544d90 v1.10.3 is compatible with Erlang/OTP 23 2020-05-13 12:55:46 +02:00
Ryan Zidago 181c38f16e Fix Task PID and caller in Task Supervisor reports (#10025)
Closes #10024
2020-05-09 01:14:09 +02:00
Michał Muskała 655ce6d3b4 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 7f174f1fff Add linear representation functions to Calendar types (#10009) 2020-05-07 18:52:32 +02:00
Anderson Cook c040270bd7 improve performance of Enum.with_index/2 (#10020) 2020-05-06 23:08:51 +02:00
tarreeandSamuel Smith 9235f8e72a 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 99c587fff5 Fix typo in Registry module documentation (#10015) 2020-05-03 14:09:45 +02:00
José Valim f1b0da335e Run the formatter 2020-05-03 11:20:23 +02:00
Lau Taarnskov 65ea09dcb8 Improve documentation for utc_offset and std_offset fields (#10014) 2020-05-03 09:42:18 +02:00
José Valim f3c4aae804 Improve tests for cond 2020-05-02 14:01:52 +02:00
José Valim 2dacb59d36 Support proper encoding in releases config (#10012) 2020-05-01 20:13:50 +02:00
José Valim 3fd68ef62a Enforce keys to be atoms in Keyword.keys/1, closes #10010 2020-05-01 15:48:03 +02:00
José Valim bdde9e619b 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 3be3afb920.
2020-04-30 21:34:25 +02:00
José Valim 1fd15774a4 Run the formatter 2020-04-30 21:18:18 +02:00
José Valim 57181bfc77 Improvements to titlecase 2020-04-30 21:18:05 +02:00
Denis Oblogin 3be3afb920 Add String.titlecase/2 (#10008) 2020-04-30 21:11:02 +02:00
Wojtek Mach 276a8bf82d Add a note about @external_resource not being there yet (#10006) 2020-04-30 12:25:52 +02:00
José Valim 4fea9cc942 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 381bd68624 Improvements to the diff script which helped tackle #10000 2020-04-30 00:52:59 +02:00
José Valim 8bcbfe9a87 Do not send keyword through static_atoms_encoder, closes #9996 2020-04-29 11:09:05 +02:00
Michał Łępicki 295ebf4018 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 e72d4d1cdc 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 e8cb3489c9 Fix spec for Exception.blame_mfa/3 (#9981) 2020-04-27 19:14:39 +02:00
Michał Łępicki e7139df2bf 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 a726fcb546 Inline types not exported from their erlang modules (#9976) 2020-04-26 18:19:36 +02:00
indi f2a4b55fdb Fix a typo in the Application docs (#9971) 2020-04-26 12:55:33 +02:00
José Valim 8770a61769 Handle ; inside empty parens, closes #9964 2020-04-26 11:42:20 +02:00
Arthur Bailão cd88b69dbe Fix deep nested lists inside docs (#9970) 2020-04-26 11:13:04 +02:00
José Valim 9dc480d3ba Do not use lists:concat, closes #9973 2020-04-26 11:10:13 +02:00
José Valim 3fe3accc05 Force modules to be loaded when they are required 2020-04-26 11:03:30 +02:00
Michał Łępicki 4da2b27863 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 ec13373031 Allocate line zero ann just once 2020-04-25 20:41:53 +02:00
Michał Łępicki 7094e9754c Fix dialyzer errors caused by erl_anno:anno type being opaque (#9961) 2020-04-25 20:29:56 +02:00
Mikael Muszynski 7c19db6727 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 8ec9860a4e Ensure generated docs can be overridden without explicit clause 2020-04-25 00:35:04 +02:00
Alexei Sholik 2c8fe38a07 Improvements in Time.diff() docs (#9955) 2020-04-25 00:06:18 +02:00
Cohen Carlisle 2627fa49c5 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 1387035845 Do not assume all files have started to compile, closes #9943 2020-04-23 20:07:42 +02:00
José Valim 89f733e258 Do not attempt to load in memory beam files, closes #9788 2020-04-23 15:58:29 +02:00
José Valim 9b5cafe72a Bring back String.normalize and fix infinite loop 2020-04-23 13:35:49 +02:00
José Valim 138c1bd9ed Fixes to ExUnit.Diff, closes #9926 2020-04-21 20:24:09 +02:00
Wojtek Mach b79a97a6b6 Add __mix_recompile__?/0 callback (#9919) 2020-04-21 13:40:47 +02:00
Ivan Rublev 29f29419a2 Add +++ and --- with right associativity to the list of custom operators (#9954) 2020-04-21 13:03:31 +02:00