Commit Graph

15798 Commits

Author SHA1 Message Date
Andreas Rumpf
6af147ed1e fixes #11844 (#11935)
(cherry picked from commit 433613e267)
2019-08-13 17:09:37 +02:00
Araq
05c273334a fixes #10689
(cherry picked from commit 322ce1872f)
2019-08-13 17:09:36 +02:00
Araq
07ea817ab1 fixes #11254
(cherry picked from commit 289b5e9ef9)
2019-08-13 17:09:36 +02:00
sschwarzer
3a064ee3c0 Update documentation on xmltree.items/mitems (#11930)
* Update documentation on `xmltree.items`/`mitems`

So far the documentation on `items` and `mitems` wasn't explicit about whether the iteration recurses down the node's children or not. I assumed recursion, which was wrong.

* Improve wording in comment

Use the more common and shorter word "direct".

(cherry picked from commit c9c28bf85e)
2019-08-13 17:09:14 +02:00
Andreas Rumpf
2874cfa207 destructors: spec reflects reality, =sink is here to stay
(cherry picked from commit da64c8762f)
2019-08-13 17:08:56 +02:00
Andreas Rumpf
94cb21841e fixes #11891
(cherry picked from commit 212ae2f125)
2019-08-13 17:07:46 +02:00
narimiran
6681319b51 fix failing tests 2019-08-13 16:59:50 +02:00
narimiran
95b3d4b88d fix backport version of export markUsed 2019-08-13 16:59:49 +02:00
Andreas Rumpf
e33ff5cb08 merged #11813 manually [bugfix]
(cherry picked from commit 3b8f721460)
2019-08-13 16:59:49 +02:00
Zachary Carter
1cd8b01206 Fixes effect error in pure/logging.nim (#11898)
* Fix effect error in pure/logging.nim

Currently calling `logging.log` will produce - `Error: can have an unlisted effect: RootEffect`. Add `RootEffect` to list of tags.

* the only tag necessary is RootEffect since all other Effects are descendants of RootEffect

(cherry picked from commit 082c440f13)
2019-08-13 16:59:49 +02:00
Andreas Rumpf
f13a783958 tiny style change [refactoring]
(cherry picked from commit e3c0bf48c5)
2019-08-13 16:59:49 +02:00
Andreas Rumpf
36c90fa8fb removed unused imports [refactoring]
(cherry picked from commit 0d5bd7e8b5)
2019-08-13 16:59:49 +02:00
Arne Döring
e7481e7a27 Lock semchecked ast for macros (#11883) [bugfix]
* reject to modify type checked AST
* add flag to back out
* Introduce legacy feature set.

(cherry picked from commit 44e7a7b6c2)
2019-08-13 16:59:49 +02:00
Dmitry Matveyev
812e31038e Fix typo (#11910)
(cherry picked from commit 756fabb979)
2019-08-13 16:59:49 +02:00
Arne Döring
1d13a764e9 delete expensive call (#11909) [refactoring]
(cherry picked from commit 48968f3c84)
2019-08-13 16:59:49 +02:00
konradmb
ad8ea06931 Fix issue #10726 - HTTP response without Content-Length is not accessible (#11904)
* Add patch by @xenogenesi

* Async test for HTTP/1.1 without Content-Length

* Apply suggestions from code review

Co-Authored-By: Dominik Picheta <dominikpicheta@googlemail.com>
(cherry picked from commit addd7b5e20)
2019-08-13 16:59:49 +02:00
Andreas Rumpf
b0d2052a3f Incremental compilation (IC): Improvements (#11881)
* IC: C codegen is aware of IC
* manual: minor change to make VSCode's RST plugin render it properly
* IC: minor refactoring
* testament: code refactorings
* rodutils: removed dead code
* IC: always build the compiler with the IC feature
* IC: C codegen improvements
* IC: implement the undocumented -d:nimMustCache option for testing purposes
* IC: added first basic tests
* IC: extensive testing of the deserialization feature
* testament: refactoring; better IC tests
* IC: removes 'nimMustCache' flag; readonly does the same
* testament: minor refactoring
* update Nimble version
* testament: removed dead code and imports; IC: added simple test
* IC: progress

(cherry picked from commit c8cffaf420)
2019-08-13 16:59:49 +02:00
Andreas Rumpf
31afbd2379 fixes #11807 (#11900)
* fixes #11807
* make tests green again

(cherry picked from commit c0d240b8cd)
2019-08-13 16:59:49 +02:00
amzak
c95f12699b Fixed handling of empty strings for encodings conversions (#11897)
(cherry picked from commit f34ae81971)
2019-08-13 16:59:49 +02:00
awr1
deb8d2f81a Typeclass/Variant clarification in Manual (#11901)
* [Docs] clarified what type classes do in manual

* [Docs] fixed 'dynamism', added to object variant section

(cherry picked from commit 9321b33cd2)
2019-08-13 16:59:49 +02:00
amzak
7689d51ec7 Fixed utf8<->utf16 conversions on windows (#11888)
(cherry picked from commit 3d7d5cf121)
2019-08-13 16:59:49 +02:00
Andreas Rumpf
a5d28e686f fixes #11817 (#11889)
(cherry picked from commit 42e83ac24c)
2019-08-13 16:59:49 +02:00
Araq
c558efdb5c newruntime: make system.delete and friends work with owned ref (bugfix); reported on the forum
(cherry picked from commit 61c66abbfe)
2019-08-13 16:59:49 +02:00
Araq
b1cba3528b fixes #11844
(cherry picked from commit 7024bb800c)
2019-08-13 16:59:49 +02:00
Arne Döring
38893a34ee fixes #9829 (#11849)
(cherry picked from commit b73d097d36)
2019-08-13 16:59:49 +02:00
narimiran
035427186c fix #8305 #7808 #10285 #11061 + other bugs with type mismatch error msgs
(cherry picked from commit a6526695f0)
(cherry picked from commit b80d70b0f3)
(cherry picked from commit 6375df4c53)
(cherry picked from commit 5fce81edfd)
(cherry picked from commit 5ddea6a98f)
(cherry picked from commit 063ae96a66)
2019-08-13 16:59:44 +02:00
Chris Heller
47c965f85f Skip db_postgres.setRow if getRow returns 0 rows (#11859)
Fixes nim-lang/Nim#11821

(cherry picked from commit 343ace8194)
2019-08-12 12:11:25 +02:00
Leorize
f26124fac2 tgetaddrinfo: disable ICMP tests for Haiku
They're not supported by Haiku's getaddrinfo()

(cherry picked from commit 51d998390c)
2019-08-12 12:11:25 +02:00
Leorize
8a007cf4ca tgetaddrinfo: use sizeof() instead of hardcoding
OS like Haiku have a bigger sockaddr_in struct for legacy(?) reasons.
Using sizeof() should account for the different struct sizes.

(cherry picked from commit df32c45757)
2019-08-12 12:11:25 +02:00
Oscar Nihlgård
ccc611e06d Allow typeof(nil) as generic parameter (#11869)
(cherry picked from commit bcfb540e57)
2019-08-12 12:11:25 +02:00
Oscar Nihlgård
64d1159054 VM exception fixes (#11868)
(cherry picked from commit 50e921bb94)
2019-08-12 12:11:25 +02:00
Jjp137
78f4b72d9b random: minor documentation updates (#11831)
Add docs for the sample procs that take in sets, and clean up a
few other minor things.

(cherry picked from commit a906b3952b)
2019-08-12 12:11:25 +02:00
Oscar Nihlgård
ad623d138d Fix VM conversion to var type [bugfix] (#11866)
(cherry picked from commit 829f719670)
2019-08-12 11:22:26 +02:00
Arne Döring
52bdb1adc7 fix #11854 (#11857)
(cherry picked from commit 803406d07c)
2019-08-12 11:22:14 +02:00
Dominik Picheta
58772dce2e Fixes subtle SSL recvInto bug.
This resulted in a "value out of range: -1" exception inside `recvInto`
(on the `copyMem` line). Basically readIntoBuf was returning `-1`.

(cherry picked from commit bb949a75db)
2019-08-12 11:10:26 +02:00
Andreas Rumpf
86f2d0adcc IR: minor refactoring
(cherry picked from commit ceb1a1b688)
2019-08-12 11:10:26 +02:00
Andreas Rumpf
3b8241c163 IC: some progress
(cherry picked from commit f58d87cb43)
2019-08-12 11:09:42 +02:00
Andreas Rumpf
6a0e541336 destructors spec: be more precise about temporaries
(cherry picked from commit c9c8fa99cc)
2019-08-12 11:08:57 +02:00
Andreas Rumpf
09570f20cc nimgrep: introduce the --rex option
(cherry picked from commit b9c15371a3)
2019-08-12 11:08:57 +02:00
Andreas Rumpf
d9fd01af88 nimgrep: fixes the -w option
(cherry picked from commit f7c99838e2)
2019-08-12 11:08:57 +02:00
Andreas Rumpf
69c2341663 makes the -d:nimIncremental compiler mode compile again
(cherry picked from commit 25e6c53bb5)
2019-08-12 11:08:38 +02:00
Arne Döring
08f094c487 fix #11812 (#11829)
* fixes #11812
* fixes #10899
* fixes #11367

(cherry picked from commit 1a77040278)
2019-08-12 11:07:48 +02:00
Giovanni Petrantoni
6fdfdf48de Use proper types according to MSDN and fix clang build of windows dynlib (#11828)
(cherry picked from commit 2fdba334da)
2019-08-12 11:02:43 +02:00
Miran
1ee78916db fix #11772, JS random seed was too large (#11820)
(cherry picked from commit 3bb6d1916e)
2019-08-12 10:52:05 +02:00
narimiran
100d6a1960 close #11166 by adding a test
(cherry picked from commit 3ccda773d6)
2019-08-12 10:52:05 +02:00
narimiran
a7683f8b86 close #9891 by adding a test
(cherry picked from commit 13190435a6)
2019-08-12 10:52:05 +02:00
genotrance
8deb9cf14c Fix #10630 - fix broken separators in nim doc (#11814)
(cherry picked from commit 44aadd50cf)
2019-08-12 10:52:05 +02:00
narimiran
a952f4f35d fix asyncftpclient examples [ci skip]
(cherry picked from commit 5484352d26)
2019-08-12 10:52:05 +02:00
narimiran
a84e943e5b fix failing JS tests
(cherry picked from commit 30f2cec671)
2019-08-12 10:50:36 +02:00
Benjamin Summerton
7d9f176f00 Add opacity to JS Style
I noticed this was missing.  It has cross browser support: https://developer.mozilla.org/en-US/docs/Web/CSS/opacity#Browser_compatibility

(cherry picked from commit 46f2271968)
2019-08-12 10:50:36 +02:00