Skip to content

Conversation

@jjohannes
Copy link
Contributor

@jjohannes jjohannes commented Jul 23, 2024

What does this PR do?

options.add(options.add("--$OutputComponent.ASM_JSON")) contained a duplicated options.add, which added true to the command line (the return value of options.add()). The command fails with: unrecognized "true".

This PR proposes to fix this issue by not implicitly adding the additional ASM_JSON output. As prettyJson = true also makes sense in combination with other outputs such as ABI.

Where should the reviewer start?

n/a

Why is it needed?

prettyJson = true is currently not working. It always leads to a broken compiler call.

Checklist

  • I've read the contribution guidelines.
  • I've added tests (if applicable).
  • I've added a changelog entry if necessary.

duplicated `options.add`, which added `true` to the command line
(the return value of `options.add()`).
The command fails with: _unrecognized "true"_.

This PR proposes to fix this issue by not implicitly adding the
additional `ASM_JSON` output. As  `prettyJson = true` also makes
sense in combination with other outputs such as `ABI`.

Signed-off-by: Jendrik Johannes <[email protected]>
Copy link
Member

@NickSneo NickSneo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Signed-off-by: gtebrean <[email protected]>
@gtebrean gtebrean merged commit 5b72664 into LFDT-web3j:main Aug 12, 2024
@jjohannes jjohannes deleted the fix-pretty-json branch November 29, 2024 13:05
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.

3 participants