Override Method Autocompletion does nothing
- Dominant language
- Java
- Stars
- 3.1k
- Forks
- 935
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 17
Description
### Apache NetBeans version
Apache NetBeans 13
### What happened
Autocomplete for method override does not work, and instead deletes entered text, and does not create method stub.
### How to reproduce
1. Begin typing at the top level of a class, as if to add a new method ("didCh").
2. Select the autocomplete option to override the selected method ("didChangeWorkspaceFolder")
3. Hit enter
4. The text and autocomplete box disappears, but no method stub is created.
This only appears to happen in this one specific file, not generally, but it is does happen for any method (not just didChangeWorkspaceFolder) and is reproduceable both on 12.6 and 13. It also works fine if, instead of typing something first, you just hit ctrl-space, type nothing, but scroll to the selected method and hit enter, however hitting ctrl-space, then typing some to filter the list, and then hitting enter also fails. It appears that typing some is the required catalyst.
Specifically, this occurs when trying to override methods while in the LangServ.java file.
(Checkout fc3603f3de7d28983010530fdf63e14fa1fda6e6 and edit this file: https://github.com/EngineHub/CommandHelper/blob/fc3603f3de7d28983010530fdf63e14fa1fda6e6/src/main/java/com/laytonsmith/tools/langserv/LangServ.java)
I selected that this worked in 12.5, but I don't actually know when this broke, and I only have 12.6 and 13 installed to test against.
### Did this work correctly in an earlier version?
Apache NetBeans 12.5
### Operating System
Windows 10
### JDK
Adoptium JDK 17
### Apache NetBeans packaging
Apache NetBeans provided installer
### Anything else
_No response_
### Are you willing to submit a pull request?
No
### Code of Conduct
Yes
Contributor guide
Research direction
Reproduce the failure in Apache NetBeans 12.6 or 13 using JDK 17 and the specified checkout of CommandHelper, with src/main/java/com/laytonsmith/tools/langserv/LangServ.java open. Start by comparing override completion after typing a filter with completion invoked without typed text. Done means selecting an override creates its method stub instead of deleting the entered 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
- Mostly clear
- Newbie friendliness
- 35/100