Commit Graph
11622 Commits
Author SHA1 Message Date
Jean Klingler 8e61baacab Fix String.split/3 example in guide and add note in docs (#14223) 2025-01-25 07:12:09 +09:00
José Valim 7426acb1b9 Use exdoc:loaded to reload mermaid graphs 2025-01-24 19:58:58 +01:00
José Valim 2c1a836db3 Make --color/--no-color consistent with mix test 2025-01-22 17:33:00 +01:00
José Valim f29e18bca1 Do not precompile regexes on Erlang/OTP 28 2025-01-21 18:51:54 +01:00
José Valim 329442c481 Provide more AST around cursor fragments, closes #14118 2025-01-21 10:36:19 +01:00
José Valim 01a88e7137 Simplify token pruning, closes #14139 2025-01-20 18:57:09 +01:00
Jean Klingler 4def31f8ab Mention the new type system in typespecs doc (#14188) 2025-01-15 20:42:33 +09:00
José Valim 88c75bcbf5 Remove powershell scripts
It current leaves the shell broken after quitting Erlang.

Issues have been reported upstream, so we may be able
to bring it back in future Erlang/OTP versions.
2025-01-13 13:51:05 +01:00
José Valim 786f3ce797 Add --color for easy enabling and disabling of coloring (#14183) 2025-01-13 08:55:12 +01:00
José Valim 6f7eaf1122 Keep line information in defstruct 2025-01-12 20:09:44 +01:00
Claudio Ortolina c78f426bf5 Improve clarity of Path.safe_relative/2 argument names (#14167)
Switches from `cwd` to `relative_to`, which is more generic and more consistent with possible use cases of the function.
2025-01-10 20:03:32 +01:00
Zach Allaun f5e42ba11a Update task-and-gen-tcp.md (#14166) 2025-01-09 18:10:35 +01:00
José Valim b0dae83353 Clarify the need for better tools in the TCP guide 2025-01-09 16:37:06 +01:00
Jean Klingler ac910c1cc2 Prevent infinite loop in compiler for some invalid type specs (#14155) 2025-01-09 18:27:55 +09:00
Daniel Drexler defef37856 Improve warning for charlists (#14160)
The current warning for single-quoted character lists is confusing
because it appears to be a stylistic note instead of a deprecation
warning. This commit updates the language to make the reasoning clearer
and to more clearly describe what `mix format --migrate` will change
about the users' code.
2025-01-09 09:22:20 +01:00
José Valim 24714c68a7 Improve error message for invalid default arguments 2025-01-02 18:36:27 +01:00
José Valim dddb8f7b19 Bring kv-observer image back as it is used in guides 2024-12-31 08:53:56 +01:00
José Valim 2da3300bfc Do not wrap literals in variable when expanding in/2 2024-12-31 08:45:54 +01:00
José Valim f3dfb72c69 Properly handle optional keys in map intersection 2024-12-30 11:39:57 +01:00
José Valim 7e149619f5 Fix expression-tag pairing inside with type checking 2024-12-30 11:07:35 +01:00
José Valim 265b9aaeb3 Update AST metadata documentation (#14120) 2024-12-27 11:37:54 +01:00
José Valim b9bd0e3dd9 Bring conditional violation reports back 2024-12-26 19:37:25 +01:00
José Valim 4911916f62 Do not warn when comparing literals 2024-12-24 10:02:29 +01:00
José Valim 463f1aa593 Do not recompile if compilation fails due to --warnings-as-errors 2024-12-23 18:27:11 +01:00
José Valim a3a632efd1 Improve warning as errors deprecation notice 2024-12-23 18:26:37 +01:00
José Valim b7a5fd7b56 Improve container_cursor_to_quoted with trailing fragment, closes #14087 2024-12-23 12:24:03 +01:00
José Valim 8c9f303e37 Avoid crash when typing violation is detected on dynamic dispatch
Closes #14105.
2024-12-22 17:56:59 +01:00
José Valim 1a2be16109 Track source for warnings, closes #14093 2024-12-22 11:08:13 +01:00
José Valim 4adaac702e Do not validate clauses of overridable functions, closes #14094 2024-12-22 09:55:23 +01:00
José Valim a1be4fbc86 Verify no warnings are emitted on generated clauses, see #14094 2024-12-22 09:55:21 +01:00
Jean Klingler 5aa049ccb3 Remove no_parens when using capture with arity (#14090) 2024-12-20 22:28:19 +09:00
José Valim e5033c94ce Keep traces backwards compatible 2024-12-20 10:43:48 +01:00
José Valim c6597bcb20 Collapse structs for better pretty printing in different scenarios 2024-12-19 15:13:18 +01:00
José Valim ca6edfd389 Include types in comparison warning 2024-12-19 15:13:14 +01:00
José Valim ed83c407a5 Simplify and optimize NaiveDateTime.utc_now 2024-12-19 15:13:12 +01:00
José Valim a426520b66 Improvements to descr pretty printing 2024-12-18 09:32:08 +01:00
Guillaume Duboc 1c0f585f40 Fuse maps and tuples for printing (#14079) 2024-12-18 09:32:06 +01:00
José Valim c7f78e8015 Emit warnings for duplicate patterns instead of errors 2024-12-16 19:30:54 +01:00
José Valim 6a24bafbda Tag exceptions as dynamic, closes #14074 2024-12-16 16:13:04 +01:00
José Valim 8ddef06e81 Also encode Duration to JSON 2024-12-16 12:23:47 +01:00
José Valim 472c4e1a24 Avoid crashes on diagnostics with tabs, closes #14073 2024-12-16 12:09:18 +01:00
José Valim 305d8e603c Do not convert fun() into (... -> any()) and vice-versa in typespecs 2024-12-15 15:18:52 +01:00
Jonatan Kłosko 1c7fc86e9c Make :source_path in docs chunk a charlist (#14071) 2024-12-13 16:57:54 +01:00
José Valim 617dc72759 Fix Range.new deprecation assertion 2024-12-13 10:14:47 +01:00
José Valim 4329a3c2f2 Address bootstrap 2024-12-13 10:01:18 +01:00
José Valim 8e8c9a7334 Wrap Range.new in Function.identity to avoid tail call optimization 2024-12-13 09:55:39 +01:00
Michał Łępicki 36c06c3a56 Fix JSON.decode/3 spec (#14068)
The error clause was missing the :error tuple wrapping
2024-12-13 09:52:42 +01:00
Mathias Polligkeit 048cc2ddb1 Further improve warning message for range with negative step (#14070) 2024-12-13 09:52:42 +01:00
Jean Klingler 6c866e8ab2 Fix type warnings in pop_in/1 (#14064) 2024-12-12 17:47:23 +09:00
José Valim 55eca5dff5 Implement JSON.Encoder for Calendar types (#14061) 2024-12-12 00:38:44 +01:00