cygwin introduces spaces in the console output when running a maven build for a java project in windows 10

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

cygwin introduces spaces in the console output when running a maven build for a java project in windows 10

Cygwin list mailing list
Hi,

Check the following output fragment from a cygwin64 terminal on windows 10
64bit while running a maven 3 build using java 1.8:

[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory C:\proj\t020-domain\src\
      test\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.8.1:testCompile
(default-testCompile) @ t020-domain ---
m
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 2 source f          iles to
C:\proj\t020-domain\target\test-classes
[INFO]
[INFO] --- maven-surefire-plugin:2.22.2:test (default-test) @
t020-domain                                     ---
[INFO] Tests are skipped.
[INFO]
[INFO] --- maven-jar-plugin:3.1.2:jar (default-jar)
            @ t020-domain ---
[INFO] Building jar: C:\proj\t020-domain\target\t020-domain-80.1-SNAPSHOT.jar
[INFO]
[INFO] --- jacoco-maven-plugin:0.8.4:prepare-agent-integration
(default-prepare-agent-integration) @36mt020-domain ---
[INFO] argLine set to
-javaagent:C:\\Users\\VBO07\\.m2\\repository\\org\\jacoco\\org.jacoco.agent\\0.8.4\\org.jacoco.agent-0.8.4-runtime.jar=destfile=C:\\proj\\t020-domain\\target\\jacoco-it.exec
[INFO]
[INFO] --- maven-failsafe-plugin:2.22.2:integration-test (default) @
t020-domain ---
[INFO] Tests are skipped.
[INFO]
[INFO] --- maven-failsafe-plugin:2.22.2:verify (default) @ t020-domain
                                          ---
[INFO] Tests are skipped.
[INFO]
[INFO] --- jacoco-maven-plugin:0.8.4:report (default-
          report) @ t020-domain ---
[INFO] Skipping JaCoCo execution due to missing execution data file.
[INFO]
[INFO] --- jacoco-maven-plugin:0.8.4:report-integration (def
                 ault-report-integration) @ t020-domain
 ---
[INFO] Skipping JaCoCo execution due to missing execution data file.
[INFO]
[INFO] --- jacoco-maven-plugin:0.8.4:check (default-check) @ t020-domain ---
[INFO] Skipping JaCoCo execution due to mi          ssing execution
data file:C:\proj\t020-domain\target\jacoco.exec

You can see it clearly happening on the lines:

[INFO] skip non existing resourceDirectory C:\proj\t020-domain\src\
      test\resources

and

[INFO] Compiling 2 source f          iles to
C:\proj\t020-domain\target\test-classes

and

[INFO] --- jacoco-maven-plugin:0.8.4:report (default-
          report) @ t020-domain ---

and

[INFO] --- jacoco-maven-plugin:0.8.4:report-integration (def
                 ault-report-integration) @ t020-domain

and

[INFO] Skipping JaCoCo execution due to mi          ssing execution
data file:C:\proj\t020-domain\target\jacoco.exec

Please see attached the output of the command: cygcheck -s -v -r >
cygcheck.out, with sensitive info (like my username, my employer domain,
etc, removed)

How can I fix this?

Thank you.


Cheers,

Valentin

--
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

cygcheck.out (32K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: cygwin introduces spaces in the console output when running a maven build for a java project in windows 10

Cygwin list mailing list
On 29.12.2020 12:59, Valentin Brasov via Cygwin wrote:

> Hi,
>
> Check the following output fragment from a cygwin64 terminal on windows 10
> 64bit while running a maven 3 build using java 1.8:
>
>
> You can see it clearly happening on the lines:
>
> [INFO] skip non existing resourceDirectory C:\proj\t020-domain\src\
>        test\resources
>
> and
>
> [INFO] Compiling 2 source f          iles to
> C:\proj\t020-domain\target\test-classes
>

>
> How can I fix this?
>
> Thank you.
>
>
> Cheers,
>
> Valentin
>

Have you tried with CYGWIN="disable_pcon" ?

https://cygwin.com/cygwin-ug-net/using-cygwinenv.html
--
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple
Reply | Threaded
Open this post in threaded view
|

Re: cygwin introduces spaces in the console output when running a maven build for a java project in windows 10

Cygwin list mailing list
In reply to this post by Cygwin list mailing list
On Tue, 29 Dec 2020 11:59:29 +0000
Valentin Brasov via Cygwin <[hidden email]> wrote:

> Hi,
>
> Check the following output fragment from a cygwin64 terminal on windows 10
> 64bit while running a maven 3 build using java 1.8:
>
> [INFO] Using 'UTF-8' encoding to copy filtered resources.
> [INFO] skip non existing resourceDirectory C:\proj\t020-domain\src\
>       test\resources
> [INFO]
> [INFO] --- maven-compiler-plugin:3.8.1:testCompile
> (default-testCompile) @ t020-domain ---
> m
> [INFO] Changes detected - recompiling the module!
> [INFO] Compiling 2 source f          iles to
> C:\proj\t020-domain\target\test-classes
> [INFO]
> [INFO] --- maven-surefire-plugin:2.22.2:test (default-test) @
> t020-domain                                     ---
> [INFO] Tests are skipped.
> [INFO]
> [INFO] --- maven-jar-plugin:3.1.2:jar (default-jar)
>             @ t020-domain ---
> [INFO] Building jar: C:\proj\t020-domain\target\t020-domain-80.1-SNAPSHOT.jar
> [INFO]
> [INFO] --- jacoco-maven-plugin:0.8.4:prepare-agent-integration
> (default-prepare-agent-integration) @36mt020-domain ---
> [INFO] argLine set to
> -javaagent:C:\\Users\\VBO07\\.m2\\repository\\org\\jacoco\\org.jacoco.agent\\0.8.4\\org.jacoco.agent-0.8.4-runtime.jar=destfile=C:\\proj\\t020-domain\\target\\jacoco-it.exec
> [INFO]
> [INFO] --- maven-failsafe-plugin:2.22.2:integration-test (default) @
> t020-domain ---
> [INFO] Tests are skipped.
> [INFO]
> [INFO] --- maven-failsafe-plugin:2.22.2:verify (default) @ t020-domain
>                                           ---
> [INFO] Tests are skipped.
> [INFO]
> [INFO] --- jacoco-maven-plugin:0.8.4:report (default-
>           report) @ t020-domain ---
> [INFO] Skipping JaCoCo execution due to missing execution data file.
> [INFO]
> [INFO] --- jacoco-maven-plugin:0.8.4:report-integration (def
>                  ault-report-integration) @ t020-domain
>  ---
> [INFO] Skipping JaCoCo execution due to missing execution data file.
> [INFO]
> [INFO] --- jacoco-maven-plugin:0.8.4:check (default-check) @ t020-domain ---
> [INFO] Skipping JaCoCo execution due to mi          ssing execution
> data file:C:\proj\t020-domain\target\jacoco.exec
>
> You can see it clearly happening on the lines:
>
> [INFO] skip non existing resourceDirectory C:\proj\t020-domain\src\
>       test\resources
>
> and
>
> [INFO] Compiling 2 source f          iles to
> C:\proj\t020-domain\target\test-classes
>
> and
>
> [INFO] --- jacoco-maven-plugin:0.8.4:report (default-
>           report) @ t020-domain ---
>
> and
>
> [INFO] --- jacoco-maven-plugin:0.8.4:report-integration (def
>                  ault-report-integration) @ t020-domain
>
> and
>
> [INFO] Skipping JaCoCo execution due to mi          ssing execution
> data file:C:\proj\t020-domain\target\jacoco.exec
>
> Please see attached the output of the command: cygcheck -s -v -r >
> cygcheck.out, with sensitive info (like my username, my employer domain,
> etc, removed)
>
> How can I fix this?

This is the known problem which has been already fixed in latest jansi.
https://github.com/fusesource/jansi/issues/165

Solution 1:
The most essential solution is to replace jansi library
(jansi-1.17.1.jar) in maven lib directory with latest jansi (v2.1.1).

Solution 2:
Replace cygwin1.dll with the latest snapshot.
https://cygwin.com/snapshots/

Solution 3:
Use workaround such as:
env TERM=cygwin mvn

--
Takashi Yano <[hidden email]>
--
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple
Reply | Threaded
Open this post in threaded view
|

RE: cygwin introduces spaces in the console output when running a maven build for a java project in windows 10

KAVALAGIOS Panagiotis (EEAS-EXT)
((Takashi, I apologise for my direct e-mail... I hate Outlook... the Reply-all does not include the list))

> -----Original Message-----
> From: Cygwin <[hidden email]> On Behalf Of Takashi Yano via
> Cygwin
> Solution 2:
> Replace cygwin1.dll with the latest snapshot.
> https://cygwin.com/snapshots/

We have been also affected by this issue. I would prefer solution 2 in order to have the new Cygwin update. Do we know if there will be a new release soon or in which version is going to be included?

Panos
--
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple
Reply | Threaded
Open this post in threaded view
|

RE: [cygwin] RE: cygwin introduces spaces in the console output when running a maven build for a java project in windows 10

Jason Pyeron
> -----Original Message-----
> From: KAVALAGIOS Panagiotis (EEAS-EXT)
> Sent: Tuesday, January 5, 2021 9:47 AM
>
> ((Takashi, I apologise for my direct e-mail... I hate Outlook... the Reply-all does not include the
> list))
>
> > -----Original Message-----
> > From: Cygwin <[hidden email]> On Behalf Of Takashi Yano via
> > Cygwin
> > Solution 2:
> > Replace cygwin1.dll with the latest snapshot.
> > https://cygwin.com/snapshots/
>
> We have been also affected by this issue. I would prefer solution 2 in order to have the new Cygwin
> update. Do we know if there will be a new release soon or in which version is going to be included?

We patched our mvn script with:

unset PWD

problem went away - never figured out the actual reason why this broke it.

>
> Panos
> --
> Problem reports:      https://cygwin.com/problems.html
> FAQ:                  https://cygwin.com/faq/
> Documentation:        https://cygwin.com/docs.html
> Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple


--
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple
Reply | Threaded
Open this post in threaded view
|

RE: [cygwin] RE: cygwin introduces spaces in the console output when running a maven build for a java project in windows 10

KAVALAGIOS Panagiotis (EEAS-EXT)
> -----Original Message-----
> From: Cygwin <[hidden email]> On Behalf Of Jason Pyeron
>
> > -----Original Message-----
> > From: KAVALAGIOS Panagiotis (EEAS-EXT)
> > Sent: Tuesday, January 5, 2021 9:47 AM
> >
> > ((Takashi, I apologise for my direct e-mail... I hate Outlook... the
> > Reply-all does not include the
> > list))
> >
> > > -----Original Message-----
> > > From: Cygwin <[hidden email]> On Behalf Of Takashi Yano
> > > via Cygwin Solution 2:
> > > Replace cygwin1.dll with the latest snapshot.
> > > https://cygwin.com/snapshots/
> >
> > We have been also affected by this issue. I would prefer solution 2 in
> > order to have the new Cygwin update. Do we know if there will be a new
> release soon or in which version is going to be included?
>
> We patched our mvn script with:
>
> unset PWD
>
> problem went away - never figured out the actual reason why this broke it.

Nice! We have also a 4th solution then.

I would still prefer the Cygwin update though to avoid extra configuration and have it working out-of-the-box :)

Panos
--
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple
Reply | Threaded
Open this post in threaded view
|

Re: [cygwin] Re: jansi bug adds spaces to output from maven build using java on w10

Brian Inglis
On 2021-01-05 09:15, KAVALAGIOS Panagiotis (EEAS-EXT) wrote:
 >> Jason Pyeron wrote:
>>> On Tuesday, January 5, 2021 9:47 AM, KAVALAGIOS Panagiotis (EEAS-EXT) wrote:
>>>> Takashi Yano wrote:
>>>> Solution 2:
>>>> Replace cygwin1.dll with the latest snapshot.
>>>> https://cygwin.com/snapshots/

>>> We have been also affected by this issue. I would prefer solution 2 in
>>> order to have the new Cygwin update. Do we know if there will be a new
>> release soon or in which version is going to be included?

>> We patched our mvn script with:
>>
>> unset PWD
>>
>> problem went away - never figured out the actual reason why this broke it.

> Nice! We have also a 4th solution then.
>
> I would still prefer the Cygwin update though to avoid extra configuration
> and have it working out-of-the-box :)

