Commit Graph
2069 Commits
Author SHA1 Message Date
José Valim 9697074346 Merge pull request #3884 from gjaldon/format_error_grammar_fix
Grammar fix for error message returned by :elixir_aliases.format_error/2
2015-10-19 23:30:27 +02:00
Gabriel Jaldon 1818287700 Grammar fix for error message returned by :elixir_aliases.format_error/2 2015-10-20 04:05:55 +08:00
José Valim 3ef6d24a7e Support variables as map keys 2015-10-19 21:37:59 +02:00
José Valim 95b03739dd Add Process.get_keys/0 2015-10-19 12:33:48 +02:00
José Valim 89d2b916c1 Provide better error messages for context modules 2015-10-19 00:19:34 +02:00
José Valim d416772ace Merge pull request #3882 from hubertlepicki/master
improve error message on requiring module from the context it was defined in
2015-10-19 00:01:47 +02:00
José Valim 2f7c2da482 Migrate to :rand 2015-10-18 22:31:04 +02:00
Hubert Łępicki d9a8a2a93d cleaner (?) error messages when attempting to use the module from the same module 2015-10-18 21:58:07 +02:00
José Valim 4b01bccfbf Include line for previously defined doc attribute warnings 2015-10-18 20:56:05 +02:00
Aleksei Magusev 7602bda91e Properly check for docs atrribute value on redefining 2015-10-16 22:29:30 +02:00
José Valim 8c79b21112 Add Task.Supervisor.async_nolink/1/3 2015-10-16 19:05:19 +02:00
Johnny Winn b3595595a7 Include underscore/1 & camelize/1 in the Macro module
* also adding deprecation note in the Mix.Utils module
2015-10-15 19:39:45 -04:00
José Valim be940abece Test duplicate @doc warn 2015-10-14 19:33:19 +02:00
José Valim bb29ced8b3 Merge pull request #3865 from henrik/keyword-list-to-string
More helpful error for keyword list to_string
2015-10-14 19:09:23 +02:00
Henrik Nyh 2de804eb86 More helpful List.to_string argument error
Replaces the confusing "argument error" with ":unicode.characters_to_binary([a: 1])" in the backtrace that you would get when interpolating e.g. a keyword list. Developers used to Ruby may expect this to just work.

