Commit Graph
5111 Commits
Author SHA1 Message Date
José Valim 55d0f568da Improve docs and code regarding ansi formatting 2014-05-08 21:09:34 +02:00
José Valim 8bfe32448e Allow mix/apps configuration via ~/.mix/config.exs 2014-05-08 20:57:58 +02:00
José Valim 8010e44bd4 Bring the multiple .iex.exs functionality 2014-05-08 20:21:30 +02:00
José Valim 8b203a8379 Use IO.ANSI.Docs to format mix help 2014-05-08 20:13:29 +02:00
José Valim de26484bda Normalize IEx and ExUnit configurations 2014-05-08 19:07:25 +02:00
José Valim cbef7e9629 Initial work on config 2014-05-08 16:55:14 +02:00
José Valim a184b4061e Rename :application to Application and remove unused fixtures 2014-05-08 16:55:14 +02:00
José Valim b5ad462f27 Simplify binding implementation 2014-05-08 16:55:14 +02:00
Eric Meadows-Jönsson a9b2a95011 Allow records without field default values 2014-05-08 13:30:46 +02:00
José Valim fc5050d122 Convert ex_unit context to a map 2014-05-07 23:13:53 +02:00
José Valim 011ad07d7d Convert internal records to structs 2014-05-07 23:00:51 +02:00
José Valim e9d13d5858 Ensure proper @type is generated for dynamic struct 2014-05-07 20:03:55 +02:00
José Valim 25a5dbc08b Only check for erlang release when copying .app file
This way we avoid the cost of checking it on every command.
When copying the .app file must be enough as we'd change
the Erlang requirement only on new versions.
2014-05-07 19:49:05 +02:00
José Valim 64c5acb923 Fix syntax error on .%, closes #2245 2014-05-07 19:36:31 +02:00
José Valim d08e2bb2fd Ensure --cover works on umbrella apps 2014-05-07 14:39:19 +02:00
José Valim 9bc8925018 Ensure defrecord and defstruct executes its args 2014-05-07 14:39:19 +02:00
José Valim 30d7114922 Convert doctest Test to a struct 2014-05-07 14:39:19 +02:00
José Valim 1e5633c4a1 Merge pull request #2242 from fishcakez/format_otp_exit
[WIP] Improve OTP behaviour error formatting
2014-05-07 14:16:21 +02:00
José Valim 6d44180ec2 Merge pull request #2243 from meh/dict
Implement default pop/2, pop/3, update/4, update!/3 for Dict.Behaviour
2014-05-07 14:09:43 +02:00
James Fish c2ceeb9ea4 Improve application error formatting
* Format (nested) supervision tree init failures
* Format :gen_server exit reasons
* Fixes :invalid_options text
* Fixes text when when application start returns {:error, reason}
2014-05-07 00:22:51 +01:00
José Valim b0a5197f42 Convert ExUnit.Test and ExUnit.TestCase to structs 2014-05-06 22:24:03 +02:00
meh 235c4d61b9 Implement default pop/2, pop/3, update/4, update!/3 for Dict.Behaviour 2014-05-06 21:52:57 +02:00
José Valim c5ffa76663 Soft deprecate is_exception/1 in favor of Exception.exception?/1 2014-05-06 19:01:36 +02:00
José Valim f1effcb485 Use Exception.message/1 instead of exception.message 2014-05-06 18:33:02 +02:00
José Valim 237c485411 Improve docs for generated apps 2014-05-06 15:04:31 +02:00
José Valim 78ba84612c Ensure aliases are respected on root, closes #2227 2014-05-06 14:39:12 +02:00
Eric Meadows-Jönsson f8da2fb9c5 Use rebar hosted on S3 2014-05-06 13:47:53 +02:00
José Valim 7665a50a2d Rename symlink to ln_s according to File's convention 2014-05-06 13:29:00 +02:00
José Valim dfb8f38ce3 Merge pull request #2123 from duksis/symlink_on_file
Adds symlink to File
2014-05-06 20:24:59 +09:00
José Valim cd99add62d Create remote funs even in &mod.fun/arity, closes #2133 2014-05-06 12:44:02 +02:00
José Valim 615a54e8bf Hide module's location attribute 2014-05-06 10:46:30 +02:00
José Valim ad00d0ad6d Merge pull request #2240 from gmcabrita/fix-duplicated-module
Improve compiler message when duplicated modules are detected
2014-05-06 10:40:21 +02:00
Rasmus 82238a8d20 Removed superfluous 'be' 2014-05-06 02:20:31 +02:00
Gonçalo Cabrita 66e70ac72f Fix compile error during boostraping 2014-05-06 01:01:30 +01:00
Gonçalo Cabrita 2d48d2ed5b Fix two test cases 2014-05-05 21:24:51 +00:00
Gonçalo Cabrita 8b54e28086 Compiler now mentions which file has a duplicated module. Fixes #2131 2014-05-05 21:24:51 +00:00
José Valim b2004b8e86 Do not throw/catch, instead use Process.info/2 2014-05-05 23:05:02 +02:00
José Valim 52ad74cdfc Only print char lists if in the ascii range 2014-05-05 20:02:36 +02:00
José Valim 5f83cf9bb3 Fix mix test 2014-05-05 19:45:07 +02:00
José Valim b2608e4fe7 Print all errors in case of missing files, closes #2239 2014-05-05 19:15:00 +02:00
José Valim aed52e44d1 Use Application.format_reason when formatting application exits 2014-05-05 18:46:27 +02:00
José Valim 91497b9f15 Rename format_message to format_banner 2014-05-05 17:57:24 +02:00
José Valim a3d85c0bad Rename format_reason to format_exit, make some defs private 2014-05-05 17:35:44 +02:00
José Valim 839afc4f3e Merge pull request #2235 from fishcakez/exception_format
Format exceptions consistently
2014-05-06 00:11:47 +09:00
José Valim abc293bff8 Mention how generators in comprehensions can be used for filtering 2014-05-05 13:13:45 +02:00
José Valim cbdfe4a14a Also support tuples in struct/2 2014-05-05 13:02:03 +02:00
James Fish 46b0f7b29e Format exceptions consistently
* Add utility functions to Exception to format exceptions
* Format mfa exits, such as :gen_server.call/3
* Format EXIT reasons
* Fixes IEx to send formatted exception in one IO request
* Fixes IEx to format stacktraces consistently with Exception
* Fixes Mix application start error messages
2014-05-05 02:16:07 +01:00
José Valim 52ebeb1e7d Ensure IEx.pry works with iex -S mix test (--trace) 2014-05-04 13:24:19 +02:00
José Valim 8797280b9e Define an Application module 2014-05-04 12:43:49 +02:00
José Valim 8a8b641271 Update CHANGELOG 2014-05-04 11:36:33 +02:00