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.
From CR 6539078: In the Sun Studio 12 IDE, when you type in Fortran source code, there seems to be no automatic indenting of the source code to reflect either DO-loop or IF-block structure. This appears to be a functional regression from the Sun Studio 11 IDE, whose behavior I will now describe. In Studio 11, if I choose "File" -> "New..." and then "Templates" -> "Fortran Files" -> "Fortran File (Free Format)" I get |PRINT*,"Hello World" |END (The vertical bars are there simply to indicate the left edge of the window.) I can then input the following text between those two, initial statements: |do i = 1, 10 |if ( i < 5 ) then |write(6,*) "mistake 1 |else |write(6,*) mistake 2" |end if |end do After each carriage return, the newly entered line is automatically indented to reflect DO and IF block structures. Indeed, with the "end if" statement, the line is indented as soon as the "end if" is entered (that is, even before the carriage return is entered). The final text looks like this: |PRINT*,"Hello World" |do i = 1, 10 | if ( i < 5 ) then | write(6,*) "mistake 1 | else | write(6,*) mistake 2" | end if |end do |END
fixed, change set : http://hg.netbeans.org/main/rev/5bef9294692b
See also escalation 1-24453895 / CR# 6737403
Integrated into 'main-golden', available in build *200808220201* on http://bits.netbeans.org/dev/nightly/ Changeset: http://hg.netbeans.org/main/rev/5bef9294692b User: Alexander Simon <alexvsimon@netbeans.org> Log: fixed: IZ#136699:functional regression: no more Fortran autoindenting
Change set: http://hg.netbeans.org/main/rev/9bc9805c4b86 make inner class privet (remove API changes)
Integrated into 'main-golden', available in build *200808251401* on http://bits.netbeans.org/dev/nightly/ Changeset: http://hg.netbeans.org/main/rev/9bc9805c4b86 User: Alexander Simon <alexvsimon@netbeans.org> Log: fixed: IZ#136699:functional regression: no more Fortran autoindenting - make inner class privet (remove API changes)
The fix has been backported to release551_fixes branch: Checking in FFormatSupport.java; /cvs/cnd/core/src/org/netbeans/modules/cnd/editor/fortran/Attic/FFormatSupport.java,v <-- FFormatSupport.java new revision: 1.1.2.3.6.1; previous revision: 1.1.2.3 done Checking in FFormatter.java; /cvs/cnd/core/src/org/netbeans/modules/cnd/editor/fortran/Attic/FFormatter.java,v <-- FFormatter.java new revision: 1.1.2.3.6.1; previous revision: 1.1.2.3 done Checking in FKit.java; /cvs/cnd/core/src/org/netbeans/modules/cnd/editor/fortran/Attic/FKit.java,v <-- FKit.java new revision: 1.1.2.2.6.1; previous revision: 1.1.2.2 done
This issue is part of 61patch4. Could QE verified the fix in the trunk by 25-Sep-08?
Into patch should be added fixes from issue 147689 and issue 147688 also. Because if you will switch on Fortran autoindenting, then these 2 new problems appear. In NB6.5 trunk Fortran autoindenting works correctly.
verified in NB6.5 build 20080924
verified
The fix has been ported into the release61_fixes repository. http://hg.netbeans.org/release61_fixes/rev/0ce771bf3f24
verified in patch4
The fix for 147688 , 147689, 136699 and 145858 have been backported to release601_fixes branch. For details, please refer to: ------- Additional comments from krajeswaran Wed Oct 8 17:00:03 +0000 2008 ------- in issue 147688
verified in 5.5.1 with manually installed nbms from PromoG1Patch4