summaryrefslogtreecommitdiff
path: root/mesonbuild/mlog.py
Commit message (Collapse)AuthorAgeFilesLines
* Print a more usable message when a subproject fails to configureNirbheek Chauhan2018-07-071-4/+4
| | | | | | | Instead of just printing the message in the exception, if it's a MesonException, also print the file and the line number. If it's an unknown exception, print the entire traceback so that we can pin-point what the Meson bug causing it is.
* Add new method: mlog.deprecation()Nirbheek Chauhan2018-07-071-0/+5
| | | | Instead of constructing it manually, use a helper.
* mlog: Log timestamps in profile-self modeNirbheek Chauhan2018-07-061-1/+12
| | | | | This makes it much clearer which statements are taking a long time, and helps in interpreting the outputted profile itself.
* mlog: Add built-in support for quoting bolded messagesNirbheek Chauhan2018-07-061-5/+9
| | | | | This allows us to drop wonky sep='' hacks and manual addition of spaces across the codebase.
* Add VT100 ANSI escape sequences for Windows 10.Isabella Muerte2018-05-011-1/+15
| | | | | | This change still relies on the older 'ANSICON' environment check as a fallback, in the event we're on "not Windows 10". (Calling `SetConsoleMode` with unsupported values results in a 0 being returned)
* interpreter: Verify permitted kwargs on all methodsXavier Claessens2018-04-261-3/+2
|
* Indicate subproject depth in console outputJon Turney2018-04-131-6/+23
|
* Refactor: Add log.error and log.exception to reduce code duplication.Jukka Laurila2018-03-101-5/+24
|
* Handle a warning location which evaluates to FalseJon Turney2018-02-211-1/+1
| | | | | | | | | | | | | | As written in PR #2856, this code isn't quite right. An ArgumentNode object can evaluate as False (if it's arguments attribute is an empty sequence). If that happens, we then try to hand the location kwarg down to print(), rather than removing it, which causes an invalid keyword argument exception. This failure can be seen e.g. when generating for gnome-twitch (See [1]) [1] https://travis-ci.org/jon-turney/meson-corpus-test/jobs/343017109
* Report warning/error locations in a format IDEs may already know how to parseJon Turney2018-01-301-2/+5
| | | | | | | | | | | | | | | Examples: meson.build:2:0: ERROR: Dependency is both required and not-found meson.build:4: WARNING: Keyword argument "link_with" defined multiple times. These are already matched by the default compilation-error-regexp-alist in emacs. Also: Don't start 'red' markup until after the \n before an error Unabsorb full-stop at end of warning with location from mlog.warning() Update warning_location test
* Consolidate warning location formatting in mlog.warning()Jon Turney2018-01-011-0/+7
| | | | | Also use .format() rather than % Also use build.environment rather than hardcoding 'meson.build'
* Enable ANSI colors on Windows when ANSICON is setJoergen Ibsen2017-11-291-2/+4
| | | | This enables colors with ConEmu.
* logging: Print location of log file on errorNirbheek Chauhan2017-09-141-1/+2
| | | | | | Similar to configure Closes https://github.com/mesonbuild/meson/issues/2316
* Ensure log file gets closed.Jussi Pakkanen2017-08-181-1/+3
|
* Add an option to dependencies called 'method'. This can be used toAaron Small2017-04-091-0/+13
| | | | | | | | | | | | configure a detection method, for those types of dependencies that have more than one means of detection. The default detection methods are unchanged if 'method' is not specified, and all dependencies support the method 'auto', which is the same as not specifying a method. The dependencies which do support multiple detection methods additionally support other values, depending on the dependency.
* Do not colorize output on dumb terminalsMichal Sojka2017-03-081-1/+2
| | | | Dumb terminal is provided e.g. by Emacs for programs run within it.
* Graceful fallback when printing messages with characters not understood by ↵Jussi Pakkanen2017-03-011-2/+13
| | | | stdout.
* Force log file to UTF-8.Jussi Pakkanen2017-02-271-1/+1
|
* cleanup: Remove redundant parenthesesMike Sinkovsky2017-01-181-1/+1
|
* Implement mlog.warning and use it everywhere for warningsNirbheek Chauhan2016-11-081-0/+6
| | | | | | Prepends the string with 'WARNING:' in ANSI yellow. Closes https://github.com/mesonbuild/meson/issues/961
* Print full mesonlog on failed tests when run under CI.Jussi Pakkanen2016-06-231-0/+2
|
* Renamed meson package to mesonbuild so that we can have a script named meson ↵Jussi Pakkanen2016-01-161-0/+81
in the same toplevel dir.