You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add --logfile option and trace all output to this file #501
Sometimes paket restore --references-files fails with code 1 and it's impossible to understand what's went wrong. Build server log contains the following:
It would be great if Paket writes error message / full stack trace into stdout (or whatever place such that TeamCity can consume it and show in its logs) in case of error.
How can Either monad style design help with it? The whole paket will be a function of type unit -> Choice<_, exn> or something like this and you will able to get exn in case of Choice2Of2, but it's not different from try <do the whole paket logic here> with e -> ....
Can paket.exe write exceptions in a (optional) log file? It'd allow to investigate errors.
Activity
forki commentedon Jan 2, 2015
mhm, not sure how to do this. It seems all messages are eaten by MsBuild
vasily-kirichenko commentedon Jan 2, 2015
Am I right that paket.exe returns non-zero error code if an unhandled exception occures?
forki commentedon Jan 2, 2015
on every error.
forki commentedon Jan 2, 2015
(this will probably be improved when we moved to railway oriented programming)
vasily-kirichenko commentedon Jan 2, 2015
How can Either monad style design help with it? The whole paket will be a function of type
unit -> Choice<_, exn>or something like this and you will able to getexnin case ofChoice2Of2, but it's not different fromtry <do the whole paket logic here> with e -> ....Can paket.exe write exceptions in a (optional) log file? It'd allow to investigate errors.
forki commentedon Jan 2, 2015
what would be a good location for such a file?
vasily-kirichenko commentedon Jan 2, 2015
User's temp folder I think.
vasily-kirichenko commentedon Jan 2, 2015
And it would be great if location of this file appears in teamcity log.
forki commentedon Jan 2, 2015
then we're back to the beginning. ;-)
We need to figure out why teamcity/MsBuild supresses the output.
vasily-kirichenko commentedon Jan 2, 2015
I think if we pass log file path as an explicit argument, it would be enough to easily find it later.
[-]paket restore --references-files fails silently[/-][+]Add - g[/+][-]Add - g[/-][+]Add --logfile option and trace all output to this file [/+]Allow to specify a logfile - closes #501
Merge pull request #502 from fsprojects/logfile