Commit Graph
2406 Commits
Author SHA1 Message Date
José Valim 926560350b Extract snippet in elixir_errors to simplify exception handling 2023-12-21 21:14:44 +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 71039d97d3 Do not warn unused imports twice, closes #13178 2023-12-14 17:18:13 +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 aabe46536e Disable compiler optimizations only in module body 2023-12-10 03:23:45 +11: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
Jean Klingler 856da799a3 Auto infer size of matched variable in bitstrings (#13106) 2023-11-15 20:50:10 +09: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 1b6fb26dfb Let's not deprecate ...foo as the API may be useful
for the type system in the future.

This reverts commit f97d8585e8.
2023-11-10 12:36:04 +01:00
José Valim c4fa754dde Add :emit_warnings to Code.string_to_quoted 2023-11-06 16:30:46 +01:00
José Valim 8ae45c1c6b Fix case clause error on tokenizer 2023-11-06 13:28:53 +01:00
José Valim 8d7975bc0b s/parens/parentheses 2023-11-01 12:42:47 +01:00
José Valim f437e8695b Require Erlang/OTP 25+ (#13045) 2023-10-30 23:55:36 +01:00
José Valim 2f43c8cc47 Warn on map.field() and mod.function 2023-10-30 21:43:27 +01:00
George Guimarães eb20bdd716 Fix some typos (#13043) 2023-10-30 17:48:47 +01:00
José Valim 14f3a1e372 Deprecate single quotes as charlists 2023-10-29 13:30:03 +01:00
José Valim 08f315016f Add @nifs attributes 2023-10-25 23:53:24 +02:00
Aziz Köksal af9c0aaeb6 Change the word "duplicated" to "duplicate" (#13008) 2023-10-24 20:11:48 +02:00
José Valim 9581ba791a Annotate function definition and not when guard 2023-10-24 00:50:58 +02:00
José Valim c35d002dc2 Fix column information in tests 2023-10-24 00:36:24 +02:00
José Valim 09946ee776 Include column information on definition metadata
Closes #13029.
2023-10-23 20:12:20 +02:00
José Valim 69255ecbc8 Do not leak alias from Elixir root and simplify defmodule implementation 2023-10-17 11:09:21 +02:00
José Valim ddb2434357 Emit warning if True/False/Nil are used also outside of alias 2023-10-17 10:03:28 +02:00
José Valim bd5f02ad8d Address compilation on Erlang/OTP 24 2023-10-14 11:39:02 +02:00
José Valim 03605cc3ed Address compilation on Erlang/OTP 24 2023-10-14 11:36:22 +02:00
José Valim 218d2e1a09 Use remote version of erl_eval callbacks
This allows us to execute erl eval instructions across nodes
with different Elixir versions.
2023-10-14 11:29:13 +02:00
José Valim 3e47910f39 Address compilation warnings on Erlang/OTP 24 2023-10-13 22:48:16 +02:00
José Valim 44d3faad45 No longer track module as context inside after_compile 2023-10-11 15:53:41 +02:00
José Valim ee7f0c22b8 Do not tie eval functions to Elixir version 2023-10-11 10:33:08 +02:00
Jean Klingler 320477cf5e Add local_handler to erl_eval (#12998) 2023-10-08 21:59:46 +09:00
José Valim a7adda21fd Remove always true otp_release checks 2023-10-08 13:40:37 +02:00
Vinícius Müller 47d706734c Add error span for unknown local call 2023-10-07 18:12:15 +02:00
José Valim a4c700b23b Unify caret position in diagnostics
Closes #12995.
2023-10-07 17:23:20 +02:00
Vinícius Müller 9a74a73a00 Normalize hint labels (#12958) 2023-09-23 18:59:08 +02:00
Jean Klingler 55fbc528f9 Always rewrite signed numbers during expansion (#12955) 2023-09-23 18:08:52 +09:00
Jean Klingler 9c0fa3cfef Warn when matching on 0.0 and generate erl AST for +/-0.0 (#12949) 2023-09-23 00:27:44 +09:00
Vinícius Müller f632fc648e Set parser_options[:columns] to true by default (#12941) 2023-09-18 09:42:17 +02:00
José Valim 5225b33bab Add interpolation token metadata 2023-09-17 22:46:26 +02:00
José Valim cb9de080e5 Strip column information on quote 2023-09-17 22:25:33 +02:00
José Valim 32690dd7d1 Read snippets as binaries 2023-09-16 20:30:04 +02:00
Vinícius Müller 10077bdb5e Add span to unused/undefined variable diagnostics (#12940) 2023-09-16 20:11:26 +02:00
Vinícius Müller f1594048a5 Unicode support for mismatched delimiter errors (#12935) 2023-09-16 10:59:59 +02:00
Vinícius Müller 3111a5b78a Improve mismatched delimiter message (#12928) 2023-09-15 18:31:48 +02:00
José Valim 646577af50 Add opening_delimiter to token missing error 2023-09-15 18:18:09 +02:00
José Valim 9a3d1a0321 Include open_delimiter in TokenMissingError 2023-09-15 18:18:09 +02:00