Commit Graph
9939 Commits
Author SHA1 Message Date
José Valim df64d5c6a1 Change import metadata to imports as a list
This is preparation to better ambiguity solving
of quoted expressions.
2022-05-08 17:00:09 +02:00
Andrea Leopardi b3a8cb9aba Add when :asc/:desc were introduced in Enum.sort/2 (#11803)
This commit adds a notice in the docs.
2022-05-08 13:17:05 +02:00
Eksperimental f997af2a55 GenServer: Rename continue argument in handle_continue/2 (#11793)
As I was reading the docs, it was not clear what the `continue` argument
was just by reading its name.
2022-05-08 11:52:30 +02:00
Joe Harrow 4d6c433cb4 Raise ArgumentError when inspect protocol options don't match struct (#11801) 2022-05-08 10:41:33 +02:00
ak3nji f85fb631df Do not format empty lines into line breaks (#11802) 2022-05-07 10:16:06 +02:00
José Valim 7c8d6ffb46 Warn on underived derives, closes #11799 2022-05-06 12:44:06 +02:00
José Valim 861572256c Generate less code in defstruct 2022-05-06 11:24:08 +02:00
José Valim 0e20db09c6 Inline more code in Enum 2022-05-04 18:18:42 +02:00
José Valim d3f03f0829 Fix warnings on lexical tracker suite 2022-05-04 12:45:25 +02:00
José Valim 44993bcdd2 Allow slice to overflow on both starting and ending positions
Prior to this patch, ending positions could overflow but
not starting ones.
2022-05-04 12:43:44 +02:00
Eksperimental f1a6ff4fdd Improve docs for Task mfa field (#11795) 2022-05-02 20:33:05 +02:00
José Valim b370341524 Store :mfa in the Task struct (#11794)
This field can be used for reflection purposes.

Closes #11716.
Closes #11720.
2022-05-02 12:08:05 +02:00
Artem Solomatin dc1c3f4a05 Fix punctuation and grammar issues in guides (#11790) 2022-05-02 10:52:37 +02:00
José Valim bb8d111e20 Define how to_existing_atom works within modules, closes #11786 2022-04-30 19:06:59 +02:00
José Valim 5868f09043 Warn if a protocol has no definition, closes #11588 2022-04-26 19:17:06 +02:00
José Valim d9e0956259 Do not collapse small floats, closes #761 2022-04-26 15:09:32 +02:00
Jonatan Männchen 418e3ee198 Add error details to ErlangError (#11779) 2022-04-25 20:18:24 +02:00
John Bampton 83467dec72 Remove trailing whitespace (#11782) 2022-04-25 15:25:31 +02:00
José Valim f9400f2b75 Evaluate --dot-iex line by line 2022-04-25 12:10:35 +02:00
Jonatan Männchen 706f33d0b0 Return no_translation error in StringIO put_chars as in Erlang (#11756) 2022-04-25 12:05:01 +02:00
Eksperimental a23dc1412d Supress output in doctest in String module (#11776) 2022-04-24 17:48:58 +02:00
Eksperimental 8be69ed145 Remove warning in Kernel default tests (#11777)
The following warning was in the output of the test

    warning: variable "foo" does not exist and is being expanded to "foo()", please use parentheses to remove the ambiguity or change the variable name
    test/elixir/kernel/defaults_test.exs:75: Kernel.DefaultsTest.Kernel.ErrorsTest.ClauseWithDefaults5.hello/2
2022-04-24 17:35:15 +02:00
José Valim 3bd0574fa2 Do not generate more stacktrace than support on eval errors 2022-04-23 21:57:16 +02:00
José Valim 7dd9f3e7da Use stdio when boot fails to avoid cutoffs 2022-04-23 10:05:20 +02:00
sabiwara 115a3b4717 Optimize Enum.with_index/2 for lists (#11765) 2022-04-22 08:20:55 +02:00
Jonatan Kłosko 5d46d6c117 Fix System.shell/2 command escaping on Unix (#11767) 2022-04-21 15:18:17 +02:00
José Valim c565eb1a22 Talk about the byte representation 2022-04-19 19:33:29 +02:00
José Valim 2eb65f35a3 Improve docs for Unicode on String 2022-04-19 19:30:17 +02:00
José Valim 007c2e9a5a Move error cases to new defaults_test.exs 2022-04-16 15:07:30 +02:00
sabiwara 1c3ef5ab99 Fix variable declaration in default argument block (#11758) 2022-04-16 14:59:20 +02:00
José Valim d93577ecfa Clarify what the correct xor precedence should have been 2022-04-16 13:50:35 +02:00
felipe stival e46c55a4b7 Mention key optionality for literal keyword typespecs (#11757) 2022-04-13 15:33:21 +02:00
José Valim b0abba191c Revert "Add compile-time dependencies on require"
This change added an inconsistency in that imports
also require, but they added different types of
dependencies. This must be handed properly in
libraries instead.
2022-04-11 21:52:47 +02:00
José Valim f067abaf11 Remove duplication in unicode tokenizer 2022-04-09 09:46:56 +02:00
Wei Huang 74c23460bf Make Registry.send work when value part is present (#11742)
Fix #11740.
2022-04-05 10:25:45 +02:00
Wei Huang 033f123def Add ws and wss port configuration to URIConfig (#11738) 2022-04-01 12:40:44 +02:00
Billy Peake 08d11a0841 Fix Version.parse/1 incorrectly stripping dots from field (#11736) 2022-03-29 08:25:48 +02:00
Daven 7ef962fe30 Warn if any of True, False, and Nil aliases are used (#11731) 2022-03-28 07:28:34 +02:00
Daniel Khaapamyaki e484b855c4 Improve docs for then and tap (#11730) 2022-03-28 07:23:54 +02:00
José Valim b4a9b6606f Use EEP 54 pretty printer option 2022-03-25 11:52:19 +01:00
Michał Łępicki 7c5d5f414b Do not mention compatibility in @dialyzer attr doc (#11725)
The feature was added in OTP-18 https://github.com/erlang/otp/commit/25ab719cfaf42d196287fec2171bf3eefb845b62
Latest Elixir supports OTP-22 or newer
2022-03-25 10:08:56 +01:00
Mark McElroy 956db5c3ba fix typo in the supervisor docs (#11723) 2022-03-25 04:14:43 +01:00
José Valim 0fdca7b8ac Improve error message clarity 2022-03-23 18:48:42 +01:00
Andrey Yugai 69334dd50a Do not mention charlist segments in <<>>/1 docs (#11718) 2022-03-23 17:28:18 +01:00
Michał Łępicki 746bbb0679 Change map updates type checking direction (#11713) 2022-03-21 15:59:32 +01:00
dariodf 6b2a365f46 Support ISO8601 basic format parsing with DateTime.from_iso8601 (#11703) 2022-03-15 13:01:06 +01:00
José Valim 8dd4fb0593 Improve docs for throw 2022-03-15 11:09:18 +01:00
sabiwara d509be1b6f Add line in diagnostic for invalid struct key (#11701) 2022-03-13 09:06:06 +01:00
Mat Trudel 29b046127b Document how to manually build URI structs (#11688) 2022-03-12 17:00:28 +01:00
sabiwara 71d410d0c8 Fix bug when formatting :"\\" (#11699) 2022-03-12 16:58:55 +01:00