You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@netbeans.apache.org by antonio <an...@vieiro.net> on 2022/04/01 20:32:46 UTC

Re: carriage return newlines in MacOS installer

Hi Todd,

1. "the executable won't run correctly"

a) What does that mean? Does it hang? SIGTERM? What?

2. "we are finding carriage returns in the configuration files"

Well, of course configuration files have carriage returns!

a) Which configuration files?
b) Are these files generated by you/your team?

3. "Is there any way to tell NetBeans to create files that are 
appropriate for the Linux/Mac environment with no carriage returns?"

NetBeans has been creating millions of files that are appropriate for 
the Linux/Mac environment for several years now, AFAIK.

a) What do you mean by "creating files without carriage returns"? All 
lines joined together in one or what?

As you can see your email poses quite a lot of questions. If you're 
asking us for help you should try to ask precise questions, otherwise 
we'll either have to reply you with more questions or await for you 
explaining them.

Thank you,
Antonio

P.S.: This is a public mailing list everyone can see. Please thing twice 
before posting phone numbers. Thank you.

El 31/3/22 a las 23:58, Todd Stevenson escribió:
> My NetBeans platform app generates a MacOS installer and it installs OK, 
> but the executable won’t run correctly and we are finding carriage 
> returns in the configuration files.  Is there any way to tell NetBeans 
> to create files that are appropriate for the Linux/Mac environment with 
> no carriage returns?
> 
> Thank you.
> 
> *Todd Stevenson*
> 
> Software Engineer - Consultant
> 
> /Intermountain Healthcare/
> 
> /3930 Parkway Blvd |Salt Lake City, UT 84120/
> 
> Office: 801-442-5112 | Cell: 801-589-1115
> 
> Todd.Stevenson@imail.org <ma...@imail.org>
> 
> NOTICE: This e-mail is for the sole use of the intended recipient and 
> may contain confidential and privileged information. If you are not the 
> intended recipient, you are prohibited from reviewing, using, disclosing 
> or distributing this e-mail or its contents. If you have received this 
> e-mail in error, please contact the sender by reply e-mail and destroy 
> all copies of this e-mail and its contents.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
For additional commands, e-mail: dev-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists




Re: carriage return newlines in MacOS installer

Posted by Scott Palmer <sw...@gmail.com>.
> On Apr 1, 2022, at 4:33 PM, antonio <an...@vieiro.net> wrote:
> 
> Hi Todd,
> 
> 1. "the executable won't run correctly"
> 
> a) What does that mean? Does it hang? SIGTERM? What?
> 
> 2. "we are finding carriage returns in the configuration files"
> 
> Well, of course configuration files have carriage returns!

No. Not of course. On Linux and macOS, that’s “wrong”.

> 
> a) Which configuration files?
> b) Are these files generated by you/your team?
> 
> 3. "Is there any way to tell NetBeans to create files that are appropriate for the Linux/Mac environment with no carriage returns?"
> 
> NetBeans has been creating millions of files that are appropriate for the Linux/Mac environment for several years now, AFAIK.
> 
> a) What do you mean by "creating files without carriage returns"? All lines joined together in one or what?

The standard line terminator on Linux and macOS is a line feed: \n 
Only Windows use the carriage return/line feed combination: \r\n

I believe that is what is being referred to here.

Scott


> As you can see your email poses quite a lot of questions. If you're asking us for help you should try to ask precise questions, otherwise we'll either have to reply you with more questions or await for you explaining them.
> 
> Thank you,
> Antonio
> 
> P.S.: This is a public mailing list everyone can see. Please thing twice before posting phone numbers. Thank you.
> 
>> El 31/3/22 a las 23:58, Todd Stevenson escribió:
>> My NetBeans platform app generates a MacOS installer and it installs OK, but the executable won’t run correctly and we are finding carriage returns in the configuration files.  Is there any way to tell NetBeans to create files that are appropriate for the Linux/Mac environment with no carriage returns?
>> Thank you.
>> *Todd Stevenson*
>> Software Engineer - Consultant
>> /Intermountain Healthcare/
>> /3930 Parkway Blvd |Salt Lake City, UT 84120/
>> Office: 801-442-5112 | Cell: 801-589-1115
>> Todd.Stevenson@imail.org <ma...@imail.org>
>> NOTICE: This e-mail is for the sole use of the intended recipient and may contain confidential and privileged information. If you are not the intended recipient, you are prohibited from reviewing, using, disclosing or distributing this e-mail or its contents. If you have received this e-mail in error, please contact the sender by reply e-mail and destroy all copies of this e-mail and its contents.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
> For additional commands, e-mail: dev-help@netbeans.apache.org
> 
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
> 
> 
> 

Re: carriage return newlines in MacOS installer

