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
José Valim
c6250bc57b
Trace functions before they are inlined, closes #12925
2023-09-13 09:38:28 +02:00
Vinícius Müller
0349240827
Add MistmatchedDelimiterError ( #12918 )
2023-09-12 12:18:51 +02:00
Vinícius Müller
0d139c15df
Save column information on start delimiter tokens ( #12916 )
2023-09-10 13:09:56 +02:00
Vinícius Müller
7e9006988d
Add span field to diagnostics ( #12843 )
2023-09-03 21:14:51 +02:00
afloram
9321f2f20b
Remove extra space ( #12894 )
2023-08-29 00:32:31 +02:00
sabiwara
03ef7a1059
Always pass stracktrace when necessary
2023-08-23 12:05:52 +02:00
Jean Klingler
a94700f861
Fix unused function warning with overridables ( #12865 )
2023-08-16 16:18:07 +09:00
José Valim
e0d04e1ffe
Warn on nullary remote calls, related to #9510
2023-08-15 10:30:57 +02:00
Jean Klingler
146fb4e3ff
Make has_unquote/1 quote-aware ( #12836 )
2023-08-05 20:39:05 +09:00
Jean Klingler
ba4c160080
Warn on unused defp/defmacrop using unquote/1 ( #12832 )
...
* Remove unused macro
* Remove unused default arg in test
* Warn on unused defp/defmacrop using unquote/1
* Add tests for metaprogrammed clauses without warnings
2023-08-05 19:07:50 +09:00
José Valim
d3a6395edf
Only add spacing to error message if snippet is present
2023-07-31 13:11:33 +02:00
José Valim
ec24260ffc
Simplify IEx CLI booting
2023-07-28 13:33:26 +02:00
José Valim
bc45fabd9c
Do not expand aliases recursively, closes #12822
2023-07-26 12:46:35 +02:00
Vinícius Müller
48b471d055
Update diagnostics reporting format ( #12813 )
2023-07-20 18:49:55 +02:00
José Valim
4614de646a
Optional arguments must be counted from the end, closes #10095
2023-07-19 14:31:53 +02:00
Jean Klingler
4411dbe3f2
Expand captured args with regular context ( #12763 )
...
* Expand captured args with regular context
* Rewrite test depending on current line
* Display a different warning for captured arguments
* Mention the reason in a comment
2023-07-07 22:22:01 +09:00
José Valim
93ff4a22de
Disable tail call optimization on file root entries
2023-07-07 13:37:44 +02:00
José Valim
58bb5194d3
Propagate diagnostics from inner compiler process
2023-07-06 09:41:57 +02:00
José Valim
56098b98db
Only include location in diagnostic when precise
2023-07-03 17:55:27 +02:00
Vinícius Müller
f60d54bbc1
Show snippets on additional diagnostics printing ( #12725 )
2023-07-02 14:29:41 +02:00
Vinícius Müller
384ca45a16
Fix infinite recursion in get_file_line ( #12714 )
2023-06-26 11:38:11 +03:00
José Valim
7b67dd4553
Remove trailing space and trailing newlines in snippets
2023-06-25 20:04:11 +02:00
Vinícius Müller
2e87bc8385
Align error snippet with stacktrace on single digit lines ( #12709 )
2023-06-25 19:46:24 +02:00
Jean Klingler
88d6436a39
Refactoring: use recursion instead of building list ( #12711 )
2023-06-25 16:54:56 +09:00
Vinícius Müller
774d10b83e
Improve compiler warnings visuals ( #12683 )
2023-06-24 22:18:37 +02:00
José Valim
1a04a8216d
Do not add extra newlines after hints
2023-06-24 17:05:50 +02:00
Jean Klingler
a7edd6ea47
Parser honors :static_atoms_encoder for multi-letter sigils ( #12706 )
...
* Unify sigil token generation
* Parser honors :static_atoms_encoder for multi-letter sigils
* Remove chars from token, reverse engineer from atom
2023-06-24 18:29:24 +09:00
José Valim
6620b48fd1
Fix dbg on Erlang/OTP 25- ( #12697 )
2023-06-22 20:53:17 +02:00
José Valim
fcc743c47f
Simplify whitespace prunning
2023-06-19 13:29:54 +02:00
Vinícius Müller
0da6662b5e
Improvide diagnostics on lexer exceptions ( #12670 )
2023-06-19 11:07:59 +02:00
José Valim
bacea2cef6
Keep capture operator on container cursor to quoted
2023-06-12 10:43:51 +02:00
Vinícius Müller
34f54c0cea
Pass column info through meta_location and env_format ( #12639 )
2023-06-09 19:24:34 +02:00
José Valim
7711aa1919
Improve heredoc warning
2023-06-08 16:14:55 +02:00
José Valim
3521675e75
Mark functions as generated in Docs chunk
2023-06-07 13:12:10 +02:00
Wojtek Mach
1e3341382f
Fix Macro.to_string/1 and ExUnit diffs for multi-letter sigils ( #12627 )
2023-06-01 16:17:51 +02:00
Wojtek Mach
aef0879665
Fix import m, only: :sigils for multi-letter sigils ( #12626 )
2023-06-01 14:46:55 +02:00