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.

Bug 123649

Summary: Heredoc unwanted completion on pressing Enter
Product: php Reporter: mann <mann>
Component: EditorAssignee: Tomasz Slota <tslota>
Status: VERIFIED FIXED    
Severity: blocker    
Priority: P2    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: java.lang.IllegalStateException on autocompletion in heredoc

Description mann 2007-12-07 19:14:14 UTC
When writing heredoc I write $variable= <<<EOT and then press Enter and editor puts EOT; after what I've written and
repeats then on repeated Enter keystrokes. I have to enter only <<< and write EOT later.
Comment 1 Andrew Korostelev 2007-12-10 10:55:34 UTC
I get exceptions: java.lang.IllegalStateException: Already locked.
(attached)

exception is provoked by org.netbeans.modules.php.editor.FormattingUtils.indentNewLine(FormattingUtils.java:53)
Comment 2 Andrew Korostelev 2007-12-10 10:58:55 UTC
Created attachment 54074 [details]
java.lang.IllegalStateException on autocompletion in heredoc
Comment 3 Andrew Korostelev 2007-12-19 13:39:43 UTC
priority was increased to P2.
exception breaks source code and blocks bracket completion feature
Comment 4 Andrew Korostelev 2008-01-18 14:30:53 UTC
*** Issue 125554 has been marked as a duplicate of this issue. ***
Comment 5 Petr Pisl 2008-03-27 11:42:57 UTC
This functionality is not implemented yet in the new editor.
Comment 6 Tomasz Slota 2008-04-09 09:39:37 UTC
This issue is no longer occurs in the new PHP support implementation (fixed by rewrite)
Comment 7 Victoria Zhukovskaya 2008-05-06 14:14:55 UTC
yes, sorry