summary refs log tree commit diff stats
path: root/compiler/msgs.nim
Commit message (Collapse)AuthorAgeFilesLines
* [wip]better hint message for JS (#18704)flywind2021-08-181-10/+21
| | | | | * better hint message for JS * both
* added missing .inline for toCCharAraq2021-07-261-1/+1
|
* followup #18252: show special flags -d:danger, -d:release when given (#18451)Timothee Cour2021-07-081-0/+4
|
* refs #18278: do not gag fatal msgs (#18290)Timothee Cour2021-06-181-4/+11
|
* merge BuildMode into SuccessX, remove code duplication w drnim, add useful ↵Timothee Cour2021-06-141-4/+39
| | | | | | | | | | | info to successx, add gc to compilesettings (#18252) * merge BuildMode into SuccessX, add more info * refactor duplicated with drnim * fixup * address comment
* fixes #18058 (#18162)Andreas Rumpf2021-06-031-8/+4
|
* add astmsgs; add `declared in` msg for usage lint errors (#17961)Timothee Cour2021-05-081-2/+2
| | | | | | | | | * add astmsgs; add `declared in` msg for usage lint errors * fix test * fix tests/tools/tlinter.nim * std prefix
* fix #17853 (ascii message separator broke json nim dump) (#17887)Timothee Cour2021-04-291-0/+1
|
* add `--processing:dots|filenames|off` to customize `hintProcessing` (#17817)Timothee Cour2021-04-231-1/+1
|
* Revert localErrorNode param order changes (#17809)Clyybber2021-04-211-3/+0
| | | | | | | * Revert localErrorNode param order changes * Remove unused globalError overload * heh
* `--filenames:abs|canonical|legacyRelProj` for filenames in compiler msgs ↵Timothee Cour2021-04-211-15/+9
| | | | | | | (replaces `--listfullpaths:on|off`) (#17746) * use canonicalImport for filename_magicSauce * --filenames:abs|canonical|magic * rename: magic => legacyRelProj
* fix `hintMsgOrigin` regression + simplify msgs code (#17805)Timothee Cour2021-04-211-4/+1
|
* unit separator (#17730)Andreas Rumpf2021-04-201-26/+35
| | | | | * use the ASCII Unit Separator so that error messages can be handled precisely by the tooling * updated testament
* IC navigator: added support for include files (#17784)Andreas Rumpf2021-04-191-0/+3
| | | | | | | | | | | | | | | | | * ic fixed navigator crash when track wrong/missed Also fixed an issue with getNimcacheDir not observing the outDir. * closer, but not sure how to test[skip ci][ci skip] * IC navigator: added support for include files * update * make posix happy via expandFilename * update Co-authored-by: Saem Ghani <saemghani+github@gmail.com>
* -d:nimDebug: calls doAssert false instead of quit (#17739)Timothee Cour2021-04-171-1/+2
|
* IC: first steps towards 'nim check --def --ic:on' (#17714)Andreas Rumpf2021-04-141-1/+3
| | | | | | | | | * IC: first steps towards 'nim check --def --ic:on' * IC navigator: deduplicate output lines * IC navigator: progress * IC navigator: use a different nimcache entry * IC navigator: special logic for templates/macros * IC navigator: proper error messages * IC navigator: prepare for testing code; document only what currently works somewhat
* nnkArglist => nnkArgList + special case stylecheck:error (#17529)Timothee Cour2021-03-271-3/+3
| | | | | * nnkArglist => nnkArgList * special case stylecheck:error
* IC: green tests (#17311)Andreas Rumpf2021-03-191-0/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * IC: renamed to_packed_ast module to ic module * IC: don't store the --forceBuild flag, makes it easier to test * IC: enable hello world test * Codegen: refactorings for IC; changed the name mangling algorithm * fixed the HCR regressions * life is too short for HCR * tconvexhull is now allowed to use deepCopy * IC exposed a stdlib bug, required a refactoring * codegen: code cleanups * IC: even if a module is outdated, its dependencies might come from disk * IC: progress * IC: better name mangling, module IDs are not stable * IC: another refactoring helping with --ic:on --gc:arc * disable arraymancer on Windows for the time being * disable arraymancer altogether * IC: make basic test work with 'nim cpp' * IC: progress on --ic:on --gc:arc * wip; name mangling for type info
* `--nilseqs` is now a deprecated noop (#17211)Timothee Cour2021-03-011-0/+3
| | | | | * --nilseqs is now a deprecated noop * fix tests; fix: future => sugar
* IC: next steps (#16729)Andreas Rumpf2021-01-231-1/+1
| | | | | | | | | | | * IC: dead code elimination pass * preparations for a different codegen strategy * added documentation to the newly written code * IC: backend code * IC: backend adjustments * optimized the compiler a bit * IC: yet another massive refactoring * fixes regressions * cleanups
* `--hintAsError` (#16763)Timothee Cour2021-01-201-2/+6
| | | | | | | * --hintAsError * add test, changelog * condsyms
* fix `hintProcessing` dots interference with `static:echo` and `hintCC`; add ↵Timothee Cour2020-12-301-5/+7
| | | | | | | | | | tests for `nim secret`, add tests for hintProcessing, misc other bug fixes (#16495) * fix dots interfering with static:echo * add tests * fix hintProcessing dots for hintCC * improve trunner tests * fix bug: readLineFromStdin now writes prompt to stdout, consistent with linenoise and rdstdin * disable a failing test for windows
* fix `nim secret` dots interfering with prompt (#16491)Timothee Cour2020-12-281-2/+2
| | | | | * fix nim secret dots * cleanups
* fix #16334 (#16335)RSDuck2020-12-141-5/+9
| | | | | | | | | * fix #16334 * rename isstdout -> isStdout * separate lastMsgWasDot for stdout and stderr * simplify logic
* fix #16265; fix #13999 (HCR on OSX); cgen now does not line wrap string ↵Timothee Cour2020-12-141-3/+5
| | | | | | | | | | | | | | | | | litterals (#16329) * fix #16265: cgen now does not line wrap string litterals which, in combination with other hacks, caused a really obscure looking bug * fix #13999; nimhcr_integration.nim now works for osx * try to make appveyor CI disappear * disable openbsd + add diagnostic for openbsd * enable for openbsd * PTEMP * re-disable openbsd
* remove unused and misleading FilenameOption.foShort (#15982)Timothee Cour2020-11-161-2/+0
|
* Correct all eggs (#15906)Miran2020-11-101-4/+4
| | | | * "eg" is a misspelled "egg", "e.g." is "exempli gratia" * Also, "ie" is "i.e.".
* new: `nim -e:cmd` to run a command directly; also fixes #15731 (#15687)Timothee Cour2020-11-091-0/+1
| | | | | | | | | | | | | | | * new: `nim -i cmd` * rename -i to -e (for eval); consistent with majority of other programing languages * `nim e -e:cmd` now works; bugfix: `echo cmd | nim e -` now works * honor --betterRun * address comments * --eval alias for -e (replaces undocumented --eval which was a noop) * --eval now defaults to e (nimscript) instead of r * address comment: remove -e, only keep --eval * address comment * fixup * Update compiler/nimconf.nim Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* Use modern enums in compiler (#15775)cooldome2020-11-021-3/+3
|
* Big compiler Cleanup (#14777)Clyybber2020-08-281-6/+3
|
* `hintMsgOrigin` now works in VM code (#14678)Timothee Cour2020-06-161-3/+3
| | | | | * `hintMsgOrigin` now works in VM code * remove a simplification for now
* misc cleanups in compiler msgs: use toHumanStr, etc (#14677)Timothee Cour2020-06-151-3/+4
|
* fix #14545 windows CI docs (#14590)Timothee Cour2020-06-101-3/+15
| | | | | | * fix #14545 windows paths * add lib/std/private/strutils2.nim * remove dependency strutils2 => strutils * address comment: lib/std/private/strutils2.nim => compiler/strutils2.nim
* bug fixes with sfMainModule, hints, mainPackageNotes, mainPackageId, ↵Timothee Cour2020-06-041-0/+2
| | | | | | | hintSuccessX (#14555) * SuccessX `out` now works with --compileOnly and jsonscript; fix bugs in jsonscript * several bug fixes; eg: `nim doc lib/system/io` now is sane * dummy edit to force docs CI
* Change severity of template instantiation message [backport] (#14526)Danil Yarantsev2020-06-011-1/+1
| | | | | | | * Change severity of template instatiation msg * Add a test * Trailing newline argh
* fixes --warningAsError implementation (#14538)Andreas Rumpf2020-06-011-1/+5
|
* fix #8871 runnableExamples now preserves source code comments, litterals, ↵Timothee Cour2020-05-281-8/+15
| | | | | | | | | | | and all formatting; other bug fix (#14439) * fix #8871 runnableExamples now preserves source code comments, litterals, and all formatting * remove orig deadcode from getAllRunnableExamplesImpl * fix expected examples * add test to close https://github.com/nim-lang/Nim/issues/14473 * correctly handle regular comments before 1st token inside runnableExamples * add test to answer https://github.com/nim-lang/Nim/pull/14439#discussion_r431829199 * update tests
* make it easier to figure out how to debug issues (#14477)Timothee Cour2020-05-281-3/+4
|
* fix #6583, fix #14376, index+search now generated for all projects, many bug ↵Timothee Cour2020-05-251-1/+9
| | | | | | | | | fixes with nim doc (#14324) * refs #6583 fix nim doc output * changelog * change default for outDir when unspecified * cleanups * --project implies --index
* no more code duplication bw liMessage and rawMessage + several bug fixes ↵Timothee Cour2020-05-221-145/+79
| | | | | | | (#14415) * no more code duplication bw rawMessage and liMessage; fixes some bugs in rawMessage * all compiler messages work with hint:msgorigin
* change the [Processing] messages into dots (#14418)Andreas Rumpf2020-05-211-6/+34
| | | | | | | * change the [Processing] messages into dots * better implementation * maybe I should work on something else...
* no more guessing where compiler msgs came from (#14317)Timothee Cour2020-05-131-16/+32
|
* fix js stacktraces, unify all file,line,col formatting into a single ↵Timothee Cour2020-05-051-29/+36
| | | | | function (#14230) * fix https://github.com/timotheecour/Nim/issues/135 ; unify all file,line,col formatting into a single function
* fix https://github.com/timotheecour/Nim/issues/152: avoid writing spurious ↵Timothee Cour2020-05-041-4/+3
| | | | | | | | | `^[[0m` to stderr when callStyledWriteLineStderr not called (#14214) * fix https://github.com/timotheecour/Nim/issues/152 `^[[0m` is inserted in stderr for `echo code | nim c -` * resetAttributes not even needed, already handled in styledWriteLine * simplify tests in tests/trunner.nim thanks to this fix
* new feature: ability to turn specific warnings to errorsAndreas Rumpf2020-04-041-3/+4
|
* properly handle note override logic/verbosity/config/cmdline using ↵Timothee Cour2020-02-271-4/+1
| | | | modifiedyNotes, cmdlineNotes
* remove isCmdLine; use passCmd1Timothee Cour2020-02-271-1/+1
|
* correctly honor cmdline --hint:conf:on/off ; correctly show Conf hints in orderTimothee Cour2020-02-271-1/+4
|
* fix #8312 --hints:off and --warnings:off now honored everywhere (#13489)Timothee Cour2020-02-261-8/+6
|
* make case-object transitions explicit, make unknownLineInfo a const, replace ↵Jasper Jenkins2020-01-171-5/+5
| | | | a few magic numbers with consts (#13170)