Posted by Will Hartung <wi...@gmail.com>.
On Tue, Apr 5, 2022 at 11:57 AM Todd Stevenson <To...@imail.org>
wrote:

> The config file is only read by the netbeans platform code.


 I guess the big question is are you doing these builds on a macOS system,
and not a Windows system?

RE: carriage return newlines in MacOS installer

Posted by Todd Stevenson <To...@imail.org>.
The config file is only read by the netbeans platform code.

Todd Stevenson
Software Engineer - Consultant
Intermountain Healthcare
3930 Parkway Blvd |Salt Lake City, UT 84120
Office: 801-442-5112 | Cell: 801-589-1115
Todd.Stevenson@imail.org



-----Original Message-----
From: Eric Bresie <eb...@gmail.com>
Sent: Sunday, April 3, 2022 7:17 AM
To: dev@netbeans.apache.org
Subject: Re: carriage return newlines in MacOS installer

There are definitely different carriage return/line feed characters depending on the platform in use.

Is the config file read via a Netbeans API or the project code itself?  If project code, it may not be reading the lines in a platform independent way
(2)

Eric

Reference:
(1) https://urldefense.com/v3/__https://www.baeldung.com/java-string-newline__;!!HnyL5y5g8FOd9kGaVA!Xvx9V77plsIhhtg7iIoeikQojPrAbyWFflaxOJ564uGe5voL-HwFiOCs_inST4efNYo$
(2)
https://urldefense.com/v3/__https://stackoverflow.com/questions/4758525/carriage-return-and-new-line-with-java-and-readline__;!!HnyL5y5g8FOd9kGaVA!Xvx9V77plsIhhtg7iIoeikQojPrAbyWFflaxOJ564uGe5voL-HwFiOCs_inSzA1_XuY$

On Fri, Apr 1, 2022 at 5:21 PM Todd Stevenson <To...@imail.org>
wrote:

> In answer to your questions:
>
>         The application installer worked correctly.
>         When we attempted to start the application, it just exited
> with no errors.
>         However, once we removed the crlf and replaced with lf  in
> app.conf file (in nbproject/app.conf)  we were able to run the app
> from the command line and looked fine.
>
>
> Todd Stevenson
> Software Engineer - Consultant
> Intermountain Healthcare
> 3930 Parkway Blvd |Salt Lake City, UT 84120
> Office: 801-442-5112 | Cell: 801-589-1115 Todd.Stevenson@imail.org
>
>
>
> -----Original Message-----
> From: antonio <an...@vieiro.net>
> Sent: Friday, April 1, 2022 2:33 PM
> To: dev@netbeans.apache.org
> Subject: Re: carriage return newlines in MacOS installer
>
> External Sender: Be aware! Read with care!
>
> Hi Todd,
>
> 1. "the executable won't run correctly"
>
> a) What does that mean? Does it hang? SIGTERM? What?
>
> 2. "we are finding carriage returns in the configuration files"
>
> Well, of course configuration files have carriage returns!
>
> a) Which configuration files?
> b) Are these files generated by you/your team?
>
> 3. "Is there any way to tell NetBeans to create files that are appropriate
> for the Linux/Mac environment with no carriage returns?"
>
> NetBeans has been creating millions of files that are appropriate for the
> Linux/Mac environment for several years now, AFAIK.
>
> a) What do you mean by "creating files without carriage returns"? All
> lines joined together in one or what?
>
> As you can see your email poses quite a lot of questions. If you're asking
> us for help you should try to ask precise questions, otherwise we'll either
> have to reply you with more questions or await for you explaining them.
>
> Thank you,
> Antonio
>
> P.S.: This is a public mailing list everyone can see. Please thing twice
> before posting phone numbers. Thank you.
>
> El 31/3/22 a las 23:58, Todd Stevenson escribió:
> > My NetBeans platform app generates a MacOS installer and it installs
> > OK, but the executable won’t run correctly and we are finding carriage
> > returns in the configuration files.  Is there any way to tell NetBeans
> > to create files that are appropriate for the Linux/Mac environment
> > with no carriage returns?
> >
> > Thank you.
> >
> > *Todd Stevenson*
> >
> > Software Engineer - Consultant
> >
> > /Intermountain Healthcare/
> >
> > /3930 Parkway Blvd |Salt Lake City, UT 84120/
> >
> > Office: 801-442-5112 | Cell: 801-589-1115
> >
> > Todd.Stevenson@imail.org <ma...@imail.org>
> >
> > NOTICE: This e-mail is for the sole use of the intended recipient and
> > may contain confidential and privileged information. If you are not
> > the intended recipient, you are prohibited from reviewing, using,
> > disclosing or distributing this e-mail or its contents. If you have
> > received this e-mail in error, please contact the sender by reply
> > e-mail and destroy all copies of this e-mail and its contents.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
> For additional commands, e-mail: dev-help@netbeans.apache.org
>
> For further information about the NetBeans mailing lists, visit:
>
> https://urldefense.com/v3/__https://cwiki.apache.org/confluence/display/NETBEANS/Mailing*lists__;Kw!!HnyL5y5g8FOd9kGaVA!RiW2yqV1OW4J_uVjHPmMRuqpJdiYiMcfFGlc5knfHOxpDfYdm1uj0iRhqiKeVxBwBHQ$
>
>
>
> NOTICE: This e-mail is for the sole use of the intended recipient and may
> contain confidential and privileged information. If you are not the
> intended recipient, you are prohibited from reviewing, using, disclosing or
> distributing this e-mail or its contents. If you have received this e-mail
> in error, please contact the sender by reply e-mail and destroy all copies
> of this e-mail and its contents.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
> For additional commands, e-mail: dev-help@netbeans.apache.org
>
> For further information about the NetBeans mailing lists, visit:
> https://urldefense.com/v3/__https://cwiki.apache.org/confluence/display/NETBEANS/Mailing*lists__;Kw!!HnyL5y5g8FOd9kGaVA!Xvx9V77plsIhhtg7iIoeikQojPrAbyWFflaxOJ564uGe5voL-HwFiOCs_inSNXoNj4s$
>
>
>
> --
Eric Bresie
ebresie@gmail.com
NOTICE: This e-mail is for the sole use of the intended recipient and may contain confidential and privileged information. If you are not the intended recipient, you are prohibited from reviewing, using, disclosing or distributing this e-mail or its contents. If you have received this e-mail in error, please contact the sender by reply e-mail and destroy all copies of this e-mail and its contents.

