Latest snapshot echo format has changed

classic Classic list List threaded Threaded
13 messages Options
Reply | Threaded
Open this post in threaded view
|

Latest snapshot echo format has changed

nophead
The latest snapshot no longer starts the echo lines with ECHO: when echoed to the command line console. It does still include them in the GUI and in .echo files. Is this intentional as it breaks some of my scripts?


_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
tp3
Reply | Threaded
Open this post in threaded view
|

Re: Latest snapshot echo format has changed

tp3
On 02.10.20 11:06, nop head wrote:
> The latest snapshot no longer starts the echo lines with ECHO: when
> echoed to the command line console. It does still include them in the
> GUI and in .echo files. Is this intentional as it breaks some of my
> scripts?

No, it's not intentional. So that only affects the standard output
when generating for example STLs via command line?

ciao,
  Torsten.

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
-- Torsten
Reply | Threaded
Open this post in threaded view
|

Re: Latest snapshot echo format has changed

nophead
Yes when generating anything with the command line that isn't a .echo file. Any echos go to the console and I rely on the ECHO: prefix to separate them from the rest of the console messages, which I see has increased.

On Fri, 2 Oct 2020 at 14:01, Torsten Paul <[hidden email]> wrote:
On 02.10.20 11:06, nop head wrote:
> The latest snapshot no longer starts the echo lines with ECHO: when
> echoed to the command line console. It does still include them in the
> GUI and in .echo files. Is this intentional as it breaks some of my
> scripts?

No, it's not intentional. So that only affects the standard output
when generating for example STLs via command line?

ciao,
  Torsten.

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Reply | Threaded
Open this post in threaded view
|

Re: Latest snapshot echo format has changed

Troberg
In reply to this post by nophead
That would break a lot of my post-processing as well.



--
Sent from: http://forum.openscad.org/

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
tp3
Reply | Threaded
Open this post in threaded view
|

Re: Latest snapshot echo format has changed

tp3
On 03.10.20 13:49, Troberg wrote:
> That would break a lot of my post-processing as well.

Should be fixed now via
https://github.com/openscad/openscad/pull/3453

ciao,
  Torsten.

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
-- Torsten
Reply | Threaded
Open this post in threaded view
|

Re: Latest snapshot echo format has changed

nophead
Yes it works again for me now, thanks.

On Sat, 3 Oct 2020 at 20:49, Torsten Paul <[hidden email]> wrote:
On 03.10.20 13:49, Troberg wrote:
> That would break a lot of my post-processing as well.

Should be fixed now via
https://github.com/openscad/openscad/pull/3453

ciao,
  Torsten.

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Reply | Threaded
Open this post in threaded view
|

Re: Latest snapshot echo format has changed

Troberg
In reply to this post by tp3
tp3 wrote
> On 03.10.20 13:49, Troberg wrote:
>> That would break a lot of my post-processing as well.
>
> Should be fixed now via
> https://github.com/openscad/openscad/pull/3453
>
> ciao,
>   Torsten.

My hero!



--
Sent from: http://forum.openscad.org/

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Reply | Threaded
Open this post in threaded view
|

Re: Latest snapshot echo format has changed

OpenSCAD mailing list-2
Could we please preserve the code which allowed writing out only what the user has added and wire it up to an option to write out that text via a menu in the interface?

I would find that very useful.

William


-----Original Message-----
From: Troberg <[hidden email]>
To: [hidden email]
Sent: Sun, Oct 4, 2020 2:09 am
Subject: Re: [OpenSCAD] Latest snapshot echo format has changed

tp3 wrote
> On 03.10.20 13:49, Troberg wrote:
>> That would break a lot of my post-processing as well.
>
> Should be fixed now via
> https://github.com/openscad/openscad/pull/3453
>
> ciao,
>  Torsten.

My hero!



--
Sent from: http://forum.openscad.org/


_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Reply | Threaded
Open this post in threaded view
|

Re: Latest snapshot echo format has changed

nophead
It wasn't ever that though because strings are enclosed in quotes, it just missed the ECHO: prefix. And there are lots of other messages now on stdout, so without the prefix it is hard to pick out the user output. 

Geometries in cache: 9
Geometry cache size in bytes: 117536
CGAL Polyhedrons in cache: 0
CGAL cache size in bytes: 0
Total rendering time: 0:00:00.004
   Top level object is a 3D object:
   Facets:        728

