Annoying warning messages with newText()

Is it possible to turn off the annoying warning messages with newText()?

WARNING: Due to system limitations, display.newText() height is going to be increased to nearest multiple of 4

More detailed at:

http://blog.anscamobile.com/2011/10/multiple-lines-in-display-newtext/ [import]uid: 19297 topic_id: 25881 reply_id: 325881[/import]

Currently, you can’t turn off the warnings and I’m pushing to get them removed because I don’t feel they are useful at all. I don’t feel the “noise” is very useful in the terminal console.

Tom [import]uid: 7559 topic_id: 25881 reply_id: 104693[/import]

Thanks Tom. I agree with you. Important stuff is getting lost in the noise. I have to start every print statement with “***********” for it to popup out of those messages. [import]uid: 19297 topic_id: 25881 reply_id: 104696[/import]

I guess you could also go with a suppression toggle command if we wanted them reinstated?

I understand the point of the warning message (effectively positioning will not be as code specifies in some cases) but the work needed to overcome it is problematic; if it’s /4 in one resolution it might not be in another. [import]uid: 41884 topic_id: 25881 reply_id: 104724[/import]

We would have to disable the Text warning completely. Toggling the warnings on and off would have to be on a global basis (all warnings), which means you could miss a warning about something else that could be important.

Toggling individual warning messages would require a lot of work and is not a high enough priority right now. We are looking to improve our error/warning logging system in the future and adding the ability to turn off certain messages would be supported.

Tom [import]uid: 7559 topic_id: 25881 reply_id: 104726[/import]

Good to know. I think I’m in your camp on this one, Tom, but I can understand both sides. (I have to admit it’s at least better than the warnings on the windows build. The widget font warnings were really out of control…) [import]uid: 41884 topic_id: 25881 reply_id: 104729[/import]

hi.

Since Corona sends this message to stderr, one thing You can do (Mac only) is to redirect it to stdout and invert grep :slight_smile: like this:

[bash]
/Applications/CoronaSDK/Corona\ Terminal ~/project/main.lua 2>&1 | grep -v “WARNING: Due to system limitations, display.newText()”
[/bash]

Cheers. [import]uid: 135488 topic_id: 25881 reply_id: 130781[/import]

hi.

Since Corona sends this message to stderr, one thing You can do (Mac only) is to redirect it to stdout and invert grep :slight_smile: like this:

[bash]
/Applications/CoronaSDK/Corona\ Terminal ~/project/main.lua 2>&1 | grep -v “WARNING: Due to system limitations, display.newText()”
[/bash]

Cheers. [import]uid: 135488 topic_id: 25881 reply_id: 130781[/import]

I’d go with this too.  Would be great to have an option to suppress this warning.  It’s very invasive.

I use a lot of text and text changes.  These messages flood the console, especially when coupled with the alpha range warning as well:

WARNING: Attempt to set object.alpha to -0.000500125 which is outside valid range. It will be clamped to the range [0,1].

 

Yes, please remove!

I’d go with this too.  Would be great to have an option to suppress this warning.  It’s very invasive.

I use a lot of text and text changes.  These messages flood the console, especially when coupled with the alpha range warning as well:

WARNING: Attempt to set object.alpha to -0.000500125 which is outside valid range. It will be clamped to the range [0,1].

 

Yes, please remove!

is this still not resolved?

I think global setting is far better than not at all.

is this still not resolved?

I think global setting is far better than not at all.

I’m the same. I keep getting alpha warnings when using elastic easing on transitions that affect alpha. They’re not really useful as I’m transitioning on scale as well. 

Some way of toggling the error output would be great. Is there anyway to wrap the terminal in a Bash script that will swallow warnings we’re not interested in for now?

Is it also possible to remove the text at the beginning of each line?

E.g.

2013-11-15 08:44:16.374 Corona Simulator[2620:707]

It takes up a large chunk of my terminal, and more often than not pushes each print statement onto multiple lines.

I’m the same. I keep getting alpha warnings when using elastic easing on transitions that affect alpha. They’re not really useful as I’m transitioning on scale as well. 

Some way of toggling the error output would be great. Is there anyway to wrap the terminal in a Bash script that will swallow warnings we’re not interested in for now?

Is it also possible to remove the text at the beginning of each line?

E.g.

2013-11-15 08:44:16.374 Corona Simulator[2620:707]

It takes up a large chunk of my terminal, and more often than not pushes each print statement onto multiple lines.

Yes pls pls fix this, using particle candy the console is spammed badly making it unusable. Seems the alpha message is the primary one people are complaining about, just having the ability to disable that one would be enough for most i think. Its not exactly an important one either since its so common with things like elastic transitions. 

Yes pls pls fix this, using particle candy the console is spammed badly making it unusable. Seems the alpha message is the primary one people are complaining about, just having the ability to disable that one would be enough for most i think. Its not exactly an important one either since its so common with things like elastic transitions.