Re: carriage return newlines in MacOS installer

Posted by Eric Bresie <eb...@gmail.com>.
There are definitely different carriage return/line feed characters
depending on the platform in use.

Is the config file read via a Netbeans API or the project code itself?  If
project code, it may not be reading the lines in a platform independent way
(2)

Eric

Reference:
(1) https://www.baeldung.com/java-string-newline
(2)
https://stackoverflow.com/questions/4758525/carriage-return-and-new-line-with-java-and-readline

On Fri, Apr 1, 2022 at 5:21 PM Todd Stevenson <To...@imail.org>
wrote:

> In answer to your questions:
>
>         The application installer worked correctly.
>         When we attempted to start the application, it just exited with no
> errors.
>         However, once we removed the crlf and replaced with lf  in
> app.conf file (in nbproject/app.conf)  we were able to run the app from the
> command line and looked fine.
>
>
> Todd Stevenson
> Software Engineer - Consultant
> Intermountain Healthcare
> 3930 Parkway Blvd |Salt Lake City, UT 84120
> Office: 801-442-5112 | Cell: 801-589-1115
> Todd.Stevenson@imail.org
>
>
>
> -----Original Message-----
> From: antonio <an...@vieiro.net>
> Sent: Friday, April 1, 2022 2:33 PM
> To: dev@netbeans.apache.org
> Subject: Re: carriage return newlines in MacOS installer
>
> External Sender: Be aware! Read with care!
>
> Hi Todd,
>
> 1. "the executable won't run correctly"
>
> a) What does that mean? Does it hang? SIGTERM? What?
>
> 2. "we are finding carriage returns in the configuration files"
>
> Well, of course configuration files have carriage returns!
>
> a) Which configuration files?
> b) Are these files generated by you/your team?
>
> 3. "Is there any way to tell NetBeans to create files that are appropriate
> for the Linux/Mac environment with no carriage returns?"
>
> NetBeans has been creating millions of files that are appropriate for the
> Linux/Mac environment for several years now, AFAIK.
>
> a) What do you mean by "creating files without carriage returns"? All
> lines joined together in one or what?
>
> As you can see your email poses quite a lot of questions. If you're asking
> us for help you should try to ask precise questions, otherwise we'll either
> have to reply you with more questions or await for you explaining them.
>
> Thank you,
> Antonio
>
> P.S.: This is a public mailing list everyone can see. Please thing twice
> before posting phone numbers. Thank you.
>
> El 31/3/22 a las 23:58, Todd Stevenson escribió:
> > My NetBeans platform app generates a MacOS installer and it installs
> > OK, but the executable won’t run correctly and we are finding carriage
> > returns in the configuration files.  Is there any way to tell NetBeans
> > to create files that are appropriate for the Linux/Mac environment
> > with no carriage returns?
> >
> > Thank you.
> >
> > *Todd Stevenson*
> >
> > Software Engineer - Consultant
> >
> > /Intermountain Healthcare/
> >
> > /3930 Parkway Blvd |Salt Lake City, UT 84120/
> >
> > Office: 801-442-5112 | Cell: 801-589-1115
> >
> > Todd.Stevenson@imail.org <ma...@imail.org>
> >
> > NOTICE: This e-mail is for the sole use of the intended recipient and
> > may contain confidential and privileged information. If you are not
> > the intended recipient, you are prohibited from reviewing, using,
> > disclosing or distributing this e-mail or its contents. If you have
> > received this e-mail in error, please contact the sender by reply
> > e-mail and destroy all copies of this e-mail and its contents.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
> For additional commands, e-mail: dev-help@netbeans.apache.org
>
> For further information about the NetBeans mailing lists, visit:
>
> https://urldefense.com/v3/__https://cwiki.apache.org/confluence/display/NETBEANS/Mailing*lists__;Kw!!HnyL5y5g8FOd9kGaVA!RiW2yqV1OW4J_uVjHPmMRuqpJdiYiMcfFGlc5knfHOxpDfYdm1uj0iRhqiKeVxBwBHQ$
>
>
>
> NOTICE: This e-mail is for the sole use of the intended recipient and may
> contain confidential and privileged information. If you are not the
> intended recipient, you are prohibited from reviewing, using, disclosing or
> distributing this e-mail or its contents. If you have received this e-mail
> in error, please contact the sender by reply e-mail and destroy all copies
> of this e-mail and its contents.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
> For additional commands, e-mail: dev-help@netbeans.apache.org
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
>
>
> --
Eric Bresie
ebresie@gmail.com

