Commit Graph

7459 Commits

Author SHA1 Message Date
Araq
86e2d6ee90 fixes #3476 2015-10-27 08:37:56 +01:00
Araq
e94a6ec1f9 added an assertion 2015-10-27 08:37:43 +01:00
Araq
ee08c6eecf tries to fix the travis build 2015-10-26 14:57:22 +01:00
Araq
aa36e73ecf fixes #3431, fixes #3370, fixes #3468 2015-10-25 02:22:50 +01:00
Araq
77dc0e50ff fixes #3474 2015-10-25 02:38:33 +02:00
Araq
cd7b5ae1eb fixes #1799 properly 2015-10-25 02:35:18 +02:00
Araq
c1c76a20e6 try to make travis generate the tar.xz 2015-10-25 01:29:51 +02:00
Araq
5206c310e6 fixes #1799 2015-10-25 01:26:08 +02:00
Andreas Rumpf
1c9f05ef13 Merge pull request #3442 from Dhertz/devel
Make sure the json module decodes UTF16 correctly
2015-10-23 02:02:07 +02:00
Andreas Rumpf
ba63ea9e82 Merge pull request #3454 from jlp765/osproc
add simple example for execProcess, exeCmd, execCmdEx
2015-10-23 02:01:26 +02:00
Andreas Rumpf
2dff190512 Merge pull request #3467 from nanoant/patch/fuse-msg-api-n-use-stdout-help
Simplify msg API and always use stdout for help/usage
2015-10-22 22:49:03 +02:00
Adam Strzelecki
24731c5360 compiler/commands: Always write usage to stdout
Usage is compiler command output, not diagnostics, so we shall output it to
stdout. Also this makes: nim -h | less or nim -h | grep ... working.
2015-10-22 22:14:45 +02:00
Adam Strzelecki
acb6a36656 msgs: One msgWriteln with optional flags
Instead of msgWriteln, outWriteln and stdoutWriteln doing essentially the same.
2015-10-22 22:09:15 +02:00
Andreas Rumpf
705cdf8553 Merge pull request #3466 from nanoant/patch/remove-dead-mac-platform-code
system/dyncalls: OS X is already handled as posix
2015-10-22 21:15:31 +02:00
Andreas Rumpf
da33d5ef62 Merge pull request #3464 from yglukhov/disable-failing-tests
Fixed tests for TravisCI.
2015-10-22 21:14:54 +02:00
Adam Strzelecki
a02359b4e1 system/dyncalls: OS X is already handled as posix
So elif defined(mac) has absolutely no effect, also this block uses some legacy
discouraged NSCreateObjectFileImageFromFile function.
2015-10-22 20:40:02 +02:00
Yuriy Glukhov
e5aefbd1d4 Fixed tests for TravisCI 2015-10-22 21:34:37 +03:00
Araq
a90e23a4dd added --reportConceptFailures switch to the manual 2015-10-22 12:14:33 +02:00
Araq
9cc25f8b77 fixes #3452 2015-10-22 12:14:32 +02:00
Araq
ec2d370053 added --reportConceptFailures switch 2015-10-22 12:14:31 +02:00
Araq
e722770fbb doc\advopt.txt
added --reportConceptFailures switch
2015-10-22 12:14:31 +02:00
Dominik Picheta
bf6211df6c Merge pull request #3463 from yglukhov/patch-1
Fixed broken links
2015-10-22 10:38:30 +01:00
Yuriy Glukhov
c894f6fd25 Fixed broken links 2015-10-22 12:09:04 +03:00
Araq
d93507fd2e fixes #3338 2015-10-22 10:24:46 +02:00
Araq
3f24a7ff3e mitigates unclear nimsuggest problem 2015-10-22 10:24:19 +02:00
Araq
3d512a73e6 documentation improvements; system.nim docs adapted to unix's braindead idea of how software should be packaged which didn't work in 1970 and surprise doesn't work in 2015 either 2015-10-21 02:18:38 +02:00
Araq
d221241ac5 fixes wrong doc comments 2015-10-19 16:11:39 +02:00
Araq
3ccd5ca64b make terminal.nim work with --app:gui 2015-10-19 16:09:35 +02:00
Araq
03550f14f8 createThread is more convenient to use with a proc taking no arguments 2015-10-19 16:09:35 +02:00
Araq
c977daf9d8 added poDemon flag for process management 2015-10-19 16:09:34 +02:00
Dominik Picheta
1f3e473529 Merge pull request #3458 from jlp765/systemExamples
system.nim add example to a few proc headings
2015-10-19 10:31:31 +01:00
JamesP
e84a411e60 add example to proc headings for
addr, and, or, xor, div, mod, shl, cmp, setLen
2015-10-19 09:55:42 +10:00
Araq
0586cee2be fixed the most embarrassing typo in the history of Nim 2015-10-16 22:13:55 +02:00
Araq
d1ae1cba87 fixes installation problems on unix by hardcoding the dlls.zip name 2015-10-16 22:02:34 +02:00
Andreas Rumpf
ae7bba7456 Merge pull request #3441 from nanoant/patch/msg-to-stderr-by-default
Extend terminal module, use stderr for Nim compiler diagnostics by default
2015-10-16 21:51:40 +02:00
Andreas Rumpf
7bc49a4d2c Merge pull request #3455 from nim-lang/zeo-banner
Added Nim workshop banner to front page slider.
2015-10-16 20:58:16 +02:00
Adam Strzelecki
78568859c5 compiler/vm: Use stdout too in VM time echo
Now VM time echo outputs to stdout too, same as compile time echo, rather using
same handle as compiler diagnostics (stderr default).
2015-10-16 20:55:17 +02:00
Adam Strzelecki
abb82554b7 compiler/msgs: Default to stderr for diagnostics
Previously we were defaulting to stdout for diagnostics, which could interfere
with scripts or `nim c -r' programs outputting their results to stdout,
possibly mixing their output with compiler messages.

This change makes now Nim to be inline with other compilers emitting
diagnostics to stderr. Also now --stdout option has proper meaning making all
diagnostics to be sent to stdout instead.

NOTE: Tester now calls compiler with --stdout.
2015-10-16 20:55:17 +02:00
Adam Strzelecki
2bc6acc808 terminal: Support both styled stdout and stderr
This is important if we want to write styled diagnostics to stderr, eg. some
tool outputting results to stdout, but writing styled error messages to stderr.

Previously this module was assuming we are writing only to stdout. Now all
module procs take file handle as first argument. Wrappers assuming stdout are
provided for backwards compatibility.

The new terminal.styledWriteLine(f, args) is provided and documented as
counterpart for unstyled plain writeLine(f, args).
2015-10-16 20:55:17 +02:00
Adam Strzelecki
9ef50717fa terminal: Remove superflous hStdout = conHandle
Use just hStdout on Windows to keep handle to process stdout.
2015-10-16 20:55:17 +02:00
Dominik Picheta
af865cd7ae Added Nim workshop banner to front page slider. 2015-10-16 19:52:09 +01:00
Araq
7b816a9fac added Nim conference news 2015-10-16 19:02:07 +02:00
JamesP
f596e8145d add simple example for execProcess, exeCmd, execCmdEx 2015-10-16 23:13:14 +10:00
Andreas Rumpf
612d3f84fb Merge pull request #3437 from nim-lang/threadpool-isready
Implement isReady procedure in threadpool module.
2015-10-15 23:55:29 +02:00
Andreas Rumpf
2f276f8559 Merge pull request #3451 from yglukhov/js-ret-by-var
JS: Fixed return by var. More fixes to copying.
2015-10-15 23:51:05 +02:00
Yuriy Glukhov
e7918fe6e5 Avoid extra copy in JS when inserting. 2015-10-15 17:59:23 +03:00
Yuriy Glukhov
955954a89f Gen temp name instead of nimVarUnpack 2015-10-15 17:50:06 +03:00
Yuriy Glukhov
2166b7bc46 Fixed ret by var in js 2015-10-15 16:04:53 +03:00
Araq
c97cbe7abd fixes #3299 2015-10-15 09:31:54 +02:00
Andreas Rumpf
7d6c9143d7 Merge pull request #3450 from Varriount/add-dll-downloads
Added DLL download to installer
2015-10-15 09:28:31 +02:00