-
Notifications
You must be signed in to change notification settings - Fork 237
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add message format cli option #3491
Add message format cli option #3491
Conversation
304e68c
to
c13b9ae
Compare
Hi Lucas, this looks great! I'll take a deeper look soon (I'm phone-only right now) and merge it. Wondering, is this for the Hax playground? |
c13b9ae
to
d4a7b2f
Compare
Thanks! I've actually just forced push this, made it a little better and I added support for JSON-output for profiling-related messages. Ah :) this is both for the playground and for something I've wanted to make for such a long time: a build system & package manager for F* 😄 |
Hi Lucas, took another look and this seems perfect to me. (I want to add a Just one thing, I noticed this also changes the format for the output of profiling info.
Would a field like |
Ah, I wanted to make a Same thing, I was thinking about that and was thinking having unstructured JSON data was pretty bad.
Things would be much nicer, we could move from mostly string/document based errors and messages to well structured ADT messages. What do you think? |
Yeah I had in mind something very similar to that, modularizing all output into a single module that takes care of formatting, coloring, etc. But I think that's for another PR... probably pretty invasive. I pushed a patch here to also try |
Yes, let's do a follow up PR, but indeed, would love to see all those ad-hoc reports go away in favor of a single ADT the stores all the information. Great, thank you, that's a great idea, that looks good :) let's merge then! |
ff227f4
to
0434212
Compare
This PR adds a
--message_format
option to the CLI that can behuman
orJSON
, defaulting to human.When
--message_format
is set toJSON
, error reports and profiling messages are done in JSON.