Editor goes nuts adding a new line or adding to a comment
- Dominant language
- Java
- Stars
- 3.1k
- Forks
- 935
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 17
Description
### Apache NetBeans version
Apache NetBeans 24
### What happened
I noticed this with NB 23 as well, btw. Using java, when trying to insert a new line to add something like
```Integer i = 2;,```
the editor instead does something like
```
I nteger a = 1;
;
Agency agency = entityManager.find(Agency.class, agencyId);
```
You can see it starts with the capitalized 'I", followed by a space and then the following line gets appended so you are typing in the blind. This used to work with version 23 for a while but then this started happening. When I then first upgraded to 24, that 'bug' disappeared, but now re-appeared a few weeks ago again.
What I have tried:
Re-install NB with no JDK included. Tried running against java 17, 19, 21 and 23.
Re-Install NB with prepackaged JDK.
Deleted NB cache and restarted.
None of these worked. Not sure if I should completely wipe out my .netbeans folder and start from scratch.
I dropped a couple of screen recordings, since it is kind of hard to write-up the behavior of the IDE.
https://github.com/user-attachments/assets/2ea78adb-233f-43e5-8b1c-a474b33a373b
https://github.com/user-attachments/assets/10856a79-500e-403c-8daf-d33b5e01613a
https://github.com/user-attachments/assets/77f22128-6fbb-48b7-a42c-063488cc5468
https://github.com/user-attachments/assets/3e5a1911-f6e5-402c-adda-38481de28d4a
### Language / Project Type / NetBeans Component
_No response_
### How to reproduce
Like I said, this suddenly started happening for me. Since I am not seeing many reports, expect for very old versions of NB, it is probably not easily reproducible, but maybe you have some suggestions.
### Did this work correctly in an earlier version?
Apache NetBeans 23
### Operating System
Red Hat Enterprise Linux 8.10 (Ootpa) Kernel: Linux 4.18.0-553.16.1.el8_10.x86_64
### JDK
Product Version: Apache NetBeans IDE 24 Java: 23.0.1; OpenJDK 64-Bit Server VM 23.0.1+11 Runtime: OpenJDK Runtime Environment 23.0.1+11 System: Linux version 4.18.0-553.16.1.el8_10.x86_64 running on amd64; UTF-8; en_US (nb)
### Apache NetBeans packaging
Apache NetBeans provided installer, Apache NetBeans platform
### Anything else
Currently happens all the time. I included the IDE log files
[messages.log](https://github.com/user-attachments/files/18429479/messages.log)
### Are you willing to submit a pull request?
No
Contributor guide
Research direction
Start by reviewing the attached messages.log and screen recordings, then try to reproduce the editor behavior in Apache NetBeans 24 with Java 23 on Linux. Focus on inserting a new line or adding to a Java comment, and consider the issue resolved when the editor no longer rearranges or hides the typed text.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- developer-experience
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100