Kudos to @lexmag for the idea to implement it this way.
2015-10-14 19:01:47 +02:00
José Valim 247761b0c7 Silence dialyzer warnings on raise 2015-10-14 15:17:15 +02:00
José Valim d1b785821c Add note to deprecate size functions in Map / Keyword 2015-10-13 23:20:50 +02:00
Joshua Wood c4fe36275b Document limits of Float.parse/1.
This commit clarifies the documentation for `Float.parse/1` as well as
adds test assertions to demonstrate the limits enforced by erlang/IEEE
754-1985 double precision floats. See #3862 for more context.
2015-10-13 08:37:05 -07:00
José Valim 71e5acc0b7 Ensure no warnings on rewrites 2015-10-11 12:55:59 -05:00
José Valim 2aad447cbf Remove old dialyzer test file 2015-10-11 12:40:02 -05:00
José Valim 8ac8a4c2e8 Clean up generated code 2015-10-11 12:32:29 -05:00
James Fish a637caffc8 Add dialyzer tests for generated AST 2015-10-11 12:06:12 -05:00
Aleksei Magusev 17b3df271d Fix bitstring splicing for bytes type modifier 2015-10-07 00:30:41 +02:00
Eric Meadows-Jönsson 4bbd3b0bbb inspect invalid ANSI sequences 2015-10-05 17:34:15 -05:00
José Valim 40fff43ea0 Merge pull request #3832 from ma2gedev/macro-traverse
Add `Macro.traverse/4` pre/post-order traversal at the same time
2015-10-04 15:28:26 -05:00
Takayuki Matsubara 7e1073ec49 Add Macro.traverse/4 pre/post-order traversal at the same time
Almost is like the `Macro.prewalk/3` and `Macro.postwalk/3` but
pre/post-order traversal at the same time.
2015-10-05 00:06:21 +09:00
José Valim f6b2ddd81b Merge pull request #3805 from endersstocker/add-string-normalize-nfc
Add NFC support to String.normalize/2
2015-10-04 08:55:34 -05:00
Aleksei Magusev d682c47bf9 Omit else option in if and unless clauses if it returns nil 2015-10-03 21:07:19 +02:00
Bryan Endersstocker 07fedf66d0 Add NFC support to String.normalize/2 2015-10-03 11:08:55 -04:00
CrowdHailer f2cd34f1a8 use macro to show code sample in error message 2015-10-01 16:04:35 +01:00
José Valim c0c6983363 Print byte information on base decoding errors 2015-09-29 15:21:50 +02:00
José Valim f7654bf66a Ensure we print unicode codepoints on errors, closes #3804 2015-09-29 15:03:55 +02:00
José Valim ca89db448f Check Range creation at runtime 2015-09-28 09:49:31 +02:00
José Valim 77f2558cf5 Merge pull request #3786 from lexmag/no-spaces-range
Use same form for ranges in error messages what we use for `inspect/2`
2015-09-27 22:57:48 +02:00
José Valim 8f869ad471 Merge pull request #3784 from eksperimental/fix_macro_to_string_test
Macro.to_string/2 : add test
2015-09-27 22:57:04 +02:00
Aleksei Magusev 262edd2c25 Use same form for ranges in error messages what we use for inspect/2 2015-09-27 22:25:53 +02:00
Aleksei Magusev 99f0ed1915 Сurrently Kernel.struct!/2 raises only KeyError 2015-09-27 22:13:37 +02:00
eksperimental 84c2d76c05 Macro.to_string/2 : add test 2015-09-27 22:58:14 +07:00
eksperimental 31a30afafd Fix Range validation
- checks for lists when defining range
- replace (left .. right) with (first .. last) in error messages
  to use the same terminology used in the function definition
- add guards to Range.new/2
- add specs to Range.range?/1
- test added to check for lists in range.
2015-09-27 22:46:18 +07:00
eksperimental 0ce1c441d5 Fix Macro.to_string/2 to print ranges
this removes the spaces between the ranges and the periods
2015-09-27 18:53:05 +07:00
José Valim b8c664c739 Merge pull request #3767 from endersstocker/add-string-is-equivalent
Add String.equivalent?/2 to test canonical Unicode equivalence
2015-09-26 17:55:19 +02:00
Bryan Endersstocker bf02047280 Add String.normalize/2 2015-09-26 00:12:44 -04:00
Bryan Enders dab2a632b6 Rename String.is_equivalent/2 to String.equivalent?/2 2015-09-25 15:01:29 -04:00
José Valim e3560a8763 Bring unused warnings into tests 2015-09-25 19:42:56 +02:00
Bryan Enders f83cc7de5f Add String.is_equivalent/2 to test canonical Unicode equivalence 2015-09-25 13:35:16 -04:00
José Valim ff51926fe8 Move away from HashDict and HashSet 2015-09-25 12:46:22 +02:00
José Valim 0e5804fdbf Merge pull request #3666 from lexmag/import-many-friends
Introduce support for Mod.{A, B, C} on imports, alias, require and use
2015-09-25 12:02:30 +02:00
José Valim 3bd0528ba5 Merge pull request #3738 from lexmag/raising-struct
Add raising on unknown keys version of `Kernel.struct/2`
2015-09-25 12:02:01 +02:00
José Valim f524f25c58 Require Erlang 18.0 forward 2015-09-25 12:01:10 +02:00
Aleksei Magusev 8a657eb4b2 Add raising on unknown keys version of Kernel.struct/2 2015-09-25 11:57:30 +02:00