remake icon indicating copy to clipboard operation
remake copied to clipboard

FR: provide context for warnings

Open fmichonneau opened this issue 7 years ago • 2 comments

Currently, any warnings generated during the build process are gathered and displayed at the end. However (and especially when using remake for complex projects with many targets), it can be challenging to identify which stage of the process is generating warnings. It would be great if there was a way to capture the targets associated with these warnings to identify which parts of the code may be causing issues.

fmichonneau avatar Oct 12 '17 18:10 fmichonneau

As a remake developer, maybe you could insert 'withr::with_options(list(warn = 1), {...})', but this would override the wishes of users who want to treat warnings as errors ('warn = 2'). As a user, maybe just manually call 'options(warn = 1)'?

wlandau avatar Oct 13 '17 12:10 wlandau

I like how rmonad handles this. There, each computation returns a result and full context (output, errors, warnings, ...). Errors propagate.

krlmlr avatar Jan 05 '18 13:01 krlmlr