Commit Graph

11210 Commits

Author SHA1 Message Date
Andreas Rumpf
b414806e66 nimsuggest: suggest types in a type section 2017-03-14 11:21:35 +01:00
Andreas Rumpf
f162ff7773 nimsuggest: make tdot1 test case green again 2017-03-14 10:28:50 +01:00
Andreas Rumpf
c149a235e7 nimsuggest: make test green again 2017-03-14 10:23:23 +01:00
Andreas Rumpf
4912300ca7 Merge branch 'devel' into faster-nimsuggest 2017-03-14 10:18:20 +01:00
Andreas Rumpf
e32f08d05b sequtils: removed outdated note 2017-03-14 08:40:02 +01:00
Andreas Rumpf
65f69d5515 Merge branch 'devel' of github.com:nim-lang/Nim into devel 2017-03-14 08:37:06 +01:00
Andreas Rumpf
15a8996d57 valgrind support for nim 2017-03-14 08:36:57 +01:00
zah
650b20dc5e fix varargs forwarding for templates; fixes #5455 (#5505)
* fix varargs forwarding for templates; fixes #5455
* document the macros' varargs change in the news for 0.16.2
2017-03-13 22:02:11 +01:00
Andreas Rumpf
3d534375c7 nimsuggest: logging enable when compiled with -d:logging 2017-03-13 21:59:23 +01:00
c-blake
d59441340d Fixes incorrect fd==0 test on Unix; Conserves handles by default. (#5512)
* Fix 2 problems.  First, 0 is a valid fd on Unix (easily gotten if user first
closes all fds and then starts using memfiles).  Use -1 instead for an invalid
fd.  Second, it is best practice to conserve open fds on Unix and file handles
on Windows.  These handles are not needed unless the user wants to remap the
memory with ``mapMem`` (or a hypothetical future ``proc resize``).  Adding a
new bool param ``allowRemap=false`` to ``memfiles.open`` solves this cleanly
in a "mostly" backward compatible way.  This is only "mostly" because the
default ``false`` case does not keep unneeded resources allocated, but that
most sensible default means that any ``mapMem`` callers need to fix all their
open calls to have allowRemap=true, as this PR also does for tmemfiles2.nim.
* Include backwards compatibility note.
2017-03-12 20:45:10 +01:00
mark-summerfield
9fda97b058 Fixed typo (#5508) 2017-03-12 20:01:01 +01:00
mark-summerfield
ef59b1a8eb Nicer English (#5513) 2017-03-12 19:55:14 +01:00
mark-summerfield
974b4d59b4 Nicer English (#5511) 2017-03-12 17:55:30 +01:00
mark-summerfield
c1ce20594e Nicer English (#5514) 2017-03-12 17:49:48 +01:00
mark-summerfield
639f786e5d Update tut1.rst (#5510)
In general: s/have to/must/g - but you can't do this mechanically because sometimes the must has to go back a word (e.g., line 519).

This looks really odd to me:
if thisIsaLongCondition() and
    thisIsAnotherLongCondition(1,
       2, 3, 4):
  x = true

I would have expected:
if thisIsaLongCondition() and
    thisIsAnotherLongCondition(
       1, 2, 3, 4):
  x = true

If the second form is valid and good Nim style then I suggest using it rather than the original. However, if the original is the preferred style then this should be mentioned in the text since it is unusual.

Since Nim is case-sensitive I think it is bad to write wrongly cased names, e.g., ``Bool`` is a built-in type on line 589. This isn't true since Bool isn't anything, but bool is. So in these cases I'd always reword to avoid this problem (and that's what I've done -- and it also avoids "bool. Bool" which was ugly).
2017-03-12 17:44:33 +01:00
mark-summerfield
3ab884a9e3 Suggested small change to code (#5509)
In a code example I think it best to either use full names (index, item) or abbreviated names where that's common (i, item) but not non-standard abbreviations (indx, itm). So I've changed it to index, item since it is a tutorial, although i, item would be just as good.
2017-03-12 17:40:14 +01:00
zah
1be0022e7c Fixes #5167 and related problems (#5475)
This commit returns to a bit less strict checking of the number
of macro arguments, because some old immediate macros rely on a
behavior where even the arity of the macro is not being checked.

It may be better if such macros are just declared to use varargs[expr],
but this remains for another day.
2017-03-12 09:33:49 +01:00
zah
6e358e3187 don't allow casting to non-concrete types; fixes #5428 (#5502) 2017-03-12 09:27:05 +01:00
Anatoly Galiulin
cb9d554ac9 Fix typo (#5501) 2017-03-10 16:18:56 +01:00
Andreas Rumpf
2430fc7d82 nimsuggest: special rule for 'of' completion in case statements 2017-03-10 14:42:11 +01:00
Andreas Rumpf
c5566f7c37 nimsuggest: make 'con' work again 2017-03-10 13:20:32 +01:00
Andreas Rumpf
68181e6da2 nimsuggest: maxresults limit; fixed local symbol usages priorizations 2017-03-10 11:29:16 +01:00
Zahary Karadjov
62ef5dfec8 new debugging helper to replace and friends 2017-03-10 12:02:55 +02:00
Andreas Rumpf
db888475dc nimsuggest: make tests green again 2017-03-10 09:57:36 +01:00
Andreas Rumpf
16cef36cfd nimsuggest now uses 0 based columsn consistently 2017-03-10 09:56:04 +01:00
Araq
556b564c7d nimsuggest: make tests green again 2017-03-10 00:18:24 +01:00
konqoro
d1119c120d Fix links to manual (#5500) 2017-03-09 22:37:44 +01:00
Araq
57ea01309e nimsuggest: more things work 2017-03-09 17:09:39 +01:00
Araq
4755795416 nimsuggest: more precise cursor tracking 2017-03-09 14:58:14 +01:00
Andreas Rumpf
da821a22d9 nimsuggest: revert cpFuzzy bailouts 2017-03-09 11:30:36 +01:00
Araq
ced38f3fdb udpate channels.nim documentation 2017-03-08 22:56:21 +01:00
Araq
4d0d6c47bd bugfix: consider type contexts properly 2017-03-08 15:59:34 +01:00
Dominik Picheta
42e54e5527 Merge pull request #5497 from ehmry/smtp
SMTP sync/async deduplication
2017-03-08 14:45:32 +00:00
Araq
0f63c101e4 fixes nimsuggest bug #45 2017-03-08 13:21:40 +01:00
Araq
0596c11775 todo updates 2017-03-08 13:04:40 +01:00
Araq
1887390b0f nimsuggest: fixes nimsuggest bug #45; do not show suggestions in string literals or comments 2017-03-08 12:53:21 +01:00
Araq
23a303c536 nimsuggest: update documentation 2017-03-08 12:44:57 +01:00
Andreas Rumpf
507feb3ce5 Merge branch 'devel' into faster-nimsuggest 2017-03-08 00:39:13 +01:00
Andreas Rumpf
91a4b448fd nimsuggest: chk checks the full project lazily; much better suggestions orderings 2017-03-08 00:38:48 +01:00
Emery Hemingway
fecad72e02 SMTP sync/async deduplication
Deduplicate synchronous and asynchronous code with the multisync pragma.
Pass address and port at connect rather than ``new(Async)Smtp``.
2017-03-07 12:10:18 -06:00
David Krause
7dc8dcb581 fixes #5487 (#5494) 2017-03-07 16:58:38 +01:00
Andreas Rumpf
538c6c9898 make some tests green 2017-03-07 12:34:45 +01:00
Dominik Picheta
b46f23d7cc Merge pull request #5496 from Calinou/readme_typo_fix
Fix typo in readme.md (there is no "build-essentials" package in Debian)
2017-03-07 11:33:36 +00:00
Hugo Locurcio
9e170f1159 Fix typo in readme.md (there is no "build-essentials" package in Debian) 2017-03-07 12:20:17 +01:00
Andreas Rumpf
9ed322323e nimsuggest: better ordering of symbols (part 1) 2017-03-07 10:58:43 +01:00
Andreas Rumpf
d9ad6465af nimsuggest: bugfix: don't intertwine errors and suggestions 2017-03-07 10:42:46 +01:00
Andrea Griffini
c2630b338d Typo (#5495) 2017-03-07 10:01:07 +01:00
Ruslan Mustakov
9608acf200 Check if __STDC_VERSION__ is defined (#5488) 2017-03-07 09:56:46 +01:00
Anatoly Galiulin
24ec36f097 Fix iconv import on freebsd and netbsd (#5490) 2017-03-07 09:56:16 +01:00
Araq
3fa428c88b fixes #5467 2017-03-07 00:27:47 +01:00