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 160995 - CC indents the current line
Summary: CC indents the current line
Status: VERIFIED FIXED
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker with 1 vote (vote)
Assignee: Tomasz Slota
URL:
Keywords:
: 161197 161245 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-03-24 11:04 UTC by Tomas Mysik
Modified: 2009-04-20 17:32 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tomas Mysik 2009-03-24 11:04:11 UTC
From http://blogs.sun.com/netbeansphp/entry/output_window_improvements:
(BTW it happened to me several times as well.)

Hello,
I loaded the latest build and now I have a small problem:
Lets say, I have this Code:
<?php
 class foo
 {
 public function bar()
 {
 $this->bar(); // This Line makes the problems
 }
 }
 ?>
When I write the code in function bar and use code completion to choose the bar function, it intends my code using one tab.
 I have this problem most of the time, when I use code completion.
Thanks for your Help,
 Urkman
Comment 1 Tomas Mysik 2009-03-25 09:43:39 UTC
It happens to me as well and unfortunately quite often, it's very annoying => P2.
Comment 2 menic 2009-03-25 19:19:54 UTC
same happens to me. 
Each time I use cc, i get one tab indent :|
Comment 3 Tomasz Slota 2009-03-30 12:52:06 UTC
This problem seems to fixed by replacing the formatting engine (last change http://hg.netbeans.org/web-main?cmd=changeset;node=41a8e09934d3).

Please verify
Comment 4 Tomas Mysik 2009-03-30 15:13:00 UTC
Seems to be fixed.
Comment 5 Filip Zamboj 2009-03-30 15:28:00 UTC
verified
Comment 6 Tomasz Slota 2009-03-31 09:39:05 UTC
*** Issue 161197 has been marked as a duplicate of this issue. ***
Comment 7 urkman 2009-04-02 08:13:45 UTC
Perhaps, this is related:
The intend problem seems to bi fixed, but now I get a lot of exceptions with cc on php functions and sometimes with cc
on my classes as well.

A simple:
is_nume ( now ctrl+space ) gives an exception.

And when I change a property name of a class and try to access it using "this->" I get the old property name.

This all works without problems, before this bug was fixed.

I allready created a new userdir, but this did not help.
Comment 8 Tomasz Slota 2009-04-02 09:20:40 UTC
urkman: the issue you described does not seem to be related in any way. Please kindly file a new issue and attach the stack traces (preferably complete log 
file). I cannot reproduce similar problem with the current build, there must be some extra pre-conditions involved.
Comment 9 Tomasz Slota 2009-04-09 15:40:11 UTC
*** Issue 161245 has been marked as a duplicate of this issue. ***
Comment 10 Filip Zamboj 2009-04-20 17:32:08 UTC
verified on 
Product Version: NetBeans IDE 6.7 Beta (Build 200904192254)
Java: 1.6.0_13; Java HotSpot(TM) 64-Bit Server VM 11.3-b02
Comment 11 Filip Zamboj 2009-04-20 17:32:10 UTC
verified on 
Product Version: NetBeans IDE 6.7 Beta (Build 200904192254)
Java: 1.6.0_13; Java HotSpot(TM) 64-Bit Server VM 11.3-b02