This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
On today's daily build (200903250219) when I start typing a PHP function, hit CTRL-SPACE to see the list, and then select one and hit ENTER, the current line of code is always indented 1 time from where it was. I have to unindent every time.
Reassigning to PHP.
I see this same problem in the jsp editor, but only when the code hasn't been formatted with alt-shift-f. Once the code has been formatted the jsp editor handle indents correctly.
It only seems to happen if there is a blank line above the line on which you are trying to perform a code completion, or if the line above is an opening brace. Or conversely, it seems to function correctly when the previous line contains PHP commands. This defect was introduced between 200903021401 (worked fine) and 200903121546 (broken). Examples: class MyClass { public function myFunc() { $theVar1 = date_create();<<-CODE-COMPLETION WILL INCORRECTLY INDENT HERE $theVar2 = date_create();<<-CODE-COMPLETION INDENTS CORRECTLY $theVar3 = date_create();<<-CODE-COMPLETION INDENTS CORRECTLY $theVar4 = date_create();<<-CODE-COMPLETION WILL INCORRECTLY INDENT HERE } }
*** This issue has been marked as a duplicate of 160995 ***