José Valim
9afb27a4e2
Reraise with stacktrace in task with shutdown
2018-07-09 08:39:20 +02:00
José Valim
fd27c2053f
Run the formatter on translator tests
2018-07-08 22:47:13 +02:00
José Valim
c7d3552767
Include Logger metadata in crash reports
2018-07-08 22:37:36 +02:00
José Valim
680631ae7a
Add the test specific backend once
2018-07-08 22:11:17 +02:00
José Valim
13c80f0834
Reformat multiline logger calls
2018-07-08 21:40:34 +02:00
José Valim
991db52707
Unify proc_lib handling in tasks
2018-07-08 21:30:44 +02:00
Mitchell Henke
045aa012f1
Include crash_reason in Logger translator metadata
...
Signed-off-by: José Valim <jose.valim@plataformatec.com.br >
2018-07-08 21:30:42 +02:00
José Valim
8a971fcb44
Include override true in rebar dependencies ( #7837 )
...
In Rebar 3, simply listing a dependency in the parent overrides
any child dependency, so we mimic this behaviour in Mix.
Closes #7346
2018-07-07 14:11:37 +02:00
José Valim
720dbb3457
Run deps.get on parent and child on local installer ( #7835 )
...
Closes #7577
2018-07-07 10:21:29 +02:00
José Valim
1b152f2656
Make sure converged dependencies are fetched on child projects
...
This should also provide performance benefits as we
avoid performing resolution for each child project.
Closes #7561
2018-07-06 23:19:32 +02:00
José Valim
94da6bbff9
Automatically cache dependencies on load
...
This will be important on future changes since
we need to guarantee that every time we compile
a dependency the parent dependencies are cached.
2018-07-06 23:19:32 +02:00
José Valim
904d05a750
Ensure Mix.Dep.cached() is set before compilation ( #7833 )
...
Closes #7699
2018-07-05 23:14:11 +02:00
José Valim
17ed43a15d
Run the formatter on dep_test
2018-07-05 17:44:03 +02:00
José Valim
cc1feca0b0
Ensure we re-run resolution when overriding a skipped dep in umbrella
...
Closes #7458
2018-07-05 17:36:13 +02:00
José Valim
83e6358b14
Fixes to binary generators with collectable into in comprehensions
...
This fixes two bugs/limitations:
1. When using dynamic size in the binary pattern
2. When using literals in the binary pattern
Closes #7829 .
2018-07-05 13:09:18 +02:00
José Valim
ed28d35eb5
Effectively deprecate Code.get_docs/2
2018-07-05 11:15:37 +02:00
José Valim
32450a0fd9
Remove Code.get_docs/2 and streamline the new chunk generation
2018-07-05 10:31:23 +02:00
László Bácsi
dc9cbb6e5d
Use @deprecated instead of IO.warn in Kernel.Typespec ( #7831 )
2018-07-05 08:44:27 +02:00
English3000
3f39110aa6
Beginner-friendly revisions to Elixir's documentation ( #7821 )
2018-07-05 08:33:53 +02:00
László Bácsi
caa90b563a
Migrate to Code.fetch_docs/1 ( #7828 )
2018-07-05 00:45:04 +02:00
László Bácsi
f84eff9648
Carry on the original naming of an argument to provide more clarity ( #7827 )
2018-07-04 00:04:05 +02:00
José Valim
383066aef5
Check for no_generators? once
2018-07-03 23:35:20 +02:00
José Valim
cd0cb7cca4
Do not leak inner key representation in signature
2018-07-03 23:30:41 +02:00
László Bácsi
2ecb5d00bd
Adopt EEP 48 and add Code.fetch_docs/1 ( #7826 )
...
At this point the legacy chunk and the original `Code.get_docs/2`
implementation is still in place, but the tests have been adjusted to
exercise `Code.fetch_docs/1` instead.
2018-07-03 18:43:41 +02:00
José Valim
b0cc54468e
Unify handling of keywords with and without parens
2018-07-03 17:57:13 +02:00
José Valim
4416854a9d
Improve error messages for boolean operators with =, closes #7730
2018-07-03 14:37:41 +02:00
José Valim
56b22b4bf2
Add a note about the line length guarantees
2018-07-03 14:20:29 +02:00
José Valim
005f432671
Warn for redefined docs across clauses
...
Closes #7817
2018-07-03 13:06:31 +02:00
José Valim
e7bd7c98e0
Do not include overridables in definitions, closes #7823
2018-07-03 12:39:58 +02:00
José Valim
2ece95c1db
Handle other unescaped tokens in tokenizer
2018-07-03 12:14:16 +02:00
Adrian Cruz
9707843134
Return error on bad hex escaping ( #7809 )
...
As discussed in #7270 , it would help if we return error tuples
instead of exceptions. This PR does it for string unescaping.
2018-07-03 12:03:43 +02:00
José Valim
c1d6bd3e60
Add a section about pattern matching on struct names
2018-07-02 15:09:51 +02:00
Wang Chen
3a7a95104e
Remove redundant code in IEx.Config ( #7822 )
2018-07-02 10:15:44 +02:00
Anil Kulkarni
693e051c0e
Add a --force flag to mix archive.uninstall ( #7818 )
2018-07-02 00:51:20 +02:00
Sihui Huang
6b5cb7014e
Make "mix help" list aliases ( #7805 )
2018-06-30 16:59:12 +02:00
Keith
ec0ec5620e
Update Module doc - split behaviour link ( #7814 )
...
This commit updates the documentation to improve the href. Currently the link is:
https://hexdocs.pm/elixir/1.6.6/Module.html#module-behaviour-notice-the-british-spelling
With this update the link will be:
https://hexdocs.pm/elixir/1.6.6/Module.html#module-behaviour
2018-06-28 22:41:32 +02:00
Cẩm Huỳnh
a62a55587b
Allow force recompilation in IEx ( #7767 )
2018-06-28 12:30:12 +02:00
Julius Beckmann
92a0c787b3
Updated docs für GenServer.terminate ( #7812 )
...
Tried to make the docs more clear that manual cleanup is not needed for opened sockets and files.
[CI skip]
2018-06-28 11:40:33 +02:00
Andrea Leopardi
7d621f60a9
Fix documentation for Date.months_in_year/1
...
[ci skip]
Thanks @David-Gil for
https://github.com/elixir-lang/elixir/pull/7417#discussion_r198735047 .
2018-06-28 09:57:00 +02:00
Dave Lucia
eab075fba0
Disambiguate def/2 docs regarding anonymous functions ( #7810 )
2018-06-28 08:47:34 +02:00
Michał Muskała
4f25ccd2d0
Refactor ArithmeticError.blame/2
2018-06-27 12:41:42 +02:00
Alex Castaño
374480e2e1
Annotates arithmetic error for better debug experience
2018-06-27 12:32:04 +02:00
Fernando Tapia Rico
e3b2b09cce
Make test suite for assert_no_guard more robust ( #7801 )
...
If I got it right, one of the reasons for that change was to get the message:
> invalid expression in guard, **!** is not allowed in guards. To learn more about guards, visit: https://hexdocs.pm/elixir/guards.html
instead of:
> invalid expression in guard, **case** is not allowed in guards. To learn more about guards, visit: https://hexdocs.pm/elixir/guards.html
This change should make the test suite more robust for future changes or refactors :)
In addition, I've split a couple of strings that were exceeding the maximum line length (98). By the way, should the formatter warn when it cannot keep the code under the desired line length? maybe with a `--strict` flag?
2018-06-27 12:22:39 +02:00
Devon Estes
e07ccb1df5
Add blame callback for KeyError ( #7803 )
...
This starts with an initial implementation of the `blame/2` callback
for `KeyError` to add some helpful `did_you_mean` feedback for
potentially typo'd keys. Right now it's only implemented for maps and
keyword lists, and only for atom keys.
2018-06-27 11:27:06 +02:00
Keith
1eae754d07
Ensure proper divergence error between remote and non-remote dep( #7802 )
...
- Add test for deps diverged from remote converger (@ericmj)
- Add scm to the deps cache
- Add code comments to help explain reasoning
2018-06-26 18:16:11 +02:00
Fernando Tapia Rico
4bab217b84
Update mix.ex ( #7799 )
2018-06-26 09:40:38 +02:00
Sihui Huang
2a610bd005
Add assert no guard on !, && and || ( #7797 )
2018-06-26 09:39:43 +02:00
Steve Morin
08e8f61e01
Improve examples of aliases calling tasks to show its capabilities ( #7792 )
2018-06-26 09:03:44 +02:00
Andrea Leopardi
69944c4f35
Fix specs for Task.Supervisor.start_child/2,3,4,5
2018-06-25 17:24:20 +02:00
José Valim
5fbc8676c2
Improve error messages for bad map key patterns
2018-06-25 16:56:57 +02:00