You can update using the snapshots now, or wait (weeks?) until the volunteer DLL
maintainers have enough updates for a new release and enough free time from
their real lives, to run tests, build, package, and ship a new release, which
could cause other issues with other external packages.

You could also fix the actual problem by updating jansi now.

--
Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada

This email may be disturbing to some readers as it contains
too much technical detail. Reader discretion is advised.
[Data in binary units and prefixes, physical quantities in SI.]
--
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple
Reply | Threaded
Open this post in threaded view
|

Re: cygwin introduces spaces in the console output when running a maven build for a java project in windows 10

Cygwin list mailing list
In reply to this post by KAVALAGIOS Panagiotis (EEAS-EXT)
On Tue, 5 Jan 2021 14:46:53 +0000
"KAVALAGIOS Panagiotis (EEAS-EXT)" wrote:
> > -----Original Message-----
> > From: Cygwin <[hidden email]> On Behalf Of Takashi Yano via
> > Cygwin
> > Solution 2:
> > Replace cygwin1.dll with the latest snapshot.
> > https://cygwin.com/snapshots/
>
> We have been also affected by this issue. I would prefer solution 2 in order to have the new Cygwin update. Do we know if there will be a new release soon or in which version is going to be included?

Sorry, the solution 2 does not take effect if you are using
older win10 (such as 1809).
Moreover, even with solution 2, the output of maven is garbled
if it is started from cygwin shell in the command prompt.

