Commit Graph
4496 Commits
Author SHA1 Message Date
José Valim fd4e6b530c Fix column marker for maps 2024-02-05 15:13:31 +01:00
Mitchell Hanberg eb1499ac29 Include from_brackets metadata in all cases (#13317) 2024-02-05 09:40:16 +01:00
José Valim ecfc82ce63 Preserve . semantics in Path.relative_to, closes #13310 2024-02-01 12:41:21 +01:00
Jean Klingler c54ff0e25d Validate options in async_stream* functions (#13289) 2024-01-31 19:56:47 +09:00
José Valim 00d2be5af7 Fix error message 'a guards', closes #13296 2024-01-30 20:07:38 +01:00
Wojtek Mach 3c8a005a03 Default defimpl to @moduledoc false (#13295) 2024-01-29 16:33:39 +01:00
Guillaume Duboc 035ff54365 Add atom singleton types to descr (#13277)
The :atom field now contains a representation for all possible
atom types. The representation is a pair `{type, set}` where `set`
is a set of atoms. If `type` is `:union` it represents the union
of the atoms in `set`. If `:negation` it represents every atom
except those in `set`.

`boolean()` is defined as the singletons true, false.
2024-01-25 09:43:57 +01:00
José Valim d3285b176e Fix capitalize for single codepoint (#13268) 2024-01-19 19:42:55 +01:00
José Valim f14bcdcac9 Update docs, distinguish truncated/invalid 2024-01-18 16:26:40 +01:00
José Valim 1a36b68075 Add String.byte_slice/3 2024-01-18 16:16:00 +01:00
José Valim 55cd5a4a22 Revert "Do not escape \ in uppercase sigils, closes #8989"
This reverts commit 51d23cbba8
due to a regression.

Closes #13262.
2024-01-17 23:28:21 +01:00
José Valim e4a71032d5 Always log errors at the end 2024-01-17 23:14:20 +01:00
Jean Klingler bc50d94943 Fix Code.Normalizer for keyword operand with :do key (#13250) 2024-01-13 17:58:45 +09:00
José Valim af2b21d67d Do not crash parallel compiler on external reports, closes #13224 2024-01-10 10:16:49 +01:00
José Valim af67554c44 Simplify into/2 exception testing 2024-01-10 09:43:51 +01:00
Brad Hanks 6245a611f3 Raise clearer error messages on collectable (#13235) 2024-01-10 09:41:08 +01:00
Jean Klingler 8cde231bbd behaviour -> behavior when not about OTP behaviours (#13240) 2024-01-09 15:25:14 +09:00
José Valim b1a3e2650b Improve warning, fix pitfalls 2024-01-08 18:24:33 +01:00
José Valim 9c98fa615f Perform inference and checking inside binaries (#13237) 2024-01-08 17:12:49 +01:00
José Valim 3ae8475e41 Add bitmask types to descr (#13230)
The bitmap represents all non-divisible types.
Currently it implements all types in our system,
but atoms, lists, tuples, maps, and functions
will be given more precise types later on.

Dynamic has not been yet implemented nor
optimizations for term.
2024-01-07 19:30:48 +01:00
José Valim 748722dc0d Trim down current typed module implementation (#13226) 2024-01-06 11:33:26 +01:00
José Valim 00202a4d2f Fix column precision in test 2023-12-21 19:48:39 +01:00
José Valim 7f3d62108b Consider column in snippets, closes #13199 2023-12-21 19:26:06 +01:00
José Valim 3a52c2d729 Add source field to diagnostics 2023-12-21 17:05:47 +01:00
José Valim 43e029cbb4 Do not reset column state in tests 2023-12-21 16:17:05 +01:00
José Valim 4cad57f5c0 Remove unused function 2023-12-14 17:19:42 +01:00
José Valim 4d712b25ea Normalize token missing and mismatched delimiter exceptions
Closes #13183.
Closes #13185.
Closes #13186.
Closes #13187.
2023-12-14 17:02:15 +01:00
Vinícius Müller 02b0876154 Improve diagnostics for unclosed heredocs (#13182) 2023-12-14 09:24:43 +01:00
José Valim 2c1ca00d6b Improve docs and support column in IO.warn, closes #13179 2023-12-13 23:30:54 +01:00
José Valim fcacbfa401 Use Macro.Env to record attribute warnings
Closes #13162.
Closes #13164.
2023-12-11 07:34:04 +01:00
José Valim b135a12aeb Revert "Consider surround context until end whenever possible"
This reverts commit a65dae971f.

Closes #13150.
2023-12-04 22:35:27 +10:00
Vinícius Müller 1d978bf73c Improve unclosed delimiter messages (#13123) 2023-12-04 12:46:15 +01:00
José Valim e258ccc279 Remove warning on non-ambiguous nullary remote call 2023-11-22 08:54:39 +08:00
Michał Łępicki 00aa2ee091 Fix Time.add/3 for integer unit (#13125) 2023-11-19 16:37:22 +08:00
Juan Barrios 15e17c1feb Raise in Time.add/3 for non-positive integer (#13122) 2023-11-19 04:37:18 +08:00
Jean Klingler e58e267586 Formatter keeps quotes in atom keys (#13108) 2023-11-15 21:35:25 +09:00
Jean Klingler 856da799a3 Auto infer size of matched variable in bitstrings (#13106) 2023-11-15 20:50:10 +09:00
Wojtek Mach 8b7ce389de Preserve column when translating typespecs (#13101) 2023-11-14 09:58:36 +01:00
José Valim a48c2d5dd2 Remove deprecated code and add TODOs 2023-11-14 00:51:34 +01:00
José Valim 65ffb5db92 Handle error in Macro.to_string/1, closes #13102 2023-11-14 00:51:12 +01:00
José Valim dfba5db6c0 Consider start line in MismatchedDelimiterError 2023-11-13 12:28:39 +01:00
José Valim 51d23cbba8 Do not escape \ in uppercase sigils, closes #8989 2023-11-13 11:53:44 +01:00
José Valim 665a459a59 Handle nil values in IO.warn 2023-11-10 12:53:34 +01:00
José Valim 8ae45c1c6b Fix case clause error on tokenizer 2023-11-06 13:28:53 +01:00
José Valim 8e9cbfcd8c Implement Algorithm L for Reservoir Sampling in Enum
This optimizes Enum.random/1 and Enum.take_random/2
to be 6.3x times faster and use 2.7x less memory.
2023-11-03 21:19:16 +01:00
José Valim 576a347b17 Improve error messages on KeyError and ArgumentError 2023-11-03 08:08:13 +01:00
Cameron Duley eedfbec34f Add String.replace_invalid/2 (#13067) 2023-11-02 19:29:11 +01:00
Jonatan Kłosko 0bb7036655 Add offset option to File.stream! (#13063) 2023-11-02 17:57:49 +01:00
José Valim e5d5b435ff Handle warnings from unquote functions 2023-10-31 12:00:00 +01:00
José Valim 7ff58d75f5 Fix warnings and messages on Erlang/OTP 25 2023-10-31 08:02:15 +01:00