output window - all text in single line

General discussions and questions.
brother john
Posts: 16
Joined: Sun Feb 19, 2017 9:06 pm

output window - all text in single line

Post by brother john »

Output window should show output as listing rather than all text in one single line...

See attached for explanation:

Have you seen this Timur?

This is a new install. Our previous (pre 2.2) install would list correctly..
cgru-2.2.1-outputDisplayIssue.jpg
cgru-2.2.1-outputDisplayIssue.jpg (58.48 KiB) Viewed 11686 times
User avatar
timurhai
Site Admin
Posts: 911
Joined: Sun Jan 15, 2017 8:40 pm
Location: Russia, Korolev
Contact:

Re: output window - all text in single line

Post by timurhai »

Hi.
Since 2.2.0 AfWatch begin to colorize task output (errors, warnings, and any custom that you can write in Python).
It parse output data with Python Parser class.
https://github.com/CGRU/cgru/blob/maste ... er.py#L190
Insets html tags to data.
Then users QTextEdit::setHtml function to display it.
https://github.com/CGRU/cgru/blob/maste ... k.cpp#L542

HTML new line is <br> tag.
May be some parsing error causes <br> missing?
Can you test parser toHTML function somehow?
May be there is some fail with your data?
Timur Hairulin
CGRU 3.3.1, Ubuntu 20.04, 22.04, MS Windows 10 (clients only).
brother john
Posts: 16
Joined: Sun Feb 19, 2017 9:06 pm

Re: output window - all text in single line

Post by brother john »

thanks Timur,

I feel like the problem could be before that?

Could someone put this in one of your output folders and see if it displays correctly in the output window?
Attachments
1.zip
(413 Bytes) Downloaded 485 times
lithorus
Posts: 28
Joined: Wed Jan 25, 2017 4:14 pm

Re: output window - all text in single line

Post by lithorus »

We're seeing the same thing, but only if the job is submitted with a parser that does not exist on the client running afwatch (in our case a custom parser for fumefx sims through maya). If it has the parser it displays correctly.
User avatar
timurhai
Site Admin
Posts: 911
Joined: Sun Jan 15, 2017 8:40 pm
Location: Russia, Korolev
Contact:

Re: output window - all text in single line

Post by timurhai »

Hi.
Soon this will be fixed:
https://github.com/CGRU/cgru/issues/342
Timur Hairulin
CGRU 3.3.1, Ubuntu 20.04, 22.04, MS Windows 10 (clients only).
User avatar
timurhai
Site Admin
Posts: 911
Joined: Sun Jan 15, 2017 8:40 pm
Location: Russia, Korolev
Contact:

Re: output window - all text in single line

Post by timurhai »

Done!
Timur Hairulin
CGRU 3.3.1, Ubuntu 20.04, 22.04, MS Windows 10 (clients only).
lithorus
Posts: 28
Joined: Wed Jan 25, 2017 4:14 pm

Re: output window - all text in single line

Post by lithorus »

Awesome! :)
brother john
Posts: 16
Joined: Sun Feb 19, 2017 9:06 pm

Re: output window - all text in single line

Post by brother john »

Amazing Timur!

I am not that great at builds, is there any chance of a linux and win build. No probs if not.

Thanks for sorting that out so quickly Timur.
User avatar
timurhai
Site Admin
Posts: 911
Joined: Sun Jan 15, 2017 8:40 pm
Location: Russia, Korolev
Contact:

Re: output window - all text in single line

Post by timurhai »

Try just to ensure that afwatch imports a service and parser Python classes correctly (check that such classes exit at first).
This way you will find out that the situation above it yours.
If so, you can tell me linux distribution to build.
Timur Hairulin
CGRU 3.3.1, Ubuntu 20.04, 22.04, MS Windows 10 (clients only).
brother john
Posts: 16
Joined: Sun Feb 19, 2017 9:06 pm

Re: output window - all text in single line

Post by brother john »

Thanks Timur, how or where would I check that?

Centos6 and Windows.
Post Reply