You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I know, but from 0-31 there are control characters which could affect the output.
Also the complete line 75 is missing, not just the K. If a line is missing it might be a synchronization issue or some buffering issue between the OS process and NetBeans.
the screenshots shows 12.6 but the issue had "latest daily build" selected. Someone please test NetBeans 13 and 14rc4 so that we know that this is in fact not already fixed, e.g via #3289 or #3836
the screenshots shows 12.6 but the issue had "latest daily build" selected. Someone please test NetBeans 13 and 14rc4 so that we know that this is in fact not already fixed, e.g via #3289 or #3836
I haved test this for Netbeans 13 + Java 17.0.3 under Windows 10
when having system variable MAVEN_OPTS=-Dfile.encoding=UTF-8 set:
i tested 14rc4 and 12.0 on win 10 and saw the same issue in both cases. This means this is not a recent regression, its an older issue which is not influenced by recent changes in encoding related code.
However, when executing the mvn command line which NB constructs outside of the IDE in the cmd.exe, then I do indeed get the line printed correctly. Baffled. Regardless I'm thinking it may have to do with Maven ANSI coloring, Maven's use of jansi and how all that plays with NetBeans ?
The output is skipped for this reason. So there you have it.
The class, CommandLineOutputHandler, does a lot of pattern matching on the output from Maven before it presents it in the Output window. Too much for my taste, but I understand why it may be necessary.
Activity
sadhusreenivas commentedon Apr 22, 2022
Oh...nice find.
Its working in other editors properly (Sublime)
75 - K is not getting printed!
Nice bug....kudos!
lkishalmi commentedon May 17, 2022
Could not reproduce on Linux. What happens if the i=64 ?
00816 commentedon May 17, 2022
It actually missing 75.
lkishalmi commentedon May 17, 2022
I know, but from 0-31 there are control characters which could affect the output.
Also the complete line 75 is missing, not just the K. If a line is missing it might be a synchronization issue or some buffering issue between the OS process and NetBeans.
lkishalmi commentedon May 17, 2022
Maybe related to #4119
00816 commentedon May 17, 2022
This issue is only Netbeans 12.6. All other versions, its working fine.
This has been produced on Windows.
Console and other text editors, it could able to print that line.
I amazed why 75 - K is missing, every time.
Is that a bug? how to understand.
mbien commentedon May 18, 2022
the screenshots shows 12.6 but the issue had "latest daily build" selected. Someone please test NetBeans 13 and 14rc4 so that we know that this is in fact not already fixed, e.g via #3289 or #3836
duoduobingbing commentedon May 20, 2022
I haved test this for Netbeans 13 + Java 17.0.3 under Windows 10
when having system variable
MAVEN_OPTS=-Dfile.encoding=UTF-8set:The Code
when executing a Maven project yields
in the Netbeans Console.
The line
75 Kis always missing.lkishalmi commentedon May 20, 2022
Still works on Linux either with Ant or Maven project.
duoduobingbing commentedon May 20, 2022
After some further testing it seems like any String of the pattern
^\d+ ?K$is swallowed by the Netbeans console under Windows.mbien commentedon May 20, 2022
i tested 14rc4 and 12.0 on win 10 and saw the same issue in both cases. This means this is not a recent regression, its an older issue which is not influenced by recent changes in encoding related code.
going to update the issue details a bit
lbruun commentedon May 29, 2022
Using Windows 11, NB 13 and JDK 11, I can only reproduce on a Maven-based project, not on a Ant-based one.
My full and complete application is this:
However, when executing the
mvncommand line which NB constructs outside of the IDE in thecmd.exe, then I do indeed get the line printed correctly. Baffled. Regardless I'm thinking it may have to do with Maven ANSI coloring, Maven's use of jansi and how all that plays with NetBeans ?lbruun commentedon May 29, 2022
I've done some debugging. Nothing to do with ANSI coloring and what not. Sorry for bringing that up.
The text
75 Kby coincidence matches what the NetBeans Maven CommandLineOutputHandler seems to think is download progress info from Maven. It is obviously not.The output is skipped for this reason. So there you have it.
The class,
CommandLineOutputHandler, does a lot of pattern matching on the output from Maven before it presents it in the Output window. Too much for my taste, but I understand why it may be necessary.Not sure what the fix is.
mbien commentedon May 29, 2022
@lbruun thank you for investigating. I was actually curious how many comments this issue will get before someone starts a debugger :)
neilcsmith-net commentedon May 30, 2022
@lbruun nice find! And comment at line 319 shows this was picked up before in https://bz.apache.org/netbeans/show_bug.cgi?id=252514 .. and probably why this is a Windows bug given the guard on
\r.I was curious why
63 ?and66 Bwere getting through, until I looked at the screenshot again! 😄mbien commentedon May 31, 2022
the download progress filter doesn't work anymore, right?
I typically see output like:
which would be one constantly updating line in a shell.
I am wondering if we can just drop the filter. Maven has
-ntp(--no-transfer-progress) which might not have existed back when this was written.hide maven transfer progress via flag instead of regexp filtering.
hide maven transfer progress via flag instead of regexp filtering.
hide maven transfer progress via flag instead of regexp filtering.