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
José Valim
cd5f45b1c6
Add smoke tests for -e/--eval ( #12743 )
2023-07-02 11:04:11 +02:00
José Valim
a65dae971f
Consider surround context until end whenever possible
2023-06-30 15:16:04 +02:00
Vinícius Müller
79c90bf8eb
Report correct position for duplicate struct fields diagnostic ( #12718 )
2023-06-26 21:56:30 +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
Vinícius Müller
86813b4ba6
Reword grouped warnings message ( #12708 )
2023-06-24 23:59:42 +02:00
Vinícius Müller
774d10b83e
Improve compiler warnings visuals ( #12683 )
2023-06-24 22:18:37 +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
Vinícius Müller
07ff933f78
Assert on compiler warnings content rather than format ( #12679 )
2023-06-20 12:17:51 +02:00
José Valim
47a5e30155
Make IO.binwrite consistent with IO.write
2023-06-19 15:27:12 +02:00
Vinícius Müller
0da6662b5e
Improvide diagnostics on lexer exceptions ( #12670 )
2023-06-19 11:07:59 +02:00
Vinícius Müller
b7d3a29db8
Assert on error message rather than format ( #12675 )
2023-06-15 20:06:10 +02:00
sabiwara
2f4a3138cd
Fix slicing MapSet with stepped range ( #12667 )
2023-06-14 12:03:45 +02:00
Vinícius Müller
24883a476c
Use british spelling when referring to elixir behaviour ( #12663 )
2023-06-14 10:25:43 +02:00
José Valim
04b6cd342c
Improve error message for invalid module attribute usage, closes #12656
2023-06-13 16:54:01 +02:00
Vinícius Müller
e2d09bcb6d
Enable column on unused variable test ( #12660 )
2023-06-13 16:37:30 +02:00
José Valim
9041fca941
Fix Path suite on Windows
2023-06-13 15:29:04 +02:00
José Valim
8f43be2ca6
Do not deprecate relative paths, instead make sure the paths are proper
2023-06-13 15:08:03 +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
97873b87c9
Remove useless assertions in warnings_test ( #12649 )
2023-06-11 16:54:29 +02:00
Vinícius Müller
2f6e763ee5
Emit unknown remote call warning with columns ( #12646 )
2023-06-11 14:29:22 +02:00
Vinícius Müller
486eb46795
Refactor warning_tests to assert on warning position ( #12647 )
2023-06-11 11:56:18 +02:00
Vinícius Müller
1f79973768
Add column on unknown remote calls ( #12641 )
2023-06-10 19:31:02 +02:00
Vinícius Müller
ee3263e02f
Check columns by default on warnings tests ( #12643 )
2023-06-10 14:49:37 +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
pnezis
0872ee5444
Support parent relative paths in Path.relative_to ( #12628 )
2023-06-07 17:45:07 +02:00
José Valim
3521675e75
Mark functions as generated in Docs chunk
2023-06-07 13:12:10 +02:00
José Valim
e624c9c25a
Expand dots in relative_to and deprecate relative cwd ( #12632 )
...
The function already assumes there are no symlinks,
so expanding dots does not add additional uncertainty.
2023-06-05 09:17:39 +02:00
José Valim
d7c6edbe78
Deprecate negative steps in slice and date operations
2023-06-03 20:44:00 +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
Zach Allaun
ea185b82f3
Add Module.get_last_attribute/3 ( #12611 )
2023-05-27 21:32:52 +02:00
José Valim
7454333fd0
Require pin variable when accessing variable inside binary size in match, closes #12588
2023-05-26 16:35:36 +02:00
sabiwara
4fc5b77c40
Code.with_diagnostics/2 formats paths as relative ( #12590 )
...
* Code.with_diagnostics/2 formats paths as relative
* Fix in :elixir_errors instead
* Fix it in parallel checker too
2023-05-25 20:07:09 +09:00
José Valim
d4d7c8bcfd
Raise when macros are given to dialyzer, closes #12597
2023-05-25 11:38:23 +02:00
Vinícius Müller
536dcb36e5
Include column in unused alias and imports warning messages ( #12593 )
2023-05-24 10:59:20 +02:00
José Valim
5480491dc5
Include column information in unused variable warning, closes #12591
2023-05-23 20:31:49 +02:00
José Valim
a1e07266f1
Support distributed File.Stream ( #12578 )
2023-05-23 00:00:03 +02:00
José Valim
90c8327888
Support bitstring specifies as map keys in pattern, closes #12586
2023-05-22 23:10:53 +02:00
José Valim
50266c48e4
Fix regression on grammar, closes #12579
2023-05-22 16:15:04 +02:00
José Valim
ca0d6ad60c
Keep operators and identifiers in container_cursor_to_quoted
2023-05-19 22:59:48 +02:00
José Valim
d1d3a083cb
Support operators in container_cursor_to_quoted
2023-05-19 20:46:39 +02:00
José Valim
faf81cd92c
Improve docs for fragments, keep previous lines in blocks
2023-05-18 22:33:47 +02:00
José Valim
a0f0f75ee8
Add Code.with_diagnostics/2, closes #12276
2023-05-16 11:52:59 +02:00