On Sun, 4 Oct 2020 at 16:45, William F. Adams via Discuss <[hidden email]> wrote:
Could we please preserve the code which allowed writing out only what the user has added and wire it up to an option to write out that text via a menu in the interface?

I would find that very useful.

William


-----Original Message-----
From: Troberg <[hidden email]>
To: [hidden email]
Sent: Sun, Oct 4, 2020 2:09 am
Subject: Re: [OpenSCAD] Latest snapshot echo format has changed

tp3 wrote
> On 03.10.20 13:49, Troberg wrote:
>> That would break a lot of my post-processing as well.
>
> Should be fixed now via
> https://github.com/openscad/openscad/pull/3453
>
> ciao,
>  Torsten.

My hero!



--
Sent from: http://forum.openscad.org/


_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Reply | Threaded
Open this post in threaded view
|

Re: Latest snapshot echo format has changed

JordanBrown
In reply to this post by OpenSCAD mailing list-2
On 10/4/2020 8:44 AM, William F. Adams via Discuss wrote:
Could we please preserve the code which allowed writing out only what the user has added and wire it up to an option to write out that text via a menu in the interface?

I would find that very useful.

I think that would be one of the goals of a "printf" feature.

On 10/4/2020 9:13 AM, nop head wrote:
It wasn't ever that though because strings are enclosed in quotes, it just missed the ECHO: prefix. And there are lots of other messages now on stdout, so without the prefix it is hard to pick out the user output. 

If the program has full control over its output, it can emit its own prefix.


_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Reply | Threaded
Open this post in threaded view
|

Re: Latest snapshot echo format has changed

lar3ry
On 4 Oct 2020 at 21:12, Jordan Brown wrote:

> On 10/4/2020 8:44 AM, William F. Adams via Discuss wrote:
>     Could we please preserve the code which allowed writing out only what the user has added
>     and wire it up to an option to write out that text via a menu in the interface?
>
>     I would find that very useful.
>
> I think that would be one of the goals of a "printf"feature.
>
> On 10/4/2020 9:13 AM, nop head wrote:
>     It wasn't ever that though because strings are enclosed in quotes, it just
>     missed the ECHO: prefix. And there are lots of other messages now on
>     stdout, so without the prefix it is hard to pick out the user output. 
>
> If the program has full control over its output, it can emit its own prefix.

Isn't that a step backward, having to put an identifying prefix on every echo?




_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Reply | Threaded
Open this post in threaded view
|

Re: Latest snapshot echo format has changed

OpenSCAD mailing list-2
Adding your own prefix is better in the long-term.
For more complex applications, this might make it easier to generate and recognize the tags indicating that post-processing is required.

It just breaks all the models which create output used by existing apps that post process the logs.


In my case, it is not a big deal, now that I know that my apps that used to work will suddenly fail to work with a new version for no apparent reason.
While I upgrade, I need to fix the models that create BOM input and probably simplify the post-processing to take advantage of the flexible prefix possibility.

I suspect that the element of surprise caused much of the reaction to the change.

As the saying goes "No one likes change, except a wet baby!"

Ron


On 2020-10-05 1:36 a.m., [hidden email] wrote:
On 4 Oct 2020 at 21:12, Jordan Brown wrote:
On 10/4/2020 8:44 AM, William F. Adams via Discuss wrote:
    Could we please preserve the code which allowed writing out only what the user has added 
    and wire it up to an option to write out that text via a menu in the interface?

    I would find that very useful.

I think that would be one of the goals of a "printf"feature.

On 10/4/2020 9:13 AM, nop head wrote:
    It wasn't ever that though because strings are enclosed in quotes, it just 
    missed the ECHO: prefix. And there are lots of other messages now on 
    stdout, so without the prefix it is hard to pick out the user output. 

If the program has full control over its output, it can emit its own prefix.
Isn't that a step backward, having to put an identifying prefix on every echo?




_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org

-- 
Ron Wheeler
Artifact Software
438-345-3369
[hidden email]

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
tp3
Reply | Threaded
Open this post in threaded view
|

Re: Latest snapshot echo format has changed

tp3
On 05.10.20 16:09, Ron Wheeler via Discuss wrote:
> In my case, it is not a big deal, now that I know that
> my apps that used to work will suddenly fail to work
> with a new version for no apparent reason.

It's already confirmed to be fixed.

The just freshly merged feature for reading from stdin
and writing to stdout even brings an extension for the
test framework that should allow making sure it's not
going to break that easily again.

ciao,
  Torsten.

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
-- Torsten