aboutsummaryrefslogtreecommitdiff
path: root/src/error.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Minimize more thread contentiongingerBill2025-09-101-0/+11
|
* Multithread min dep set by removing the set itselfgingerBill2025-09-101-8/+8
|
* Fix typo in `error_article_table` lookupAirtz2025-06-161-1/+1
|
* Add table-driven (in)definite article to some errors.Jeroen van Rijn2024-08-201-0/+29
|
* Re-implement the error squiggles with visual widthFeoramund2024-06-291-159/+130
|
* Refactor `show_error_on_line`Feoramund2024-06-141-58/+238
| | | | | | | | | This should adequately solve any issues with Unicode alignment by sidestepping the issue entirely. With this change, we make use of the built-in ANSI facilities of the terminal to underline the text. If the terminal does not support underlining, there are still the fallback bold markers at the start and end of error locations.
* Revert "Merge pull request #3744 from Mango0x45/master"Jeroen van Rijn2024-06-141-23/+7
| | | | | This reverts commit 45044de0b756f9ab018979abd5350533334a54ac, reversing changes made to 20c17ba6f971cf572da4fa5e9601e0df8d517112.
* Merge branch 'master' of https://github.com/Mango0x45/Odin into pr/3744Jeroen van Rijn2024-06-131-2/+1
|\
| * Generate ranges of the correct lengthThomas Voss2024-06-131-4/+16
| |
* | Just change squiggle_extra type to i32.Jeroen van Rijn2024-06-131-1/+1
| |
* | Generate ranges of the correct lengthThomas Voss2024-06-131-4/+16
|/
* Pad ‘^~~~^’-style diagnostic ranges properlyThomas Voss2024-06-131-2/+7
|
* Remove `_` in `Syntax_Error` verbose messageFeoramund2024-06-091-2/+2
|
* fix not printing `Error:` when terminal has no color supportLaytan Laats2024-06-071-4/+2
|
* Fix `-ignore-warnings`gingerBill2024-06-061-30/+33
|
* Fix error reporting for enforce new switch/for syntaxgingerBill2024-05-161-6/+2
|
* If only warnings exist on `print_all_errors`, next time it is called, clear ↵gingerBill2024-05-131-0/+15
| | | | | | the error list. This is mostly only syntax errors too
* fix duplicate suggestions and add missing newlineLaytan2024-05-091-2/+6
|
* Free memory for the error messages just in casegingerBill2024-05-071-0/+1
|
* Merge neighbouring error messages with the same locationgingerBill2024-05-071-34/+57
|
* Merge pull request #3532 from laytan/fix-invalid-jsongingerBill2024-05-051-2/+3
|\ | | | | fix invalid JSON when an error does not have a position
| * fix invalid JSON when an error does not have a positionLaytan Laats2024-05-051-2/+3
| |
* | Fix more race conditions in error reportingFeoramund2024-05-011-3/+3
|/
* Fix race condition in `error_va`Feoramund2024-04-281-1/+1
| | | | | | | If the error count exceeded `MAX_ERROR_COLLECTOR_COUNT`, multiple threads could print and exit simultaneously, causing a segfault. This change moves the mutex lock back before the conditional.
* Clear unused `global_error_collector.curr_error`Feoramund2024-04-281-0/+2
| | | | | | This should cleanly prevent acknowledging duplicate errors on the same position as seems to be the intent based on the prior `else if` condition.
* Remove line info in message with `-json-errors`gingerBill2024-04-241-6/+30
|
* Print to string buffer before printing errorsgingerBill2024-04-161-62/+84
|
* Fix #3425gingerBill2024-04-151-5/+6
|
* Improve error messages for `switch` and `for` r-values with a suggestiongingerBill2024-04-121-5/+16
|
* Add `"type"` field to `-json-errors`gingerBill2024-04-081-0/+8
|
* Clarity warning and error printinggingerBill2024-04-021-6/+7
|
* Fix printing of warningsgingerBill2024-04-021-1/+2
|
* Fix printing errors issuegingerBill2024-03-251-2/+6
|
* Add assert message to tell me people to report the buggingerBill2024-03-241-2/+2
|
* Fix #3133 by show the line of the syntax errorgingerBill2024-03-201-1/+1
|
* Add `offset` (in bytes) field to `-json-errors`gingerBill2024-03-201-0/+1
|
* Replace `gb_exit(1)` with `exit_with_errors()` where appropriategingerBill2024-03-191-0/+4
|
* Add `-json-errors`gingerBill2024-03-191-13/+94
|
* General clean-up for error.cppgingerBill2024-03-191-22/+31
|
* Serialize errors to make them sortable, deterministic, and generally more ↵gingerBill2024-03-191-80/+133
| | | | control
* Fix various mismatches with the specified -max-error-count flagTarık B2023-09-221-21/+16
|
* Remove #relative slices; Replace with #relative multi-pointersgingerBill2023-08-051-2/+2
|
* Fix line error printing for error messagesgingerBill2023-06-191-12/+19
|
* Add extra mutex for error block stuffgingerBill2023-05-161-3/+14
|
* Require parentheses around certain uses of `or_return` expressionsgingerBill2023-04-271-0/+34
|
* Add `-max-error-count:<integer>`gingerBill2023-04-041-5/+5
|
* Improve error line squiggle logicgingerBill2023-02-271-18/+18
|
* Allow compound literals to access fields through `using`gingerBill2023-02-261-2/+2
|
* Improve truncated verbose line errorgingerBill2023-02-221-2/+5
|
* Change padding of showing the error in linegingerBill2023-02-221-1/+1
|