Skip to content
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

Error messages from commands are not printed on the command line #128

Open
Gohla opened this issue May 9, 2023 · 0 comments
Open

Error messages from commands are not printed on the command line #128

Gohla opened this issue May 9, 2023 · 0 comments
Labels
C-Bug Category: bug. Not working as expected

Comments

@Gohla
Copy link
Member

Gohla commented May 9, 2023

Summary

When a command fails with error messages, they are not printed to the command line. The issue is here: https://github.com/metaborg/spoofax-pie/blob/develop/core/spoofax.cli/src/main/java/mb/spoofax/cli/CommandRunner.java#L70. The toString method of KeyedMessages does not print all messages because that can be expensive. Instead, ExceptionPrinter#printMessages should be used to print the messages.

What you did

Run a command with an error on the command line.

What you expected to happen

The error messages to be printed.

What actually happened

The error messages are not printed, instead printing something like KeyedMessages(1 messages).

Context

  • Spoofax version: 0.19.6
@Gohla Gohla added the C-Bug Category: bug. Not working as expected label May 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-Bug Category: bug. Not working as expected
Projects
None yet
Development

No branches or pull requests

1 participant