flywind
f559319a68
fix a sqlite bug ( #18669 )
2021-08-12 09:21:01 -07:00
Timothee Cour
5c1304a418
fix #18670 quoteShellCommand, quoteShell, quoteShellWindows on windows ( #18671 )
2021-08-12 16:50:08 +02:00
Andreas Rumpf
018465a234
fixes #18643 [backport:1.0] ( #18678 )
2021-08-12 08:25:11 +02:00
Timothee Cour
c94933acb7
fix #18674 --nimcache now works better with --os:windows ( #18675 )
2021-08-11 13:30:51 -07:00
Andreas Rumpf
bc14b77359
fixes #18665 DFA generator bug ( #18676 )
2021-08-11 17:19:23 +02:00
Timothee Cour
6c1bd4bb1c
fix: var a{.foo.} = expr inside templates (refs #15920 ) (except when foo is overloaded) ( #13869 )
...
* fix: `var a{.foo.} = expr` inside templates
* add test
* improve tdecls test
* improve tests
* add failing test
* PRTEMP
* fixup
2021-08-11 12:17:17 +02:00
Timothee Cour
8540065754
--cc:env now works correctly to assign linker executable, allowing to cross-compile/run for windows on osx via wine ( #18672 )
...
* --cc:env now works correctly to assign linker executable, allowing using wine on osx
* fixup
2021-08-11 11:42:01 +02:00
RSDuck
d0dd923acf
Switch maintanance ( #18668 )
...
* Fix and improve Nintendo Switch support
* Document the necessity for nimAllocPagesViaMalloc
* update changelog
* Use --gc:orc in examples
2021-08-11 08:54:49 +02:00
Kyle Brown
31fc0f9718
Remove unused imports, and deprecated function usage ( #18663 )
...
* clean up imports and slice to remove delete
* revert buggy code
* Replace "delete" with setlen to remove depreciation warning
2021-08-11 01:26:42 +02:00
Timothee Cour
8ce782d463
Add optional recursive arg to distinctBase (v2) ( #18659 )
...
* Add optional recursive arg to distinctBase
* Add docs and examples
Co-authored-by: ALANVF <alan.invents@gmail.com >
2021-08-09 08:51:39 +02:00
Timothee Cour
988c02b7cb
renamed: lib/std/private/vmutils.nim -> lib/std/private/bitops_utils.nim to avoid confusion with unrelated std/vmutils ( #18660 )
2021-08-08 19:24:45 -07:00
flywind
a7e622267e
use lent ( #18638 )
2021-08-08 20:44:14 +02:00
Christian Ulrich
0d3af5454b
Only allow IPv4 literals in strict form ( #18656 )
...
* Only allow IPv4 literals in strict form
The strict form as defined in RFC 6943, section 3.1.1 only allows the dotted
form ddd.ddd.ddd.ddd of IPv4 literals, where ddd is a one to three digit decimal
number between 0 and 255. Until now octal numbers (with a leading zero) were
interpreted as decimal numbers which has security implications, see
CVE-2021-29922 and CVE-2021-29923.
* Update lib/pure/net.nim
Co-authored-by: Dominik Picheta <dominikpicheta@googlemail.com >
2021-08-08 19:11:07 +01:00
Kyle Brown
eb19db6595
Nim pretty and add void ( #18652 )
...
* pretty and add void
* distro fixup
* Update lib/pure/distros.nim
Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com >
* tab to space
* requested change to be cleaner
Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com >
2021-08-08 19:30:51 +02:00
Timothee Cour
24445d31b3
improve several tests in testament ( #18635 )
...
* silence error output from template_various.nim
* any => auto in tests
* avoid showing failed for parseSpec since this is expected behavior in 2 cases: tincludefile.nim, tnav1.nim
* enforce InheritFromException
* fixup
2021-08-08 19:28:49 +02:00
flywind
9269a72f6f
[nre]fix #17129 ( #18632 )
...
* fix #17129
* correct
* give reference implementaion links
* add comment
* typo
* I'm conservative
* change
2021-08-08 19:27:43 +02:00
Juan Carlos
2cddf7fc96
Documentation only, add 1 example ( #18621 )
...
* ReSync with Devel
* ReSync
* Documentation only, add 1 example to For loop macro
* Flip it
* Update doc/manual.rst
Co-authored-by: Andreas Rumpf <rumpf_a@web.de >
Co-authored-by: Andreas Rumpf <rumpf_a@web.de >
2021-08-08 19:26:34 +02:00
Juan Carlos
6563a685c1
Documentation only, add 1 example ( #18633 )
2021-08-03 09:16:33 -07:00
Timothee Cour
c0abdaa2b4
improve runnableExamples and docs for std/nre ( #18634 )
...
* improve runnableExamples and docs for std/nre
* avoid too long lines in example
2021-08-02 22:22:47 -07:00
Kyle Brown
499d4690fb
Add Artix to distro list ( #18629 )
2021-08-02 03:38:15 -04:00
flywind
2bc07554cc
make proc names consistent ( #18626 )
...
* rename `endswith` to `endsWith`
* rename
2021-08-01 12:52:24 +01:00
flywind
916d0c21af
fix #18620 ( #18624 )
...
* fix #18620
* add testcase
2021-08-01 11:19:43 +02:00
Timothee Cour
52e276c82d
exportC => exportc ( #18625 )
2021-07-31 23:54:08 -07:00
Antonis Geralis
ecfc47b332
Modify atlas test for short commit hashes ( #18619 )
...
* test commit hashes support
* Update testdata.nim
* remove extra newlines
2021-07-30 16:36:16 +02:00
Andreas Rumpf
562dde624f
fixes #18371 ( #18617 )
2021-07-30 12:05:14 +02:00
flywind
c6fadb1799
[minor] reduce substr ( #18611 )
...
* minor
* correct
* unify the type of addrLen
* Update lib/packages/docutils/rstgen.nim
2021-07-30 09:32:00 +02:00
Timothee Cour
9a26f5059b
refs #16613 : check opcWrDeref for nil ( #18613 )
2021-07-30 09:30:22 +02:00
Timothee Cour
afc0259b12
fix #18385 followup, by building nimsuggest with -d:release during testing ( #18581 )
2021-07-29 19:28:33 -07:00
Timothee Cour
6b3c77e7f4
Remove tracking of environment from osenv.nim v2 ( #18575 )
...
* Remove unnecessary environment tracking
* try to fix windows
* fix delEnv
* make putEnv work on windows even with empty values; improve tests: add tests, add js, vm testing
* [skip ci] fix changelog
Co-authored-by: Caden Haustein <code@brightlysalty.33mail.com >
2021-07-29 23:05:26 +02:00
Andrey Makarov
bbe05c1532
docgen: draw frame around active anchors ( #18607 )
2021-07-29 13:30:19 +02:00
konsumlamm
1bba641fed
Update lib.rst ( #18605 )
...
* Update lib.rst
* Remove "Unstable" category
Add `strbasics`
* Update doc/lib.rst
* Update doc/lib.rst
Co-authored-by: Andreas Rumpf <rumpf_a@web.de >
2021-07-29 10:50:17 +02:00
Vindaar
7d3c3e00ef
Allow nnkAccQuoted in genEnumCaseStmt ( #18606 )
...
* [enumutils] provide node kind for `Invalid node type` error
* [enumutils] add support for nnkAccQuoted in `genEnumCaseStmt`
For reasons unknown to me, when running `nim doc` on a file that uses
`parseEnum` with an enum that contains accented quotes errors at CT
with the `Invalid node for type` error. Further errors are raised,
probably because the enum parsing fails?
2021-07-29 07:47:34 +02:00
Miran
e616675c41
various small documentation improvements ( #18602 )
2021-07-28 14:31:13 +02:00
Andreas Rumpf
a273ea70e8
implements overloadable enum values; WIP ( #18470 )
...
* implements overloadable enum values
* simpler code
2021-07-28 12:46:28 +02:00
Timothee Cour
4c1202972a
fix #17072 : add times.dateTime with ISO 8601 order ( #18590 )
...
* fix #17072 : add times.dateTime with ISO 8601 order
* address comments
2021-07-28 06:38:19 +02:00
Timothee Cour
8d2f6bba3a
support same-line doc comments in routines ( #18595 )
...
* support same-line comments in routines
* remove assert as per review comment
2021-07-27 19:50:59 +02:00
Andreas Rumpf
4920b06973
fixes #18543 ( #18601 )
...
* fixes #18543
* make tests green again
2021-07-27 19:04:55 +02:00
Andreas Rumpf
6dc34757b6
fixes #18579 ( #18600 )
2021-07-27 14:32:56 +02:00
Andreas Rumpf
c86f9590fb
fixes #18570 ( #18599 )
2021-07-27 12:48:27 +02:00
Timothee Cour
493721c16c
delEnv now works at CT ( #18568 )
2021-07-27 09:56:16 +02:00
GordonBGood
37f5f0d7d0
Clarify use of import via pseudo dir... ( #18569 )
2021-07-27 09:38:30 +02:00
Timothee Cour
3b3006ef16
add comment to astalgo.debug ( #18594 )
2021-07-27 09:37:11 +02:00
Jason Beetham
ed44618deb
Fixed const tuples in inferred generics ( #18598 )
2021-07-27 09:36:59 +02:00
Andreas Rumpf
fa0209609d
fixes #18565 ( #18593 )
...
* fixes #18565
2021-07-27 09:36:19 +02:00
flywind
9cb5ab0108
fix #18578 ( #18580 )
...
* fix #18578
* add tests
* tiny
* apply changes
* typo
* add removeStaticFile
2021-07-27 07:21:39 +02:00
konsumlamm
22776c410a
Update documentation for dynlib ( #17356 )
...
* Update documentation for dynlib
* Apply suggestions
* Improve error handling in example
2021-07-26 19:15:21 -04:00
Miran
4eca84cff7
don't use plus instead of space ( #18589 )
2021-07-26 19:13:47 -04:00
Andreas Rumpf
664dbb6bfb
atlas tool: testing via mocking ( #18588 )
...
* atlas: refactoring
* Atlas: do some basic testing via mocking
2021-07-26 18:00:03 +02:00
Antonis Geralis
d4c3a09286
optimize for the non-throwing case ( #18587 )
2021-07-26 15:22:42 +02:00
Andreas Rumpf
158d7c7a7a
fixes #18558 again ( #18586 )
2021-07-26 14:15:55 +02:00