basilisp icon indicating copy to clipboard operation
basilisp copied to clipboard

Consider developing a more sophisticated INFO/WARN/ERROR system for compiler issues

Open chrisrink10 opened this issue 2 years ago • 1 comments

Currently, info messages and warnings are simply emitted by the Basilisp compiler (analyzer) logger, which is just a standard Python logger. Errors are generally exceptions which immediately stop the compilation process.

It may be worthwhile to think about collecting those errors via the Context object, rather than having them emitted simply as text warnings. As it stands, there's no easy way to (say) configure a warning as an error and stop compilation.

Also, warnings are all added relatively ad-hoc and each have their own custom flags. It may be worth considering having a standard warning/error naming system.

chrisrink10 avatar May 06 '22 19:05 chrisrink10

Thought of while working on #671

chrisrink10 avatar May 06 '22 19:05 chrisrink10