Commit Graph
4230 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
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 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
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
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
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 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 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 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 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
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
José Valim b4a9b6606f Use EEP 54 pretty printer option 2022-03-25 11:52:19 +01:00
José Valim 0fdca7b8ac Improve error message clarity 2022-03-23 18:48:42 +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
sabiwara d509be1b6f Add line in diagnostic for invalid struct key (#11701) 2022-03-13 09:06:06 +01:00
sabiwara 71d410d0c8 Fix bug when formatting :"\\" (#11699) 2022-03-12 16:58:55 +01:00
José Valim 1ede05bef6 Add no_limit to Inspect.Algebra
Closes #11675.
2022-03-03 18:23:56 +01:00
Joe Martinez 2824a72b18 Add Range.shift/2 (#11676) 2022-03-03 10:05:54 +01:00
Michał Łępicki b7b66aaf5c Tweak type unification to fix infinite loop with recursive vars (#11664) 2022-02-28 14:47:16 +01:00
Vitalik faded51635 Add zip_input_on_exit option to Task.async_stream (#11668) 2022-02-28 09:16:01 +01:00
José Valim c8cb8b7d50 Improve eval stacktraces on Erlang/OTP 25+ (#11665) 2022-02-24 19:07:22 +01:00
José Valim 0fd98188ff Skip --rpc-eval missing arg test on Windows 2022-02-24 19:05:55 +01:00
José Valim cdc2a4cf1c Fix CLI when Erlang flags are given after --rpc-eval 2022-02-23 23:15:50 +01:00
Wojtek Mach f651d16cf5 Show errors for incorrect --rpc-eval usage (#11659)
Before this patch we had this:

    iex> :os.cmd('elixir --sname foo --rpc-eval bar')
    ''

    iex> :os.cmd('elixir --sname foo --rpc-eval')
    'No file named \n'
2022-02-23 15:05:23 +01:00
José Valim f52ad18b1f Support general+reason metadata from EEP 54 2022-02-22 17:34:39 +01:00
José Valim baf820cd2a Improve error messages from bad capture operator usage (#11656) 2022-02-21 21:30:48 +01:00
Kian-Meng Ang cf1d1ff6e8 Fix typos (#11653) 2022-02-19 17:22:05 +01:00
José Valim b562bb17fe Add opening delimiter to sigil metadata/opts 2022-02-17 20:43:13 +01:00
José Valim b5c2020503 Allow iodata in sigil formatting functions 2022-02-17 14:57:04 +01:00
Kevin 351c6b57af Only check for unwanted functions (#11632) 2022-02-16 15:32:55 +01:00
José Valim b48623a96e Add compile-time dependencies on require
Projects like Plug use require to establish compile
time dependencies inside a Plug. The fact require
only added a compile-time dependency in v1.13.0 was
therefore a regression, addressed by this commit.
2022-02-14 12:39:54 +01:00
José Valim abbc5916fa Allow slicing with steps in Enum.slice/2 and String.slice/2 (#11624) 2022-02-13 20:23:57 +01:00
José Valim b52f274406 Add .. as a nullary operator that returns 0..-1//1 (#11623) 2022-02-13 15:18:53 +01:00
José Valim 2676f8b221 Allow only single- and highly restricted mixed-scripts in identifiers (UTS39 C3) (#11621) 2022-02-11 20:44:06 +01:00
José Valim 221e20b70d Handle more unicode sequences in split_at, closes #11617 2022-02-09 15:35:17 +01:00
Wei Huang 3e49ebc173 Change MapSet inspect to use expression (#11615) 2022-02-08 14:06:22 +01:00
Wojtek Mach 90b7b8f016 Change Date.Range inspect to use Date.range (#11612) 2022-02-07 23:11:11 +01:00
José Valim 155d6c5da3 Do not break signatures over multiple lines 2022-02-01 10:04:14 +01:00
José Valim f3d2e3283c Fix recursion on guards with map fields, closes #11602 2022-01-31 14:58:28 +01:00