If you can build jansi from source, I recommend solution 1.

On Tue, 5 Jan 2021 10:48:48 -0500
"Jason Pyeron" wrote:
> We patched our mvn script with:
>
> unset PWD
>
> problem went away - never figured out the actual reason why this broke it.

This is a good alternative. Thanks Jason.

--
Takashi Yano <[hidden email]>
--
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple
Reply | Threaded
Open this post in threaded view
|

RE: [cygwin] Re: jansi bug adds spaces to output from maven build using java on w10

KAVALAGIOS Panagiotis (EEAS-EXT)
In reply to this post by Brian Inglis
> -----Original Message-----
> From: Cygwin <[hidden email]> On Behalf Of Brian Inglis
> On 2021-01-05 09:15, KAVALAGIOS Panagiotis (EEAS-EXT) wrote:
> > I would still prefer the Cygwin update though to avoid extra
> > configuration and have it working out-of-the-box :)
>
> You can update using the snapshots now, or wait (weeks?) until the
> volunteer DLL maintainers have enough updates for a new release and
> enough free time from their real lives, to run tests, build, package, and ship a
> new release, which could cause other issues with other external packages.
>
> You could also fix the actual problem by updating jansi now.

I know exactly what are my options and believe me, there are more than the one reported here. In my case, we need to update Cygwin Git in our machines, so a solution to stick to 3.0.7 and update only Git is also fine.

