-
Notifications
You must be signed in to change notification settings - Fork 875
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ASCII/UNICODE BUG K=75 #4017
Comments
Oh...nice find. Its working in other editors properly (Sublime) 75 - K is not getting printed! |
Could not reproduce on Linux. What happens if the i=64 ? |
It actually missing 75. |
I know, but from 0-31 there are control characters which could affect the output. |
Maybe related to #4119 |
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. |
I haved test this for Netbeans 13 + Java 17.0.3 under Windows 10 The Code public static class Main{
public static void main(String args[]) throws Exception {
System.out.println(75 + " " + (char)75);
System.out.println((char)75);
System.out.println(Charset.defaultCharset());
}
} when executing a Maven project yields
in the Netbeans Console. The line |
Still works on Linux either with Ant or Maven project. |
After some further testing it seems like any String of the pattern System.out.println("5000K"); //output missing
System.out.println("" + "204K"); //output missing
System.out.println("" + "255 K"); //output missing
System.out.println("" + "K"); //does show |
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 |
Using Windows 11, NB 13 and JDK 11, I can only reproduce on a Maven-based project, not on a Ant-based one. public class MyMain {
public static void main(String[] args) {
System.out.println("Start");
System.out.println("75 " + (char) 75); // Swallowed with NB-->Maven execution
System.out.println("End");
}
} However, when executing the |
I've done some debugging. Nothing to do with ANSI coloring and what not. Sorry for bringing that up. The text The output is skipped for this reason. So there you have it. The class, Not sure what the fix is. |
@lbruun thank you for investigating. I was actually curious how many comments this issue will get before someone starts a debugger :) |
@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 I was curious why |
the download progress filter doesn't work anymore, right?
which would be one constantly updating line in a shell. I am wondering if we can just drop the filter. Maven has |
- sets --no-transfer-progress as default global maven option - removes console regexp filter which fixes apache#4017 - regexp filter didn't work with current maven anyway
- sets --no-transfer-progress as default global maven option - removes console regexp filter which fixes apache#4017 - regexp filter didn't work with current maven anyway
- sets --no-transfer-progress as default global maven option - removes console regexp filter which fixes apache#4017 - regexp filter didn't work with current maven anyway
Apache NetBeans version
verified in 14rc4, 13... 12.0
What happened
I was running this code above and received the following output:

(I was missing the value 75 of uppercase K) (Netbeans IDE version 12.6)
How to reproduce
see above
Did this work correctly in an earlier version?
No
Operating System
Windows
JDK
17.0.1
Apache NetBeans packaging
Apache NetBeans provided installer
Anything else
No response
Are you willing to submit a pull request?
Yes
Code of Conduct
Yes
The text was updated successfully, but these errors were encountered: