Commit Graph
4995 Commits
Author SHA1 Message Date
José Valim f1ad48181e Trace on definition callbacks, closes #14427 2025-04-26 08:42:56 +02:00
José Valim c20222ba0b Trace on load functions, see #14427 2025-04-26 08:42:56 +02:00
José Valim 920a6a0a42 Consistenly apply timeouts across suites (#14444)
Closes #14443.
2025-04-18 12:11:12 +02:00
Andrea Leopardi fdbc664334 Add Base.valid{n}?/2 functions (#14417) 2025-04-11 08:59:46 +02:00
José Valim 32f7646eb4 Add block_keyword_or_binary_operator to Code.Fragment (#14414) 2025-04-08 12:06:24 +02:00
José Valim 247fd711cf Emit trace events for super calls, closes #14395 2025-04-08 09:45:11 +02:00
José Valim bb8761a3c7 Properly track imported function calls in tracer
Closes #13878.
2025-04-08 09:25:20 +02:00
José Valim d581f7ae26 Improve coverage for several protocol implementations (#14409) 2025-04-07 23:27:50 +02:00
Jonatan Männchen f3e8ceb5aa Implement Test Coverage Reporting (#14343) 2025-04-07 22:37:01 +02:00
Jonatan Männchen c0ba8a1ee9 Use Test Modules in tests instead of Elixir built-in modules (#14383) 2025-04-07 16:11:37 +02:00
José Valim 468228a236 Add :indentation to Code.string_to_quoted/2 (#14406) 2025-04-07 16:02:01 +02:00
José Valim f628d9563b Add optimistic/pessimistic groups to Inspect.Algebra (#14403)
This is a simplified implementation of next_break_fits
with fewer corner cases.
2025-04-07 15:07:38 +02:00
José Valim 207f5aaa16 mix format 2025-04-06 23:17:00 +02:00
José Valim 148135988c Fix flex break at group end 2025-04-06 23:14:30 +02:00
Jean Klingler be17d71e45 Allow optional: :all when deriving Inspect (#14400)
* Allow optional: :all when deriving Inspect

* Improve error message when passing a non-list
2025-04-05 16:58:13 +09:00
José Valim 25f063e085 Do not crash on nested bitstrings 2025-04-03 11:50:12 +02:00
Dmitry Kleymenov c215c42c45 Fix deprecation warnings for regex in module attributes (#14387) 2025-04-01 21:03:37 +02:00
José Valim 624ae0c9a2 Recompile regexes when escaped from module attributes (#14381) 2025-03-30 16:13:02 +02:00
José Valim 5a6735e9d9 Consider distance to previous comment in comment metadata, closes #14375 2025-03-28 11:18:59 +01:00
José Valim adc9a28b24 Warn on structs even if both sides have numbers 2025-03-25 14:20:32 +01:00
José Valim bfb6cdba19 Emit struct comparison warning only if the intersection has structs
This avoids the false negatives while still emitting
the warning when trying to compare two datetimes or similar.
2025-03-25 12:47:53 +01:00
José Valim b27b911318 Remove struct comparison specific warning
Now that we have added inference, there are too many false
positives. However, note we still have a disjoint check warning,
which will still warn about several cases of structs.

Closes #13227.
Closes #14359.
2025-03-25 12:19:12 +01:00
Jean Klingler a6a38e130f Handle non-binary bitstring in struct default values (#14363) 2025-03-25 18:07:07 +09:00
Marcel Otto b096b50728 Fix URI.merge/2 handling of authorityless base (#14358)
* Fix URI.merge/2 handling of base without authority

* Organize URI.merge/2 tests in describe block
2025-03-24 22:42:43 +01:00
David Pavlík e0c016ce1b Add Access.values/0 (#14350) 2025-03-24 13:51:46 +01:00
Marcel Otto b601b1c2e3 Fix URI.merge/2 trailing slash handling at root path (#14346) 2025-03-19 11:49:21 +01:00
Marcel Otto 3baf987266 Fix URI.merge/2 for hostless absolute base URIs (#14344) 2025-03-18 20:58:14 +01:00
Marcel Otto b9f012fc77 Fix URI.merge/2 handling of base with trailing dots (#14341) 2025-03-18 14:40:59 +01:00
José Valim e8df031514 Ensure defimpl add export definition on protocols 2025-03-17 16:11:51 +01:00
Jean Klingler 5998c0e549 Fix handling of ErlangError when :general key is chardata (#14329) 2025-03-15 19:18:18 +09:00
Yves OrtonandYves Orton d25bea52fb Improve warning message about defaults to mention private functions (#14326)
The original version of this warning did not mention that the warning
applies to private functions only, this patch fixes that.

Co-authored-by: Yves Orton <yves.orton@remote.com>
2025-03-13 09:51:05 +01:00
José Valim 1468352e35 Do not discard nil on protocol concat, closes #14311 (#14314) 2025-03-06 10:39:22 +01:00
José Valim 65ae6232c4 Encode any JSON key to string, closes #14305 (#14309) 2025-03-05 09:47:33 +01:00
José Valim 71da1a29aa Do not raise when Stream.cycle is explicitly halted, closes #14307 2025-03-03 12:54:49 +01:00
José Valim c1e79d189c Support Erlang/OTP 28 2025-02-20 18:10:23 +01:00
José Valim 7d9c531519 Ensure that keyword: (... -> ...) can be encoded back, closes #14267 2025-02-20 06:10:35 +01:00
Daniel Kukula f1bf1b8602 Use newlines and pretty printing in several builtin exceptions (#14269) 2025-02-18 11:39:58 +01:00
José Valim ff90cd157c Ensure inner halt in Stream.transform does not override user intention, closes #14278 2025-02-18 10:21:54 +01:00
Theodor Fiedler 8f6cb5d33d Do not truncate microseconds in DateTime.diff/3 (#14274)
Closes #14273
2025-02-17 23:14:14 +01:00
José Valim 0bc8a60c9b Turn off refinements on dynamic calls 2025-02-12 11:57:46 +01:00
José Valim 71696e939b Do not change value of infer signatures during tests 2025-02-12 11:25:20 +01:00
Jonatan Männchen f7bbe81ea7 Inline licence info & copyright for test files (#14257) 2025-02-07 20:54:14 +01:00
José Valim 2251b1e64a Collapse structs in type warnings by default 2025-02-07 16:38:16 +01:00
Jonatan Männchen e1d171e5c7 Add inline License / Copyright to Erlang files (#14255) 2025-02-05 13:50:00 +01:00
José Valim fb7b34550e Remove deprecation warning from Dialyzer suite 2025-02-04 22:38:24 +01:00
José Valim 29e3b78da8 Allow controlling which applications are used during inference 2025-02-03 18:13:18 +01:00
José Valim e019dfdf22 Have specific type violation messages per construct instead of generic ones 2025-02-03 14:24:23 +01:00
Kip Cole b118698777 Support 2-arity options for Calendar.strftime/3 (#14247) 2025-02-01 11:30:42 +01:00
Haelwenn Monnier 07afa71d3b Properly handle permissions errors cascading from parent in File.mkdir (#14242) 2025-01-30 13:33:03 +01:00
José Valim a56886969a Allow <<_::3*8>> in typespecs 2025-01-30 10:23:39 +01:00