Commit Graph
4394 Commits
Author SHA1 Message Date
Leandro Pereira 3edac7c6a3 system_test - link instead of copy to bypass macos 13 codesign (#12327)
Fix #12290
2023-01-10 20:46:33 +01:00
sabiwara 36a99359f4 Fix Macro.to_string/1 for large negative integers (#12326) 2023-01-10 10:50:34 +01:00
José Valim 6b7e99e50f Support :lines in System.cmd/3 (#12323) 2023-01-09 10:59:03 +01:00
José Valim 79bebf971f Use new Code.loaded?/1 2023-01-06 23:13:56 +01:00
Greg Mefford f8540ab193 Add details about waiting information in --profile time compiler output (#12310) 2023-01-04 23:31:21 +01:00
José Valim 7b73407af8 Respect line breaks after =
Many editors use indentation for collapsing
so folks may want to use `var =` followed by
new line to collapse. This PR makes it possible
and aligns `=` with other operators.
2023-01-04 12:06:58 +01:00
Aaron Renner a9e49ab9ed Add URI.append_path/2 (#12298) 2022-12-21 22:56:16 +01:00
José Valim d8578a5a5d Escape maps when expanding __ENV__ 2022-12-12 19:31:03 +01:00
José Valim 3186819506 Apply rearrange ops only inside parens, closes #12296 2022-12-10 19:27:26 +01:00
José Valim 11f4372848 Fix line references 2022-12-07 11:04:47 +01:00
José Valim 8018f2816e mix format 2022-12-07 10:33:03 +01:00
Zacck b513926ee8 Implement and raise Kernel.TypespecError (#12291) 2022-12-07 10:13:22 +01:00
sabiwara 4b5097ca6d Add :on_undefined_variable compiler option (#12279) 2022-12-03 18:41:41 +01:00
José Valim b8a4292475 Improve warning for pin 2022-11-29 10:54:47 +01:00
José Valim d716c72f6f More error handling adjustments 2022-11-28 16:36:37 +01:00
José Valim b24869687b Introduce mechanism to collect several errors in a module (#12275) 2022-11-28 15:40:30 +01:00
sabiwara 7ebfcc7de9 Fix formatter error on nested do without parenthesis (#12274) 2022-11-27 15:15:18 +01:00
sabiwara 3b41b84a3a Macro.quoted_literal?/1 supports bitstring literals (#12270) 2022-11-25 11:27:17 +01:00
Thanabodee Charoenpiriyakij feb9b6e331 Fix Calendar.strftime/2 format negative year incorrectly (#12268)
Closes #12266
2022-11-24 09:36:41 +01:00
José Valim b3c65ca9ea Do not crash for missing line info on type warnings
Closes #12263.
2022-11-23 05:33:51 +01:00
José Valim 428242e64c Do not warn on captured underscored vars from defmodule
Closes #12262
2022-11-23 05:19:47 +01:00
sabiwara c6b7302f79 Fix invalid typespec: struct (#12259) 2022-11-22 16:39:45 +01:00
sabiwara 0f934e2bbb Fix compiler crash on invalid local call typespec (#12258) 2022-11-22 08:02:04 +01:00
Marcus Kruse df84311337 Fix wildcard edge case (#12255) 2022-11-20 11:05:57 +01:00
José Valim bf708737d3 Handle false positive on List.to_charlist/1 formatting, closes #12248 2022-11-17 20:13:13 +01:00
José Valim 0e9cb57fcd Keep expression when normalizing is_struct in blame
Closes #12243.
2022-11-15 23:03:42 +01:00
José Valim ea8e499996 Generate unique vars in defguard 2022-11-09 13:01:48 +01:00
José Valim d9f2af697c Include [if_undefined: :warn] on var metadata 2022-11-08 13:37:42 +01:00
José Valim 749349205d Do not include module variables in prune_binding 2022-11-08 11:34:55 +01:00
José Valim 439a138089 Revert pruning of defmodule 2022-11-08 00:40:20 +01:00
José Valim 1fc747c75e Add prune binding to module tracing event 2022-11-08 00:40:20 +01:00
José Valim fbc459288d Prune binding from env and on literals 2022-11-03 09:56:26 +01:00
sabiwara bc354c3a6b Handle options consistently in with/1 and for/1 (#12223) 2022-11-02 14:51:43 +01:00
Flying-Toast 292abdcc81 Add before?/2 and after?/2 to Date, Time, DateTime, and NaiveDateTime (#12221) 2022-11-01 14:55:33 +01:00
José Valim b8c7bfa1bf Add prune_binding to Code.eval_quoted_with_env/4 2022-10-29 20:42:51 +02:00
José Valim 2a1b68f468 Add a test for hygienic vars on eval 2022-10-29 20:42:51 +02:00
José Valim 386113af86 Include snippets in more syntax errors 2022-10-25 12:52:20 +02:00
José Valim d739957b3d Expand left side of -> in rescue, closes #12209 2022-10-21 17:04:25 +02:00
José Valim 26a4f3cefd Consider closing ) on keyword break, closes #12206 2022-10-19 11:36:41 +02:00
sabiwara 5e818fc176 Fix formatter: size*unit shortcut in bitstring (#12201) 2022-10-14 21:49:11 +02:00
José Valim 0a1a5991d9 Remove unecessary parens in nullary type funs 2022-10-14 13:55:23 +02:00
José Valim e070d4fbf4 Use correct column in invalid alias terminator 2022-10-11 14:56:34 +02:00
José Valim ff5dcc804e Expand :for in protocols with the appropriate env 2022-10-11 14:50:59 +02:00
José Valim 41f7f47a6c Improve URI tests 2022-10-08 22:21:33 +02:00
Michał Łępicki cd5932a9b0 Expand default compile_env argument in expand literals (#12181) 2022-10-08 21:07:20 +02:00
Schnittchen 4339ee9154 Fix URI.merge using the examples from rfc3986 (#12180) 2022-10-08 19:48:55 +02:00
José Valim 9fb3cf6030 Fix ambiguity in &INT with brackets 2022-10-08 10:52:37 +02:00
José Valim 8447db887b Add Macro.expand_literals/2 and do partial literal expansion in @
Closes #12174.
2022-10-07 11:43:17 +02:00
sabiwara 26d050e65b Handle unused :uniq comprehensions (#12116) 2022-10-05 10:42:56 +02:00
José Valim 9aa1f6f368 More tests for malformed sequences 2022-10-04 16:14:14 +02:00