autocompletion for assigning variable [ALT + ENTER] does not work any more
- Dominant language
- Java
- Stars
- 3.1k
- Forks
- 935
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 17
Description
### Apache NetBeans version
Apache NetBeans 28
### What happened
Autocompletion for assigning a variable to a given method automatically does not work anymore.
e.g.
given the line:
getGreeting();
pressing [ALT + ENTER] when positioning the cursor in getGreeting used to complete the code to:
String getgreeting= getGreeting();
Now nothing happens. I can't find another (new) way to complete the code.
### Language / Project Type / NetBeans Component
code completion
### How to reproduce
Type in a line with a method which is returning a value without assigning a variable to the return value.
position the cursor on the method, press [ALT + ENTER] ...
### Did this work correctly in an earlier version?
Apache NetBeans 25
### Operating System
Win11
### JDK
JDK 21
### Apache NetBeans packaging
Apache NetBeans binary zip
### Anything else
_No response_
### Are you willing to submit a pull request?
No
Contributor guide
Research direction
Reproduce in Apache NetBeans 28 with JDK 21 by typing a method call that returns a value and pressing Alt+Enter, then compare the behavior with NetBeans 25. Done means the action again offers or inserts an assignment for the returned value, such as assigning getGreeting() to a variable.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- developer-experience, tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100