However, we have performed a full update and found the issue with maven in our pilot phase. My interest is not personal for my machine, but to prepare a Cygwin package to push the update to all developers. I need only to know when there will be the new release that will include a fix for this issue as I am not aware of the Cygwin release schedule. Based on the information, we can decide what option fits better our institution.

Application Architect
CONSULIAT (under contract with the EEAS)
BA.BS.3.IS
_____________________________________
Office: EEAS B100 Floor 5 Area 048
Rue Belliard 100, 1000 Brussels
Phone: +32 2 584 6017
--
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple
Reply | Threaded
Open this post in threaded view
|

Re: [cygwin] Re: jansi bug adds spaces to output from maven build using java on w10

Brian Inglis
On 2021-01-06 00:53, KAVALAGIOS Panagiotis (EEAS-EXT) wrote:
> I know exactly what are my options and believe me, there are more than the
> one reported here. In my case, we need to update Cygwin Git in our machines,
> so a solution to stick to 3.0.7 and update only Git is also fine.
 >
> However, we have performed a full update and found the issue with maven in
> our pilot phase. My interest is not personal for my machine, but to prepare
> a Cygwin package to push the update to all developers. I need only to know
> when there will be the new release that will include a fix for this issue as
> I am not aware of the Cygwin release schedule. Based on the information, we
> can decide what option fits better our institution.
As Cygwin is an unfunded all-volunteer project, there are no expected response
times for issues or release schedules, and responses and releases happen
whenever package maintainers have sufficient interest to read the list or reason
to issue an update, and enough free time in their personal lives to respond or
complete the build, testing, documentation updates, packaging, and release
processes. Some of us try to help them out by trying to provide timely and
useful responses with suggestions or workarounds.