RE: carriage return newlines in MacOS installer

Posted by Todd Stevenson <To...@imail.org>.
In answer to your questions:

        The application installer worked correctly.
        When we attempted to start the application, it just exited with no errors.
        However, once we removed the crlf and replaced with lf  in app.conf file (in nbproject/app.conf)  we were able to run the app from the command line and looked fine.


Todd Stevenson
Software Engineer - Consultant
Intermountain Healthcare
3930 Parkway Blvd |Salt Lake City, UT 84120
Office: 801-442-5112 | Cell: 801-589-1115
Todd.Stevenson@imail.org



-----Original Message-----
From: antonio <an...@vieiro.net>
Sent: Friday, April 1, 2022 2:33 PM
To: dev@netbeans.apache.org
Subject: Re: carriage return newlines in MacOS installer

External Sender: Be aware! Read with care!

Hi Todd,

1. "the executable won't run correctly"

a) What does that mean? Does it hang? SIGTERM? What?

2. "we are finding carriage returns in the configuration files"

Well, of course configuration files have carriage returns!

a) Which configuration files?
b) Are these files generated by you/your team?

3. "Is there any way to tell NetBeans to create files that are appropriate for the Linux/Mac environment with no carriage returns?"

NetBeans has been creating millions of files that are appropriate for the Linux/Mac environment for several years now, AFAIK.

a) What do you mean by "creating files without carriage returns"? All lines joined together in one or what?

As you can see your email poses quite a lot of questions. If you're asking us for help you should try to ask precise questions, otherwise we'll either have to reply you with more questions or await for you explaining them.

Thank you,
Antonio

P.S.: This is a public mailing list everyone can see. Please thing twice before posting phone numbers. Thank you.

El 31/3/22 a las 23:58, Todd Stevenson escribió:
> My NetBeans platform app generates a MacOS installer and it installs
> OK, but the executable won’t run correctly and we are finding carriage
> returns in the configuration files.  Is there any way to tell NetBeans
> to create files that are appropriate for the Linux/Mac environment
> with no carriage returns?
>
> Thank you.
>
> *Todd Stevenson*
>
> Software Engineer - Consultant
>
> /Intermountain Healthcare/
>
> /3930 Parkway Blvd |Salt Lake City, UT 84120/
>
> Office: 801-442-5112 | Cell: 801-589-1115
>
> Todd.Stevenson@imail.org <ma...@imail.org>
>
> NOTICE: This e-mail is for the sole use of the intended recipient and
> may contain confidential and privileged information. If you are not
> the intended recipient, you are prohibited from reviewing, using,
> disclosing or distributing this e-mail or its contents. If you have
> received this e-mail in error, please contact the sender by reply
> e-mail and destroy all copies of this e-mail and its contents.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
For additional commands, e-mail: dev-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://urldefense.com/v3/__https://cwiki.apache.org/confluence/display/NETBEANS/Mailing*lists__;Kw!!HnyL5y5g8FOd9kGaVA!RiW2yqV1OW4J_uVjHPmMRuqpJdiYiMcfFGlc5knfHOxpDfYdm1uj0iRhqiKeVxBwBHQ$



NOTICE: This e-mail is for the sole use of the intended recipient and may contain confidential and privileged information. If you are not the intended recipient, you are prohibited from reviewing, using, disclosing or distributing this e-mail or its contents. If you have received this e-mail in error, please contact the sender by reply e-mail and destroy all copies of this e-mail and its contents.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
For additional commands, e-mail: dev-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists