summary refs log tree commit diff stats
path: root/compiler/msgs.nim
Commit message (Collapse)AuthorAgeFilesLines
* 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)
* [backport] always set `fileInfoIdx.isKnownFile` (#12773)Jasper Jenkins2019-11-291-0/+1
|
* Cosmetic compiler cleanup (#12718)Clyybber2019-11-281-11/+10
| | | | | | | | | | | | | | | | | | * Cleanup compiler code base * Unify add calls * Unify len invocations * Unify range operators * Fix oversight * Remove {.procvar.} pragma * initCandidate -> newCandidate where reasonable * Unify safeLen calls
* revert changesAndrii Riabushenko2019-07-251-16/+10
|
* fixes #11826Andrii Riabushenko2019-07-251-10/+16
|
* [refactoring] remove unused imports in the compiler and in some stdlib modulesAraq2019-07-181-1/+1
|
* better run [feature] (#11709)Andreas Rumpf2019-07-111-5/+11
| | | | | | | * track the checksums of all involved Nim files for smarter 'nim c -r' recompiles * don't recompile unless necessary for 'nim c -r' [feature] * [feature] koch boot uses a two step process in order to free the RAM before the GCC/Clang invocations * fixes a serious regression
* styleCheck: make the compiler and large parts of the stdlib compatible with ↵Araq2019-07-101-2/+2
| | | | --styleCheck:error
* nim styleChecker: implemented all the missing features (bugfix)Araq2019-07-101-0/+7
|
* msgs, ccgstmts: fixes #11572 (#11621)alaviss2019-06-301-7/+14
| | | | | | | | | | | | | | | | | | | | | | | * [refactor] msgs: toFilename now return just the filename The C codegen uses just the file name for stacktrace when excessiveStackTrace is off (see quotedName), so there aren't any reason for other codegen to not do the same. The file name is now cached in TFileInfo.shortName, which was introduced for nimsuggest, and went unused after several refactoring of the compiler. A toProjPath() proc has been added for the previous behavior of toFilename(). * ccgstmt: use quotedFilename() for raiseExceptionEx This is the same proc used for stacktrace when --stacktrace:on Fixes #11572 * msgs: handle case where file name is not available
* fixes #11606Araq2019-06-281-2/+8
|
* [refactor] compiler/[msgs, reorder, semstmts]: use toMsgFilename where ↵alaviss2019-06-261-5/+6
| | | | | | | | appropriate (#11595) * compiler/msgs: toMsgFilename now operates on FileIndex * compiler/reorder: use toMsgFilename for compiler messages * compiler/semstmts: respect listFullPaths for recursive deps error
* compiler/[msgs, options]: confine --listFullPaths to compiler messages (#11583)alaviss2019-06-261-16/+12
| | | | | | | | | | | | | | | | | | | | | * compiler/[msgs, options]: make toFilename independent of listFullPaths toFilename is used mainly in codegen, as such it should not follow --listFullPaths * compiler/msgs: use toMsgFilename for toFileLineCol This proc is mainly used for compiler messages, so it should follow --listFullPaths * compiler/msgs: remove toFileLine unused proc * compiler/msgs: cleanup toMsgFilename Also improved path choosing logic, /home should now be preferred over ../home on *nix
* fixes #11436Araq2019-06-191-1/+2
|
* Replace countup(x, y-1) with x ..< yClyybber2019-05-071-1/+1
|
* fixes a critical GC safety inference bug (#10615)Andreas Rumpf2019-03-051-7/+8
| | | | | | * fixes a critical GC safety inference bug * make nimsuggest compile again * make Nimble compile again
* compiler/[msgs, suggest]: improve highlighter accuracy (#10496)alaviss2019-02-071-1/+5
| | | | | | | | | | Previously the compiler would generate suggestions based on the symbol identifier length, but that might not reflect the actual representation of it within the actual source code. This commit implements a simple source scanner for the suggest module to address the problem outlined above. Fixes nim-lang/nimsuggest#24
* fix #9556 (#10445)Miran2019-01-241-1/+1
| | | | | | | | | 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.
* Fixes #10263; [backport]Ico Doornekamp2019-01-231-1/+1
|
* [error messages, stacktraces] fix #8794 #9270 #9767 #9768 (#9766)Timothee Cour2019-01-081-9/+15
| | | | | | | | | | | | | | | | | | | * fixes #8794 : `Error: undeclared field: 'foo'` should show type (+ where type is defined) (hard to guess in generic code) * fixes #9270: `--listFullPaths` not honored by `declared in foo.nim` messages * fixes #9767: VM stacktrace doesn't honor --excessiveStackTrace:on * fixes #9768: VM stacktrace misses column info, can lead to ambiguous or harder to read stacktraces * refactors some col+1 code to col + ColOffset (self documents code) * make getProcHeader show declared info location also for types and all routine kinds (including macros,templates) instead of just (rather arbitrarily) for iterator,proc,func,method * --listFullPaths now is honored in more places * fix typo system/except.nim => lib/system/excpt.nim * remove substr(foo, 0) hack in compiler/vm.nim which seems old and not applicable anymore
* fix off by 1 error in `col` shown by toFileLineCol (#10138)Timothee Cour2018-12-311-1/+1
| | | | | * fix off by 1 error in `col` shown by toFileLineCol * fix test failures
* IC: further progressAraq2018-11-221-1/+1
|
* Fixes #9556 (#9604) [backport]Neelesh Chandola2018-11-021-3/+6
|
* compiler: show name of instantiating context in error traces (#6763) (#9207)xzfc2018-10-111-11/+17
|
* added a test for 'nim doc'Andreas Rumpf2018-09-071-2/+2
|
* compiler refactoring; use typesafe path handing; docgen: render symbols ↵Andreas Rumpf2018-09-071-27/+30
| | | | between modules
* fixes #5745Araq2018-09-031-3/+0
|
* even more strict isNil handling for strings/seqs in order to detect bugsAraq2018-08-221-1/+1
|
* WIP: disallow 'nil' for strings and seqsAndreas Rumpf2018-08-131-4/+4
|
* make basic debugging possibleArne Döring2018-06-261-2/+2
|
* cleanup compiler/prettybase to not use redudant global variablesAndreas Rumpf2018-05-271-19/+18
|
* remove more global variables in the Nim compilerAndreas Rumpf2018-05-271-158/+81
|
* make tests green againAndreas Rumpf2018-05-181-0/+2
|
* platform.nim doesn't use globals anymore; prepare msgs.nim for not using globalsAndreas Rumpf2018-05-181-1/+1
|
* compiler/ropes.nim has no global error handler anymoreAndreas Rumpf2018-05-171-7/+0
|
* preparations of making compiler/msgs.nim free of global variablesAndreas Rumpf2018-05-171-31/+24
|
* make tests green on UnixAndreas Rumpf2018-05-151-4/+0
|
* options.nim: no global variables anymoreAndreas Rumpf2018-05-131-1/+1
|
* move more globals into the config objectAndreas Rumpf2018-05-131-33/+32
|
* move more global variables into ConfigRefAndreas Rumpf2018-05-111-1/+1
|
* avoid more global variablesAndreas Rumpf2018-05-111-6/+6
|
* guards.nim does compileAndreas Rumpf2018-05-111-2/+2
|
* big refactoring: magicsys compiles againAndreas Rumpf2018-05-101-2/+2
|