Skip to content

Print output from the CCScript compiler if there is any#347

Open
PhoenixBound wants to merge 1 commit into
pk-hack:masterfrom
PhoenixBound:ccscript-warnings
Open

Print output from the CCScript compiler if there is any#347
PhoenixBound wants to merge 1 commit into
pk-hack:masterfrom
PhoenixBound:ccscript-warnings

Conversation

@PhoenixBound
Copy link
Copy Markdown
Contributor

Currently, the CCScript compiler's output is only printed if an error occurs and compilation completely fails. This PR changes that to print the output in the success case, too. This solves the problem of the CCScript compiler issuing warnings for certain behaviors and the user being completely unable to see the warnings.

There are many people who want certain CCScript things to be an error, partly because of this issue (and partly because they should eventually be made errors). Invalid characters in control code byte sections, and extra ignored parts of expression blocks in springs, have caused a lot of people annoyance. Hopefully this change allows people to identify and fix those issues before we make anything a hard error.

Currently, the CCScript compiler's output is only printed if an error
occurs and compilation completely fails. This commit changes that to
print the output in the success case, too.
This solves the problem of the CCScript compiler issuing warnings for
certain behaviors and the user being completely unable to see the
warnings.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant