Commit Graph

2407 Commits

Author SHA1 Message Date
Adam Strzelecki
3c20747394 Turn GC_getStatistics into hintGCStats 2015-07-03 14:05:00 +02:00
Adam Strzelecki
c009aadc74 Turn stack trace printing into hintStackTrace
So stack trace printing can be explicitly enabled by --hint[StackTrace]:on.
2015-07-03 14:05:00 +02:00
Adam Strzelecki
d568ac3357 Turn optPrintSurroundingSrc into hintSource
So surrounding source printing can be enabled for lower verbosity levels
explicitly.
2015-07-03 14:05:00 +02:00
Adam Strzelecki
00366cb8d4 Turn loadDynamicLib msg into hintDependency 2015-07-03 14:05:00 +02:00
Adam Strzelecki
18b3d04291 Turn execExternalProgram msgs into hintExecuting
Or hintLinking that is used on verbosity:1. This lets you treat this message as
regular hint, and control it via command line.
2015-07-03 14:05:00 +02:00
Adam Strzelecki
592f867aa5 List warnings & hints via --(hints|warnings):list
Hints and warnings can be now listed using --warnings:list and --hints:list
printing names and checkboxes indicating which of these are enabled.
2015-07-03 14:05:00 +02:00
Adam Strzelecki
14e6ff6780 Introduce NotesVerbosity defining verbosity levels
This solves two issues:

1. Some notes were enabled explicitly for some verbosity levels, so
   --hintName:on has no effect if verbosity level was too low.

2. Verbosity level for notes is not longer scattered across the source code,
   instead if now lives in msgs.nim NotesVerbosity array

3. Individual note settings have stronger effect than verbosity setting,
   so --hintName:off will disable hint regardless of high verbosity setting,
   and vice-versa --hintName:on will enable hint even on low verbosity setting.
2015-07-03 12:37:42 +02:00
Araq
2d196442fa fixes #3048, fixes #3047 2015-07-03 10:31:49 +02:00
Araq
841a179d28 fixes #2633 2015-07-03 01:57:00 +02:00
Araq
cdc6529ccf fixes #3038 2015-07-03 00:20:34 +02:00
Araq
3df9d2bd0c fixes #2540 2015-07-03 00:20:33 +02:00
Araq
c314f8e65e fixes #3040 2015-07-02 23:04:46 +02:00
Araq
65c1b0c128 fixes #3041 2015-07-02 22:45:33 +02:00
Araq
0df8fa1ddd fixes #3044 2015-07-02 21:42:10 +02:00
Araq
bbf7e18e5b varargs[untyped] actually works 2015-07-02 21:22:56 +02:00
Araq
560cfd48fc fixes broken merge 2015-07-02 16:29:22 +02:00
Araq
cabbcd411d implements varargs[untyped]; refs #2545; to be documented 2015-07-02 16:18:11 +02:00
Araq
b159fc3b34 fixes #2993 2015-07-01 17:42:12 +02:00
Araq
959d418d1d fixes 'instantiation from here' highlighting 2015-07-01 15:02:13 +02:00
Araq
1555f41796 fixes #3032 2015-07-01 13:35:58 +02:00
Araq
039da42401 fixes #1463 2015-07-01 03:23:23 +02:00
Araq
54a374a828 .header pragma now supports preprocessor directives 2015-07-01 02:15:21 +02:00
Araq
4afb8b8043 fixes #2935 2015-07-01 02:15:21 +02:00
Araq
cc57a0430b fixes #3028 2015-07-01 02:15:20 +02:00
Andreas Rumpf
2f9ad55fbd Merge pull request #3025 from r-ku/3022_fix
Fixes #3022
2015-06-30 17:54:39 +02:00
r-ku
1a14e9d366 Fixes #3022 2015-06-30 17:52:18 +03:00
Araq
28de800d61 Merge branch 'more_concurrency' into devel
Conflicts:
	doc/tut1.txt
	lib/core/locks.nim
	lib/pure/collections/tables.nim
	lib/pure/selectors.nim
2015-06-30 12:50:24 +02:00
Araq
4cfe216a77 fixes #2880 2015-06-30 12:20:03 +02:00
Flaviu Tamas
6aae246ef1 Fix #3018
Looks like the problem is that the compiler expected the hash to be a certain
number of characters, but the file actually contained a (shorter) crc hash.
2015-06-29 16:52:47 -04:00
Araq
ace9299a32 added /*INCLUDESECTION*/ section for .emit pragma 2015-06-29 02:48:30 +02:00
Araq
afad61c220 fixes #2731 2015-06-26 00:05:29 +02:00
Araq
47658cd426 fixes #2974 2015-06-25 11:42:29 +02:00
Araq
2236a5be61 VM: use stricter notion of equality for NimNode 2015-06-25 11:42:27 +02:00
Araq
47dce26886 fixes #2985 2015-06-25 11:42:27 +02:00
Araq
ce9fa80b92 fixes #2979 2015-06-25 02:08:58 +02:00
Araq
2a1620490c protect against new stupid setlen that doesn't accept -1 anymore 2015-06-25 02:08:57 +02:00
Adam Strzelecki
67fac7f1e7 Change --useColors to --colors:on|off and add help
Since we introduced automatic colors on terminals (via isatty) there is no way
to turn it off, since (undocumented) --useColors just turns them on.

This replaces --useColors with --colors:on|off, so anyone who prefers
non-colored compiler messages may now turn it off now.
2015-06-24 19:57:56 +02:00
yglukhov
0069308b22 JS object initializer fix. 2015-06-23 14:46:38 +03:00
Araq
3444b87079 fixed indentation 2015-06-21 10:57:26 +02:00
Araq
aa8b470cf6 use linenoise instead of GNU readline 2015-06-21 10:04:26 +02:00
patrick dw
2a0f7b5de7 renamed writeln to writeLine in compiler 2015-06-19 01:45:12 -05:00
Andreas Rumpf
29b09a3c7d Merge pull request #2953 from yglukhov/fix-2617
Fixes #2617, fixes addr of obj downcast.
2015-06-18 17:51:06 +02:00
Araq
17cace280c fixes #2297, fixes #2946 2015-06-18 15:06:00 +02:00
yglukhov
85d5c86efa Changed sets of strings to IntSets 2015-06-18 15:09:43 +03:00
yglukhov
9ae4a0425a Fixes #2617, fixes addr of obj downcast. 2015-06-18 13:35:21 +03:00
Andreas Rumpf
ad1ac76567 Merge pull request #2851 from stefantalpalaru/gogc
the Go GC (using the gccgo implementation)
2015-06-16 20:46:23 +02:00
Andreas Rumpf
042c0146cd Merge pull request #2914 from yglukhov/js-exceptions
Fixed and slightly changed exception handling in JS.
2015-06-16 13:07:34 +02:00
yglukhov
fa1f3aecce Unhandled exceptions handling brought back. 2015-06-15 23:08:38 +03:00
Andreas Rumpf
116a60caeb Merge pull request #2856 from fowlmouth/patch-4
made string compatible with openarray[char]
2015-06-15 21:04:50 +02:00
yglukhov
090fc33641 Fixed and slightly changed exception handling. 2015-06-15 21:49:49 +03:00