As you are a member of an organization with funding, it is up to you to do
whatever your organization requires in terms of timing and can support
internally, including using snapshots, or building your own package releases
from sources.

--
Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada

This email may be disturbing to some readers as it contains
too much technical detail. Reader discretion is advised.
[Data in binary units and prefixes, physical quantities in SI.]
--
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple
Reply | Threaded
Open this post in threaded view
|

RE: [cygwin] Re: jansi bug adds spaces to output from maven build using java on w10

KAVALAGIOS Panagiotis (EEAS-EXT)
> -----Original Message-----
> From: Cygwin <[hidden email]> On Behalf Of Brian Inglis
>
> On 2021-01-06 00:53, KAVALAGIOS Panagiotis (EEAS-EXT) wrote:
> > I know exactly what are my options and believe me, there are more than
> > the one reported here. In my case, we need to update Cygwin Git in our
> > machines, so a solution to stick to 3.0.7 and update only Git is also fine.
>  >
> > However, we have performed a full update and found the issue with
> > maven in our pilot phase. My interest is not personal for my machine,
> > but to prepare a Cygwin package to push the update to all developers.
> > I need only to know when there will be the new release that will
> > include a fix for this issue as I am not aware of the Cygwin release
> > schedule. Based on the information, we can decide what option fits better
> our institution.
> As Cygwin is an unfunded all-volunteer project, there are no expected
> response times for issues or release schedules, and responses and releases
> happen whenever package maintainers have sufficient interest to read the
> list or reason to issue an update, and enough free time in their personal lives
> to respond or complete the build, testing, documentation updates,
> packaging, and release processes. Some of us try to help them out by trying
> to provide timely and useful responses with suggestions or workarounds.
>
> As you are a member of an organization with funding, it is up to you to do
> whatever your organization requires in terms of timing and can support
> internally, including using snapshots, or building your own package releases
> from sources.

I understand that even a rough estimation is not possible and we have to forget the solution 2 of a Cygwin release. We will choose among the other solutions proposed so far. Thank you very much.

Panos

Application Architect
CONSULIAT (under contract with the EEAS)
BA.BS.3.IS
Office: EEAS B100 Floor 5 Area 048
Rue Belliard 100, 1000 Brussels
Phone: +32 2 584 6017

--
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple
Reply | Threaded
Open this post in threaded view
|

Re: cygwin introduces spaces in the console output when running a maven build for a java project in windows 10

Cygwin list mailing list
In reply to this post by Cygwin list mailing list
On Wed, 6 Jan 2021 10:36:02 +0900
Takashi Yano via Cygwin <[hidden email]> wrote:

> On Tue, 5 Jan 2021 14:46:53 +0000
> "KAVALAGIOS Panagiotis (EEAS-EXT)" wrote:
> > > -----Original Message-----
> > > From: Cygwin <[hidden email]> On Behalf Of Takashi Yano via
> > > Cygwin
> > > Solution 2:
> > > Replace cygwin1.dll with the latest snapshot.
> > > https://cygwin.com/snapshots/
> >
> > We have been also affected by this issue. I would prefer solution 2 in order to have the new Cygwin update. Do we know if there will be a new release soon or in which version is going to be included?
>
> Sorry, the solution 2 does not take effect if you are using
> older win10 (such as 1809).
> Moreover, even with solution 2, the output of maven is garbled
> if it is started from cygwin shell in the command prompt.

I have confirmed that the solution 2 also has no effect on
Win10 1903, 1909 while it works on Win10 20H2.
I'm not sure whether it works or not on Win10 2004.

> If you can build jansi from source, I recommend solution 1.

Actually, this issue has been fixed in jansi-2.0.1.jar which
can be downloaded from
https://fusesource.github.io/jansi/download.html
however, this version has another minor problem:
https://github.com/fusesource/jansi/issues/179

The issue above is fixed in jansi-2.1.0.jar, however replacing
only this file causes another problem:
https://github.com/fusesource/jansi/issues/180

Both issues are fixed in jansi-2.1.1.jar

So, if you can build jansi from source, use v2.1.1.

Otherwise, use v2.0.1 which can be downloaded from
https://fusesource.github.io/jansi/download.html
if you can accept the issue:
https://github.com/fusesource/jansi/issues/179

--
Takashi Yano <[hidden email]>
--
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple
Reply | Threaded
Open this post in threaded view
|

RE: cygwin introduces spaces in the console output when running a maven build for a java project in windows 10

KAVALAGIOS Panagiotis (EEAS-EXT)
> -----Original Message-----
> From: Cygwin <[hidden email]> On Behalf Of Takashi Yano via
> Cygwin
> Sent: 06 January 2021 10:52
>
> On Wed, 6 Jan 2021 10:36:02 +0900
> Takashi Yano via Cygwin <[hidden email]> wrote:
> > On Tue, 5 Jan 2021 14:46:53 +0000
> > "KAVALAGIOS Panagiotis (EEAS-EXT)" wrote:
> > > > -----Original Message-----
> > > > From: Cygwin <[hidden email]> On Behalf Of Takashi
> Yano
> > > > via Cygwin Solution 2:
> > > > Replace cygwin1.dll with the latest snapshot.
> > > > https://cygwin.com/snapshots/
> > >
> > > We have been also affected by this issue. I would prefer solution 2 in
> order to have the new Cygwin update. Do we know if there will be a new
> release soon or in which version is going to be included?
> >
> > Sorry, the solution 2 does not take effect if you are using older
> > win10 (such as 1809).
> > Moreover, even with solution 2, the output of maven is garbled if it
> > is started from cygwin shell in the command prompt.
>
> I have confirmed that the solution 2 also has no effect on
> Win10 1903, 1909 while it works on Win10 20H2.
> I'm not sure whether it works or not on Win10 2004.

We also speak 1809 and the snapshot is not working for us either.

I was thinking that the 3rd solution (TERM=cygwin) is easier. It can be applied in a .sh and .csh script inside /etc/profile.d or is there a different place recommended for Cygwin to set this variable? Is there any side effect using "cygwin" from the default value "xterm"?

Panos
--
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple
Reply | Threaded
Open this post in threaded view
|

Re: cygwin introduces spaces in the console output when running a maven build for a java project in windows 10

Cygwin list mailing list
On Thu, 7 Jan 2021 08:38:42 +0000
"KAVALAGIOS Panagiotis (EEAS-EXT)" wrote:

> > -----Original Message-----
> > From: Cygwin <[hidden email]> On Behalf Of Takashi Yano via
> > Cygwin
> > Sent: 06 January 2021 10:52
> >
> > On Wed, 6 Jan 2021 10:36:02 +0900
> > Takashi Yano via Cygwin <[hidden email]> wrote:
> > > On Tue, 5 Jan 2021 14:46:53 +0000
> > > "KAVALAGIOS Panagiotis (EEAS-EXT)" wrote:
> > > > > -----Original Message-----
> > > > > From: Cygwin <[hidden email]> On Behalf Of Takashi
> > Yano
> > > > > via Cygwin Solution 2:
> > > > > Replace cygwin1.dll with the latest snapshot.
> > > > > https://cygwin.com/snapshots/
> > > >
> > > > We have been also affected by this issue. I would prefer solution 2 in
> > order to have the new Cygwin update. Do we know if there will be a new
> > release soon or in which version is going to be included?
> > >
> > > Sorry, the solution 2 does not take effect if you are using older
> > > win10 (such as 1809).
> > > Moreover, even with solution 2, the output of maven is garbled if it
> > > is started from cygwin shell in the command prompt.
> >
> > I have confirmed that the solution 2 also has no effect on
> > Win10 1903, 1909 while it works on Win10 20H2.
> > I'm not sure whether it works or not on Win10 2004.
>
> We also speak 1809 and the snapshot is not working for us either.
>
> I was thinking that the 3rd solution (TERM=cygwin) is easier. It can be applied in a .sh and .csh script inside /etc/profile.d or is there a different place recommended for Cygwin to set this variable? Is there any side effect using "cygwin" from the default value "xterm"?

Environment TERM is used by various cygwin application. So if
you set it cygwin globally, editor (vim, emacs), less etc. will
be affected. Therefore, you should set TERM to cygwin only for
maven.

The appropriate way is to set TERM=cygwin in /etc/mavenrc or
$HOME/.mavenrc

--
Takashi Yano <[hidden email]>
--
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple
Reply | Threaded
Open this post in threaded view
|

RE: cygwin introduces spaces in the console output when running a maven build for a java project in windows 10

KAVALAGIOS Panagiotis (EEAS-EXT)
> -----Original Message-----
> From: Cygwin <[hidden email]> On Behalf Of Takashi Yano via
> Cygwin
> Sent: 07 January 2021 10:05
>
> On Thu, 7 Jan 2021 08:38:42 +0000
> "KAVALAGIOS Panagiotis (EEAS-EXT)" wrote:
> >
> > We also speak 1809 and the snapshot is not working for us either.
> >
> > I was thinking that the 3rd solution (TERM=cygwin) is easier. It can be
> applied in a .sh and .csh script inside /etc/profile.d or is there a different
> place recommended for Cygwin to set this variable? Is there any side effect
> using "cygwin" from the default value "xterm"?
>
> Environment TERM is used by various cygwin application. So if you set it
> cygwin globally, editor (vim, emacs), less etc. will be affected. Therefore, you
> should set TERM to cygwin only for maven.
>
> The appropriate way is to set TERM=cygwin in /etc/mavenrc or
> $HOME/.mavenrc

Yep, I confirm that the following has worked like a charm:

------------
kavalpa@BELBRU-L1903700:[53] ~ > cat /etc/mavenrc
# Temporary workaround for the jansi issue of Maven
TERM=cygwin
------------

Thank you very much!

Panos

Application Architect
CONSULIAT (under contract with the EEAS)
BA.BS.3.IS
Office: EEAS B100 Floor 5 Area 048
Rue Belliard 100, 1000 Brussels
Phone: +32 2 584 6017

--
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple
Reply | Threaded
Open this post in threaded view
|

RE: [cygwin] RE: cygwin introduces spaces in the console output when running a maven build for a java project in windows 10

Jason Pyeron
> -----Original Message-----
> From: KAVALAGIOS Panagiotis (EEAS-EXT)
> Sent: Thursday, January 7, 2021 4:40 AM
>
> > -----Original Message-----
> > From: Cygwin <[hidden email]> On Behalf Of Takashi Yano via
> > Cygwin
> > Sent: 07 January 2021 10:05
> >
> > On Thu, 7 Jan 2021 08:38:42 +0000
> > "KAVALAGIOS Panagiotis (EEAS-EXT)" wrote:
> > >
> > > We also speak 1809 and the snapshot is not working for us either.
> > >
> > > I was thinking that the 3rd solution (TERM=cygwin) is easier. It can be
> > applied in a .sh and .csh script inside /etc/profile.d or is there a different
> > place recommended for Cygwin to set this variable? Is there any side effect
> > using "cygwin" from the default value "xterm"?
> >
> > Environment TERM is used by various cygwin application. So if you set it
> > cygwin globally, editor (vim, emacs), less etc. will be affected. Therefore, you
> > should set TERM to cygwin only for maven.
> >
> > The appropriate way is to set TERM=cygwin in /etc/mavenrc or
> > $HOME/.mavenrc

Our maven builds invoke Cygwin sub processes, this impacts them.

>
> Yep, I confirm that the following has worked like a charm:
>
> ------------
> kavalpa@BELBRU-L1903700:[53] ~ > cat /etc/mavenrc
> # Temporary workaround for the jansi issue of Maven
> TERM=cygwin
> ------------

Instead (vice our previous mention of patching maven) adding the "unset PWD" in the mavenrc file also works, well.

I am still curious as to what is the reason that unsetting PWD or setting TERM=cygwin fixes this.

--
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple
Reply | Threaded
Open this post in threaded view
|

Re: [cygwin] RE: cygwin introduces spaces in the console output when running a maven build for a java project in windows 10

Cygwin list mailing list
On Thu, 7 Jan 2021 09:39:32 -0500
"Jason Pyeron" wrote:
> I am still curious as to what is the reason that unsetting PWD or setting TERM=cygwin fixes this.

Please refer to https://github.com/fusesource/jansi/issues/165

--
Takashi Yano <[hidden email]>
--
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple
Reply | Threaded
Open this post in threaded view
|

Re: [cygwin] jansi adds spaces to output running maven on java in w10

Brian Inglis

On 2021-01-07 08:00, Takashi Yano via Cygwin wrote:
> On Thu, 7 Jan 2021 09:39:32 -0500
> "Jason Pyeron" wrote:
>> I am still curious as to what is the reason that unsetting PWD or setting
>> TERM=cygwin fixes this.
>
> Please refer to https://github.com/fusesource/jansi/issues/165

...where the patch attempts to improve how jansi attempts to determine it is
running under a JVM running in a Cygwin, Msys, or Mingw terminal by looking at
env var existence and/or contents: they could be set for the user and unrelated.

--
Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada

This email may be disturbing to some readers as it contains
too much technical detail. Reader discretion is advised.
[Data in binary units and prefixes, physical quantities in SI.]
--
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple
Reply | Threaded
Open this post in threaded view
|

RE: [cygwin] jansi adds spaces to output running maven on java in w10

Jason Pyeron
> -----Original Message-----
> From: Brian Inglis
> Sent: Thursday, January 7, 2021 11:49 AM
>
>
> On 2021-01-07 08:00, Takashi Yano via Cygwin wrote:
> > On Thu, 7 Jan 2021 09:39:32 -0500
> > "Jason Pyeron" wrote:
> >> I am still curious as to what is the reason that unsetting PWD or setting
> >> TERM=cygwin fixes this.
> >
> > Please refer to https://github.com/fusesource/jansi/issues/165
>
> ...where the patch attempts to improve how jansi attempts to determine it is
> running under a JVM running in a Cygwin, Msys, or Mingw terminal by looking at
> env var existence and/or contents: they could be set for the user and unrelated.

+import static org.fusesource.jansi.internal.Kernel32.GetConsoleMode;

...

     static final boolean IS_CYGWIN = IS_WINDOWS
             && System.getenv("PWD") != null
             && System.getenv("PWD").startsWith("/")
-            && !"cygwin".equals(System.getenv("TERM"));
+            && GetConsoleMode(GetStdHandle(STD_OUTPUT_HANDLE), mode) == 0;

Very interesting... unsetting PWD ensures Maven will be blissfully unaware of Cygwin regardless of their patch and setting TERM=cygwin is ignored after the patch.

--
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple