Commit Graph

14644 Commits

Author SHA1 Message Date
slangmgh
dfa5faea0f Fixes #10352 (#10416) 2019-01-28 09:34:03 +01:00
alaviss
74a7b09412 suggest: quote operators and keywords on suggestion (#10460) 2019-01-28 09:29:49 +01:00
cooldome
690f21043d isLastRead regression fix (#10463)
* fixes #10462

* add a test
2019-01-28 08:32:14 +01:00
Timothee Cour
5fa8a61a23 add git diff hints to help with reviews (#10435) 2019-01-28 07:10:20 +01:00
Thomas T. Jarløv
91b39f2219 uri: Update documentation typo (#10471) 2019-01-27 21:59:58 +01:00
Neelesh Chandola
4f0c3274ee Fix example in manual for line pragma (#10468) 2019-01-27 17:29:33 +01:00
Federico Ceratto
7533f3bcbd Add link to nims.html (#10472) [ci skip] 2019-01-27 17:27:54 +01:00
alaviss
0b02241fc5 semcall: correct lineinfo for accquoted symbols (#10461) 2019-01-27 14:58:10 +01:00
c-blake
322f395f31 Make MemSlice stringification both simpler and faster. (#10464) 2019-01-27 13:52:46 +01:00
LemonBoy
3ce6b2acb9 Fix exception tracking in try blocks (#10455)
Exceptions raised inside a nkFinally/nkExcept block are not caught by
the block itself.

Fixes #3886
2019-01-27 10:32:44 +01:00
Mandeep Singh
a0623a2356 Updated httpClient.nim: added import httpClient statements in examples
Added import httpClient statements in examples, as it was not obvious for a new started from python regarding what to import
2019-01-26 14:45:26 +00:00
Matt Haggard
3c106541fa Increase verbosity of logGC (#10449)
* Increase verbosity of logGC

* Remove & c.repr to avoid re-entering the GC
2019-01-26 12:26:36 +01:00
Federico Ceratto
68dd9be0f5 Handle empty lines in parsecsv; fixes #8365 (#9343) 2019-01-26 10:27:08 +01:00
Timothee Cour
4d230db5ab closes #8610 ; adds test case (#10454) 2019-01-25 19:28:03 +01:00
Miran
268197add8 properly deprecate parseopt2 (#10452) 2019-01-25 13:13:55 +01:00
Federico Ceratto
87fce94d65 Add "cmd" description, minor improvements (#10436) 2019-01-25 11:29:46 +01:00
Araq
70c7348d3e gc:regions: undo the regression introducing changes 2019-01-25 09:49:16 +01:00
narimiran
83caa58c7a docs: fix trailing comma in links 2019-01-25 09:43:47 +01:00
Christian Lyder Jacobsen
8313e5f24e Use hexadecimal in json escaping (#10437) [backport] 2019-01-25 09:29:32 +01:00
cooldome
1c2abb8d88 fixes double object field symbol lookups (no test case available) (#10450) 2019-01-25 09:25:11 +01:00
Araq
43613ff49d docgen: style tweak 2019-01-25 09:22:31 +01:00
Araq
3de255541a docgen: do not produce trailing commas for links 2019-01-25 09:21:51 +01:00
Araq
13d667ee53 docgen: produce links for proc names 2019-01-25 09:21:51 +01:00
Araq
46d5fb9ed7 docgen: nicer indentation 2019-01-25 09:21:51 +01:00
Miran
44923a1b1f fix #10287 (#10448)
The only thing separating these two files
(which wrongly appear on index.html as modules)
and the rest of the (correctly placed)
documents was the style of the title :D
2019-01-25 08:34:02 +01:00
narimiran
baf72691cb include missing modules in lib.rst 2019-01-24 20:09:16 +00:00
jiro
bc31eb301a better docs: parsecsv (#10391) 2019-01-24 17:14:23 +01:00
Miran
251b014bf4 fix #9556 (#10445)
The old logic wasn't very useful because
`relPath` is almost always shorter than `absPath`,
e.g. `../../../../../` is shorter than `C:\Program Files`.

This way allows the usage of a relative path for
at most two levels deep, e.g. `../../relPath`,
otherwise the absolute path is used.
2019-01-24 14:40:16 +01:00
Miran
e75049d7b6 fixes #10433 (#10444) 2019-01-24 12:22:59 +01:00
alaviss
d72921ecf6 compiler/sem: correct macros lineinfo (#10438)
The compiler believes these are where a macro call starts (marked with
`^`):

    m "string"
    ^ ^

This commit addresses that.
2019-01-24 12:22:19 +01:00
Arne Döring
6555d89c2c free some registers after usage, allows more complex macros (#10443) 2019-01-24 11:33:44 +01:00
Federico Ceratto
15ee5d65d1 Add koch run example (#10434) 2019-01-24 11:24:58 +01:00
Thomas T. Jarløv
f9a0eaf89d better docs: algorithm (#10372) 2019-01-24 10:28:07 +01:00
narimiran
ce5e8b93e2 better docs: xmltree 2019-01-24 00:35:37 +01:00
narimiran
f0be575ed1 move tests from tospaths to tos, fixes #9671
Also, change some of `echo`s to `doAssert`.
2019-01-23 22:04:00 +01:00
Araq
28cb81ea87 make DLLs tests compile again; remove dependency on nimbase.h slightly 2019-01-23 22:03:15 +01:00
Araq
c4d2cb9ea6 excpt.nim: code cleanup, don't produce nimFrame in -d:release mode 2019-01-23 22:03:15 +01:00
Araq
40d1c7d43a OutOfMemError is never raised so there is no need to check for it (produce less code) 2019-01-23 22:03:15 +01:00
Araq
400b4e4e0e improve the generated code size for --gc:regions 2019-01-23 22:03:15 +01:00
alaviss
35d96d8749 compiler/sem*: better lineinfo for templates (#10428)
* compiler/sem*: better lineinfo for templates

Lineinfo for templates is inconsistant across the compiler, for example:

    doAssert true
    ^        ^

    a[int](10)
    ^^    ^

The `^` marks where the compiler thinks the template starts.

For qualified call, we got the same situation with `proc`s before #10427:

    system.once
          ^

Generics lineinfo within template declaration is also incorrect, for
example, this is where the compiler believes the `T` in `[T]` is:

    template a[T](b: T)
                  ^

This PR addresses all of these problems.

* nimsuggest: add tests for template highlighting
2019-01-23 16:35:34 +01:00
Tomohiro
bad5ad6dc7 Fix issue #10358 (#10383)
* Fix bug: vccexe finds oldest VCC

* echo path to vcvarsall.bat as hint when failed to execute cl.exe
2019-01-23 15:02:26 +01:00
narimiran
c60bb94647 update gitignore [ci skip] 2019-01-23 13:30:32 +01:00
Vindaar
d9ee377517 fix #10339 by returning type attached to nkEmpty (#10370)
* fix #10339 by checking for nkObjConstr

* revert check for nkObjConstr, return type from nkEmpty node

The correct type needed in `semObjConstr` to fix #10339 is indeed
available, but attached to an `nkEmpty` node. These were previously
discarded in `semTypeNode`, which is used to extract the type for the
object.

* simplify return of PType from  `nkEmpty`

* also fixes #9866, add test case
2019-01-23 11:17:32 +01:00
Ico Doornekamp
efa4b9adaa Fixes #10263; [backport] 2019-01-23 11:13:44 +01:00
Federico Ceratto
c3229dc1c3 Add packaging guide #5182 (#10384) 2019-01-23 11:12:46 +01:00
LemonBoy
9c0e5c4c07 Harmonize the var/let and const handling (#10410)
Fixes #10333
2019-01-23 11:10:51 +01:00
Ico Doornekamp
7fcf51248b Added --docInternal option to allow 'nim doc' to include non-exported symbols 2019-01-23 11:09:26 +01:00
Andreas Rumpf
2655f242a8 use the lastRead analysis; it's correct by construction, not a mess of special cases and seems to be just as fast as the old algorithm 2019-01-23 11:08:51 +01:00
Andreas Rumpf
112f7e650a destroyer.nim: code cleanup 2019-01-23 11:08:51 +01:00
Andreas Rumpf
1b0372c6e9 make tests green again 2019-01-23 11:08:51 +01:00