José Valim
ef2ccfc7db
Update anonymous-functions.md
2023-12-13 04:19:05 +01:00
Tobias Pfeiffer
0fdb0f8a62
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:43:38 +01:00
Andrea Leopardi
01fd433990
Improve docs for Application.put_all_env/2
2023-12-12 11:14:09 +01:00
José Valim
8f64ca0287
Use Macro.Env in more warnings
2023-12-11 11:13:43 +01:00
José Valim
fcacbfa401
Use Macro.Env to record attribute warnings
...
Closes #13162 .
Closes #13164 .
2023-12-11 07:34:04 +01:00
Andrea Leopardi
7095b2c1b6
Add "available since" to for comprehension docs
2023-12-10 09:20:06 +01:00
José Valim
aabe46536e
Disable compiler optimizations only in module body
2023-12-10 03:23:45 +11:00
José Valim
ed2bbe5b37
Pass original exception down to details in diagnostic, closes #13142
2023-12-10 03:23:45 +11:00
Michael Johnston
6acc1740bc
clarify treatment of whitespace in extended regexes ( #13160 )
2023-12-09 03:49:55 +01:00
Wojtek Mach
cc9e986bde
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 00:28:04 +01:00
Wojtek Mach
374edd8fb4
Update Windows installer to register in Add/Remove Programs ( #13156 )
2023-12-06 22:43:53 +01:00
José Valim
9b7c897f10
Clarify running mode of @after_verify
2023-12-06 23:27:02 +11:00
Joe Yates
1bdcaa4af0
Enrich option parser docs for unknown switches ( #13155 )
2023-12-06 12:46:54 +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
José Valim
09da1ce57c
Simplify offset handling in TokenMissingError
2023-12-04 22:07:32 +10:00
Vinícius Müller
1d978bf73c
Improve unclosed delimiter messages ( #13123 )
2023-12-04 12:46:15 +01:00
Dmitry Slutsky
e952256619
Add info that Regex.scan/3 is only matching non-overlapping matches ( #13153 )
...
With corresponding doctests.
2023-12-03 23:55:38 +01:00
Logan Hasson
2e0a1fe186
Update arity of String.split ( #13151 )
...
`String.split/2` is mentioned, but `String.split/1` is actually used in the example.
2023-12-01 08:22:22 +09:00
José Valim
ba2e56954d
Slightly clarify why guards
2023-11-25 12:36:41 +08:00
Wojtek Mach
7d04c40fc0
Update Application.ensure_all_started/2 docs ( #13144 )
2023-11-24 23:56:21 +08:00
Samuel Chase
341519cb6a
Fix typo in design-anti-patterns.md ( #13141 )
2023-11-23 15:07:36 +01:00
Łukasz Samson
141c3f7413
Properly escape \ in Path.wildcard docs ( #13137 )
2023-11-23 00:45:54 +08:00
Artem Solomatin
1d0fc3ad25
Small text improvement for operators reference ( #13131 )
2023-11-22 01:55:25 +01:00
José Valim
e258ccc279
Remove warning on non-ambiguous nullary remote call
2023-11-22 08:54:39 +08:00
Damir Vandic
a5ac8b2b2c
Add additional docs to Kernel.if/2 ( #13120 )
2023-11-21 16:26:04 +08:00
Vinícius Müller
82a03f6b04
Typo fix ( #13126 )
2023-11-20 15:00:46 +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
Artem Solomatin
da671deba4
Update Time.add message about units ( #13121 )
2023-11-18 15:17:36 +01:00
Wojtek Mach
9415b3779e
Update Mix.Config mentions ( #13115 )
...
ExDoc main emitted these warnings on Elixir main:
```
warning: documentation references module "Mix.Config" but it is hidden
│
49 │ `Mix.Config`, which was specific to Mix and has been deprecated.
│ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
│
└─ lib/elixir/lib/config.ex:49: Config (module)
warning: documentation references module "Mix.Config" but it is hidden
│
51 │ You can leverage `Config` instead of `Mix.Config` in three steps. The first
│ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
│
└─ lib/elixir/lib/config.ex:51: Config (module)
```
2023-11-16 13:59:21 +01:00
Artem Solomatin
ac7d47e32b
Few text improvements in Code ( #13113 )
2023-11-16 00:05:31 +01:00
Stevo-S
47fcb5f902
Fix a broken link to the "Guards" section ( #13112 )
...
of the "Patterns and Guards" references page.
The link is from the "Case, Cond and If" getting-started page.
2023-11-15 22:41:45 +01: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
Artem Solomatin
dbde3ba78e
Fix links references ( #13099 )
2023-11-12 10:07:12 +01:00
José Valim
9e6695f653
Fix GenServer cheatsheet link
...
Closes #13098 .
2023-11-11 21:55:18 +01:00
José Valim
91e1bfeb3c
Fix link, closes #13095
2023-11-11 09:00:12 +01:00
Łukasz Jan Niemier
9eb86db1c0
fix: correct Enum.join/2 spec ( #13094 )
2023-11-10 20:37:39 +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
Cameron Duley
49820a3bfe
Use in/2 in String.replace_invalid/2 guards ( #13093 )
2023-11-10 00:59:05 +01:00
Cameron Duley
e92def3371
Fix String.replace_invalid/2 perf regressions ( #13090 )
2023-11-09 21:13:03 +01:00
Minh Dao and minhqdao
bd51ca7bd8
Fix typo in getting-started guide ( #13085 )
...
Co-authored-by: minhqdao <hello@minhdao.de >
2023-11-07 22:51:35 +01:00
Juan Barrios
cdcf4a2f97
Update float.ex description of ceil/2 and floor/2 ( #13084 )
2023-11-07 20:10:50 +01:00
Jacob Swanner
3904af04c5
Fix Enum cheatsheet for drop/2 and take/2 with negative index ( #13080 )
2023-11-07 09:59:24 +01:00