Hussien Liban
f83b4e4e84
Update design-anti-patterns.md ( #13210 )
...
Not setting an option returns just the integer
2024-01-08 20:39:08 +09:00
Adebisi Adeyeye and Adebisi Adeyeye
4de331597a
Fix typo in docs: initial_valye -> initial_value ( #13211 )
...
Co-authored-by: Adebisi Adeyeye <adebisi.adeyeye@proebb.com >
2024-01-08 20:39:08 +09:00
Tomás Grüner
6e295998ef
Fix typo in docs: Keywoird -> Keyword ( #13205 )
2024-01-08 20:39:08 +09:00
Will Douglas and Will Douglas
f2dae095f8
Fix typo in docs: for -> force ( #13215 )
...
Co-authored-by: Will Douglas <will.cavalcanti@vmtecnologia.io >
2024-01-08 20:39:08 +09:00
Jean Klingler
6f5715fc30
Replace single quotes in charlist in doc ( #13233 )
2024-01-08 20:39:08 +09:00
José Valim
1ece71a831
Handle Windows separators on mix test ( #13232 )
...
Closes #13225 .
2024-01-07 23:07:20 +01:00
Ryan B. Harvey
197351dd73
Fix a comment typo in the Code Anti-Patterns doc page ( #13219 )
2024-01-02 18:03:37 +01:00
José Valim
0d671dafea
Improve anti-pattern titles
2024-01-02 16:42:17 +01:00
José Valim
ba8fb4dff1
Improve yecc/leex warnings, closes #13213
2023-12-28 17:12:51 +01:00
José Valim
194661197e
Add more examples to app config anti-pattern ( #13204 )
2023-12-26 09:57:32 +01:00
Travis Vander Hoop
298acd1cdb
Fix typos and tweak language in anti-pattern docs ( #13208 )
2023-12-26 09:57:32 +01:00
Artem Solomatin
97c608c346
Fix typo in design-anti-patterns doc ( #13207 )
2023-12-26 09:57:32 +01:00
José Valim
f84bc19bf2
Additional clarity on long list of parameters anti-patterns
2023-12-24 14:54:45 +01:00
Alex Martsinovich
91375778cb
Fix example in non-assertive map access antipattern ( #13201 )
2023-12-23 10:31:57 +01:00
José Valim
1b7c73273d
Last pass over anti-patterns
2023-12-22 14:31:44 +01:00
José Valim
5bd5e75c3b
Extract snippet in elixir_errors to simplify exception handling
2023-12-21 21:14:55 +01:00
José Valim
1cba584ac8
Fix column precision in test
2023-12-21 19:48:44 +01:00
José Valim
dfafea092e
Consider column in snippets, closes #13199
2023-12-21 19:30:15 +01:00
José Valim
0ae4bfb222
Preserve diagnostics based on source field, closes #13142
2023-12-21 17:22:43 +01:00
José Valim
7db4413476
Add source field to diagnostics
2023-12-21 17:22:43 +01:00
José Valim
4d52d18ef7
Do not reset column state in tests
2023-12-21 17:22:43 +01:00
José Valim
39ff86c551
Indent lists
2023-12-21 15:47:59 +01:00
Tobias Pfeiffer
12fdd8ea9b
Document the process anti pattern of sending large data ( #13194 )
...
Follow up to/extension of #13173
2023-12-21 15:47:59 +01:00
José Valim
28f8eba9a2
Improve docs for URI.encode/2
2023-12-17 13:05:48 +01:00
José Valim
b3b14202d9
Normalize exception handling in diagnostics
2023-12-17 11:40:49 +01:00
José Valim
ffa3ef1ccf
Remove unused function
2023-12-14 17:19:58 +01:00
José Valim
d13f4155af
Do not warn unused imports twice, closes #13178
2023-12-14 17:19:58 +01:00
José Valim
d23e42e27f
Normalize token missing and mismatched delimiter exceptions
...
Closes #13183 .
Closes #13185 .
Closes #13186 .
Closes #13187 .
2023-12-14 17:07:44 +01:00
José Valim
872efb180d
Document diagnostic span
2023-12-14 12:07:20 +01:00
José Valim
7abb3bdddc
Unify position handling and improve docs
...
See #13179 .
See #13184 .
2023-12-14 11:15:05 +01:00
Vinícius Müller
67fd9824cc
Improve diagnostics for unclosed heredocs ( #13182 )
2023-12-14 09:24:59 +01:00
José Valim
1878e30bdb
Improve docs and support column in IO.warn, closes #13179
2023-12-13 23:31:49 +01:00
José Valim
010d516b11
Fix indentation in mix release
2023-12-13 11:56:41 +01:00
José Valim
fb42733873
Improve anonymous functions guide
2023-12-13 06:43:20 +01:00
Tobias Pfeiffer
1070b2f434
Mention dangers around Task and sending a lot of data along ( #13173 )
...
The `Task` module is one of the coolest modules in elixir and
is probably the first contact and experience of a lot of
beginners with parallelism in elixir. I hence find it worthwhile
to warn about the memory copying and its impacts here as it might
easily lead to unwelcome results, so it's worth pointing out.
2023-12-12 16:45:00 +01:00
José Valim
88ba7766e0
Use Macro.Env in more warnings
2023-12-11 11:13:39 +01:00
José Valim
6475917b3f
Use Macro.Env to record attribute warnings
...
Closes #13162 .
Closes #13164 .
2023-12-11 07:34:16 +01:00
José Valim
5b6e04cb4d
Clean up failed deletion warning
2023-12-10 09:03:54 +01:00
Daven
2bfb14751f
Add warning when deps clean fails ( #13161 )
2023-12-10 09:03:54 +01:00
José Valim
b1998960bb
Disable compiler optimizations only in module body
2023-12-09 20:49:40 +11:00
José Valim
c4dcbf379f
Pass original exception down to details in diagnostic, closes #13142
2023-12-09 20:49:40 +11:00
Himanshu
3b5bd39743
Update case-cond-and-if.md ( #13158 )
2023-12-08 21:58:51 +11:00
Wojtek Mach
4e4cde1118
Update Windows installer to write Elixir install root to registry ( #13157 )
...
We don't need this right now but it could be useful in the future, if
anything to detect if Elixir was installed using this installer.
Demo:
iex> {:ok, r} = :win32reg.open([:read])
iex> :win32reg.change_key(r, ~c"\\hklm\\software\\wow6432node\\elixir\\elixir")
iex> :win32reg.value(r, ~c"installroot")
{:ok, ~c"C:\\Program Files\\Elixir"}
2023-12-07 10:28:23 +11:00
Wojtek Mach
e1db6d8831
Update Windows installer to register in Add/Remove Programs ( #13156 )
2023-12-07 08:44:39 +11:00
José Valim
db8a1cdc7d
Revert "Consider surround context until end whenever possible"
...
This reverts commit a65dae971f .
2023-12-04 22:34:56 +10:00
José Valim
d25aacb207
Simplify offset handling in TokenMissingError
2023-12-04 22:08:53 +10:00
Vinícius Müller
106539b5d2
Improve unclosed delimiter messages ( #13123 )
2023-12-04 22:08:53 +10:00
José Valim
d716bc2703
Include both priv and include in releases, closes #13145
2023-11-25 10:34:58 +08:00
José Valim
aa0dcb9a70
Fix prying functions with only literals, closes #13133
2023-11-23 22:33:39 +08:00
Zeke Dou and c4710n
01366ef526
Add Logger.levels/0 ( #13136 )
...
Co-authored-by: c4710n <c4710n@users.noreply.github.com >
2023-11-23 22:09:09 +08:00