José Valim
329442c481
Provide more AST around cursor fragments, closes #14118
2025-01-21 10:36:19 +01: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
6f7eaf1122
Keep line information in defstruct
2025-01-12 20:09:44 +01:00
Jean Klingler
ac910c1cc2
Prevent infinite loop in compiler for some invalid type specs ( #14155 )
2025-01-09 18:27:55 +09:00
José Valim
24714c68a7
Improve error message for invalid default arguments
2025-01-02 18:36:27 +01:00
José Valim
f3dfb72c69
Properly handle optional keys in map intersection
2024-12-30 11:39:57 +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
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
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
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
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
José Valim
a78f1715dc
Fix error message around single quote keywords
2024-12-10 19:30:39 +01:00
José Valim
793c114721
Add JSON encoding and decoding ( #14021 )
2024-12-10 12:14:30 +01:00
José Valim
4328b090ae
Add Duration.to_string ( #14028 )
2024-12-04 16:11:10 +01:00
Eksperimental
eadbd8bdf3
Fix typos ( #14023 )
...
The typos were detected by this app: https://pypi.org/project/typos/
running the following command
typos --exclude "lib/elixir/unicode/" --exclude "man/" --exclude "typos" --format brief
2024-12-01 16:59:24 +01:00
José Valim
e3bad83233
Move __deriving__ callback to the protocol
2024-11-27 18:38:48 +01:00
José Valim
1f98708649
Add @undefined_impl_description
2024-11-27 18:38:48 +01:00
José Valim
8eba863f8f
Properly track stab inside container_cursor_to_quoted, closes #13826
2024-11-25 14:46:23 +01:00
Dave Lucia
2f844fd77b
Move value in protocol errors to its own line ( #14003 )
2024-11-21 10:00:11 +01:00
José Valim
bb028b951f
Always consider Elixir modules on inference ( #14000 )
2024-11-19 13:40:16 +01:00
Jonatan Kłosko
8e1d0411ba
Add token metadata to distinguish between :nil and nil ( #13999 )
2024-11-18 09:32:15 +01:00
Guillaume Duboc
d7f8578742
Add map normalization cases ( #13997 )
2024-11-15 19:22:24 +01:00
Jonatan Kłosko
3b01b2a632
Add separate metadata entry for every block parens ( #13996 )
2024-11-15 13:55:22 +01:00
Theodor Fiedler
9c7604ccf2
Ignore microsecond precision when validating shift date duration ( #13993 )
2024-11-14 15:14:47 +01:00
José Valim
a6ad2b8c03
Fix test which accidentally removed :throw
2024-11-14 12:28:13 +01:00
José Valim
a7c8be77e6
Ensure one arity catch is always expanded to :throw
2024-11-14 11:16:38 +01:00
José Valim
bb9ddb3317
Mark negation inside refute as generated, closes #13992
2024-11-13 23:11:01 +01:00
Guillaume Duboc
f869345e27
Add list normalization for printing ( #13989 )
2024-11-13 00:53:19 +01:00
José Valim
60bd0ae7e8
Simplify test by using automatic generation
2024-11-12 23:39:55 +01:00
José Valim
0182f7d146
Raise for undefined function within unused function
2024-11-12 23:19:41 +01:00
Guillaume Duboc
26318ebb0a
Improve perf of tuple_difference ( #13988 )
2024-11-12 23:19:28 +01:00
José Valim
cb2e03688e
Perform return type inference and application across local calls ( #13984 )
2024-11-11 23:06:31 +01:00
José Valim
485ca72ae2
Infer types and use them across remote calls ( #13981 )
...
This also unifies handling of deterministic builds with Erlang/OTP
as well as warnings_as_errors.
2024-11-09 18:00:27 +01:00