Commit Graph
8655 Commits
Author SHA1 Message Date
sanposhiho 7ecf09e2f6 Add guards to functions in Tuple (#9796) 2020-02-08 09:21:22 +01:00
José Valim aefa0b8fe8 Fix typo 2020-02-08 08:31:05 +01:00
José Valim 65a3d3ff47 Do not imply nil is caused by Access 2020-02-08 01:58:37 +01:00
José Valim b3dcfdfcd3 Do not require parens in IEx 2020-02-07 12:47:55 +01:00
Wojtek Mach da447cf011 Fix unused variable warnings (#9790) 2020-02-06 20:27:47 +01:00
José Valim c26c5a2e8e Add missing :erlang.size/1 guard, closes #9789 2020-02-06 18:44:49 +01:00
Jesse Van Volkinburg 058d5bf514 Warn on use of non-match argument to with/1 (#9784)
Closes #9764.
2020-02-05 13:14:55 +02:00
José Valim 2924718aee Add Code.can_await_module_compilation?/0 (#9777) 2020-02-05 11:39:08 +01:00
José Valim 9981975b49 Emit each file on verbose elixirc 2020-02-05 09:04:18 +01:00
Eric Meadows-Jönsson d84cec297f Add IO.warn_once/3 (#9782)
Only warn once in Supervisor.start_child/2.
2020-02-05 01:06:58 +01:00
José Valim 8adce45728 Only warn for commas at the end of words 2020-02-04 13:25:02 +01:00
José Valim 57845618cc Add tests for timer and interval with infinity 2020-02-03 12:42:05 +01:00
Fernando Tapia Rico 4ce86e19f9 Remove unneeded code in test (#9778) 2020-02-03 11:23:51 +01:00
José Valim 40a98e960b Add missing since annotations 2020-02-03 10:36:01 +01:00
José Valim 8071d326a8 Run formatter 2020-02-03 09:46:48 +01:00
José Valim 70c5cbcd7e 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 625f3159f8 Optimize pattern match of access module's func (#9776) 2020-02-02 19:02:05 +01:00
José Valim 183a1b8aa9 Raise proper error message for invalid strftime format 2020-02-02 10:03:00 +01:00
Ganesh Sarwate 9ab26cb186 Escape Unicode chars in doucmentation for String codepoints/1 (#9775) 2020-02-02 09:26:19 +01:00
Piotr Szmielew 68ab167d78 Deprecate remote nil arity calls without parens (#9769) 2020-02-01 20:54:45 +01:00
José Valim 9f50f7de7e Do not emit invalid code when formatting assocs in maps, closes #9771 2020-02-01 11:18:28 +01:00
Mathieu Decaffmeyer b6bc232fc6 Fix doc for time_zone_periods_from_wall_datetime/2 (#9770) 2020-01-31 09:07:51 +01:00
Mariusz Gumienny f3aaa95b30 Fix typo in Patterns and Guards page (#9768) 2020-01-30 20:06:08 +01:00
José Valim e0df931d7f Deprecations are automatically detected in ExDoc master 2020-01-30 12:42:45 +01:00
Piotr Szmielew 0f166643e1 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 ccce01c90e 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 5e588fdee3 Fix typo in String documentation (#9756) 2020-01-28 07:36:51 +01:00
José Valim 6327931088 Do not allow bad lines at runtime 2020-01-27 15:37:32 +01:00
José Valim c48ef368a3 Add space to quote error message 2020-01-27 12:50:16 +01:00
José Valim b4e042cfe0 Updates to Calendar.stfrtime/3 2020-01-24 10:34:06 +01:00
Gustavo c49cb88ec0 Turn NimbleStrftime into a Calendar function (#9747) 2020-01-24 09:04:05 +01:00
José Valim a7af365d25 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 bcab846549 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 2c992eb4bd Adds links and examples to docs around logging (#9743) 2020-01-21 17:43:07 +01:00
José Valim 342af1dc6d Clear up all monitors on async_many failures 2020-01-19 13:21:23 +01:00
Ian Young 906e327863 Add Task.await_many/2 (#9741) 2020-01-19 13:14:03 +01:00
José Valim 714654a69a Keep existing APIs for min/max/min_by/max_by 2020-01-17 12:54:31 +01:00
Everett Griffiths dcfa6770aa Improve example and add "implicit try" phrase (#9740) 2020-01-15 22:12:59 +01:00
Fernando Tapia Rico f93c7eee80 Update Library Guidelines.md (#9739) 2020-01-15 19:00:34 +01:00
José Valim bbf273607b Add a new anti-pattern section to library guidelines 2020-01-15 17:56:03 +01:00
Wojtek Mach 1303afef90 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 c3752ac4df Add :indentation to sigil heredoc meta (#9725) 2020-01-14 20:45:24 +01:00
Eric Meadows-Jönsson 7c152273e9 Keep line number in cond_clause error (#9730) 2020-01-14 17:53:25 +01:00
Po Chen b6c28d56e7 Fix since for is_struct/2 (#9726) 2020-01-13 23:33:03 +01:00
Wojtek Mach 530b34d97d Add since to new :column option on string_to_quoted (#9723) 2020-01-13 18:36:59 +01:00
Łukasz Jan Niemier 507c41af4d Add is_struct/2 macro (#9718) 2020-01-13 09:37:53 +01:00
José Valim d3b011947f Do not expand interpolation twice, closes #9709 2020-01-12 17:19:50 +01:00
José Valim aab539b1c5 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 63be6419ee Add :column to Code.string_to_quoted*/2 2020-01-12 15:41:36 +01:00
Pete Matsyburka 692020796b Add :. to special forms (#9717) 2020-01-12 15:37:09 +01:00