-
Notifications
You must be signed in to change notification settings - Fork 48
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
no_io option for compiling #179
Comments
Agreed. More broadly I think I'd like to tie this to something that captures and logs output in a machine-usable manner to support other tools' use of it. There have been similar discussions around capturing typing decisions for later use/analysis. Thoughts? |
I thought the |
In many cases we just dump tuples straight to |
There are definitely some places where it's noisy. Even outside of the Alpaca compiler itself, the functions in Erlang's IIRC the exhaustiveness checker prints directly, and runs even for modules that have already been compiled, so we might need to bypass it for those. Also messages relating to locating gettext PO files seem to print a lot. I'd like to perform a few cleanups and consistency improvements in 0.2.9 for this sort of thing, part of a wider conversation about error and warning reporting I guess. |
@lepoetemaudit does the gettext stuff print only when building the compiler or when using |
@j14159 actually you're right, it no longer prints when it loads Alpaca from the BEAM files so those messages don't show anymore unless you're compiling so they're not really an issue. |
OK great. Maybe we should turn this into a larger question of how we want to handle feedback from the compiler, including:
Those all seem like three basic streams of information, the last item being what @lepoetemaudit and @Licenser have been concerned with the formatting of for REPL and rebar3 output/rendering. Overly simplistic approach to start from: maybe this is three processes that understand tuples corresponding to the arguments I don't know that the above is sufficient, thoughts? |
So my unqualified thought.
|
Agreed, I don't think this should be changed, went too far in my list above perhaps. It's possible of course we might want an additional feed of this for multiple errors encountered or something like that?
I was thinking of this as a machine-readable log of decisions that actually happen at the reference cell level. Something that one could build a thing like
That's actually exactly what I'd like :) The main difference is that whatever thing is calling the Alpaca compiler would provide at least two callback functions that would:
I think the functions would be provided to two logging processes that would use them. I suppose we could just call them directly? I was thinking of decoupling things a bit more but maybe that's overkill? |
It would be nice to have an option to supress print statements from the compiler during compilation.
The text was updated successfully, but these errors were encountered: