question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ASCII/UNICODE BUG K=75

See original GitHub issue

Apache NetBeans version

verified in 14rc4, 13… 12.0

What happened

for (int i=0; i<=127; i++){
    System.out.println(i + " " + (char) i);
} 

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) bugasiiunicode

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

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:1
  • Comments:16 (13 by maintainers)

github_iconTop GitHub Comments

2reactions
lbruuncommented, 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 K by 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.

0reactions
mbiencommented, May 31, 2022

the download progress filter doesn’t work anymore, right? I typically see output like:

Progress (1): 2.7/746 kB
Progress (1): 5.5/746 kB
Progress (1): 8.2/746 kB
Progress (1): 11/746 kB 
Progress (1): 14/746 kB
Progress (1): 16/746 kB
Progress (1): 19/746 kB
Progress (1): 21/746 kB
Progress (1): 24/746 kB
Progress (1): 27/746 kB
Progress (2): 27/746 kB | 0/2.5 M
...

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Python3 surprising behavior of identifier being a non-ASCII ...
Python identifiers with non-ASCII characters are subject to NFKC normalisation (1), you can see the effect in the following code:
Read more >
ASCII and Unicode quotation marks
If you can use only ASCII's typewriter characters, then use the apostrophe character (0x27) as both the left and right quotation mark (as...
Read more >
UnicodeInCode - Error Prone
The problem. Using non-ASCII Unicode characters in code can be confusing, and potentially unsafe. For example, homoglyphs can result in a different method ......
Read more >
Showing unicode when enter Non-ASCII characters for labels
Describe the bug It seems there is problem in showing Non-ASCII characters like Persian (fa). For example I transcribed some audio in ...
Read more >
Insert ASCII or Unicode Latin-based symbols and characters
Learn how to insert ASCII or Unicode characters using character codes or the Character Map.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found