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

Output of Run "Local SAP CX Server" does not flush #1020

Open
AweissNC opened this issue Feb 22, 2024 · 5 comments
Open

Output of Run "Local SAP CX Server" does not flush #1020

AweissNC opened this issue Feb 22, 2024 · 5 comments
Assignees
Labels
help wanted Extra attention is needed

Comments

@AweissNC
Copy link

Hi, so I have this problem where any output from the default run/debug configuration does not seem to fully flush the output in the Intellij console.
E.g. lines are just cut off in the output and the newest loglines do not even show up until some more log messages show up that cross some threshold to flush the buffer.

I am not sure if this is something I can deal with by some configuration or if this is a bug. I have tried to increase/decrease the buffer size in Intellij's-Settings Editor>General>Console but that doesn't seem to have any effect.

@StefanKruk
Copy link
Collaborator

StefanKruk commented Feb 22, 2024

Do you have this problem as well, when you start the Server in a normal Terminal?

Which SAP CX Version do you use?

Did you do anything special before the issue appeared, like running an update system or so?

Which system and OS you use and which terminal is default on your system? Bash, zsh, Powershell?

@AweissNC
Copy link
Author

Hi, no this does not seem to happen when i just start commerce via hybrisserver.sh from my terminal. (Tried both in BASH and ZSH)

Version is 2205.18

This is really the first time I actually try to use the extension - so nothing broke it

I'm using Ubuntu 2204.4 - default shell for OS is bash afaik but default shell for my user is ZSH

Just to be clear, I am talking about the Log output of the debugger.
image

@StefanKruk
Copy link
Collaborator

StefanKruk commented Feb 26, 2024

I am currently unable to reproduce the issue. I am working with a Mac M1 and setup Version 2205.18 for testing.
I am currently unable to set up a VM with Ubuntu 2204.4.

At which point does the log stop?
How do you know that the Output is not printed? What would you expect to see?

@AweissNC
Copy link
Author

As an example for what I see in my intellij console would be something like this:

INFO [localhost-startStop-1] [ListMergeDirectiveBeanPostProcessor] Post Proce

when in reality the full line would read

INFO [localhost-startStop-1] [ListMergeDirectiveBeanPostProcessor] Post Processing ListMergeDirective [listMergeDirective$child#5] on Bean [postRulesModuleSwappingTaskList]

once there is enough output to flush, then the line finishes together with all the other output that comes afterward

@AweissNC
Copy link
Author

As a temporary workaround I found that the problem goes away once you change
exec $COMMAND
to
exec stdbuf -o0 $COMMAND
in hybrisserver.sh

maybe that also helps when troubleshooting this plugin internally.

@mlytvyn mlytvyn added the help wanted Extra attention is needed label May 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants