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

Progress output while running native-image #1345

Closed
olafurpg opened this issue May 27, 2020 · 1 comment
Closed

Progress output while running native-image #1345

olafurpg opened this issue May 27, 2020 · 1 comment
Labels
graalvm GraalVM releated issues

Comments

@olafurpg
Copy link
Member

Expected behaviour

I'm using GraalVMNativeImagePlugin and when running sbt graalvm-native-image:packageBin I would like to see progress output while the native-image linker is running similar to when I run native-image directly from the command-line. It would be nice to see this output as soon as it appears

[info] [fastpass:4932]    classlist:  19,351.15 ms,  1.18 GB
[info] [fastpass:4932]        (cap):   1,183.22 ms,  1.18 GB
[info] [fastpass:4932]        setup:   2,821.39 ms,  1.18 GB
...

Actual behaviour

There is no progress output from native-image while sbt graalvm-native-image:packageBin is running, which can take several minutes to complete.

I looked at the implementation it uses Process.!(streams.value)and was surprised this does not produce the expected output. Is it maybe necessary to flush somehow?

Information

@muuki88
Copy link
Contributor

muuki88 commented May 30, 2020

Thanks @olafurpg for the detailed report 😊

I remember that sbt-scripted had some log buffering enabled that you needed to disable. Maybe this is some similar behaviour. 🤔

What I'm trying to say is that this might be a configuration thing in sbt. However we had a similar report in the gitter channel.

@muuki88 muuki88 added the graalvm GraalVM releated issues label Sep 8, 2020
nikolaylagutko added a commit to nikolaylagutko/sbt-native-packager that referenced this issue Apr 6, 2023
nikolaylagutko added a commit to nikolaylagutko/sbt-native-packager that referenced this issue Apr 6, 2023
nikolaylagutko added a commit to nikolaylagutko/sbt-native-packager that referenced this issue Apr 6, 2023
nikolaylagutko added a commit to nikolaylagutko/sbt-native-packager that referenced this issue Apr 6, 2023
@muuki88 muuki88 closed this as completed in 7ae83ab Apr 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
graalvm GraalVM releated issues
Projects
None yet
Development

No branches or pull requests

2 participants