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 188076 - no drop-down list of functions shown in the editor
Summary: no drop-down list of functions shown in the editor
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Navigation (show other bugs)
Version: 6.x
Hardware: All All
: P2 normal (vote)
Assignee: Alexander Simon
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-24 21:29 UTC by sbubin
Modified: 2010-07-03 03:54 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
This is that dropdown menu I do not find in NetBeans 6.9 editor (26.71 KB, image/png)
2010-06-25 16:50 UTC, sbubin
Details
Navigator for your example. (51.49 KB, image/png)
2010-06-28 17:24 UTC, Alexander Simon
Details

Note You need to log in before you can comment on or make changes to this bug.
Description sbubin 2010-06-24 21:29:57 UTC
The editor does not show the drop-down menu which allows to quickly select function names and declarations from the list. I mostly use Fortran but I also noticed the same issue with C++ projects. Apparently it is not related to editing Fortran as such.

This issue is specific to NetBeans version 6.9. I also have versions 6.7.1 and 6.8 installed on the same computer and it does not show up there. I also have NetBeans 6.9 installed on my Windows laptop and there I do not see that drop-down menu. This is a very useful and convenient element of the interface and it is very sad it does not work in version 6.9.
Comment 1 Vitezslav Stejskal 2010-06-25 09:28:22 UTC
(In reply to comment #0)
> This issue is specific to NetBeans version 6.9. I also have versions 6.7.1 and
> 6.8 installed on the same computer and it does not show up there. I also have
> NetBeans 6.9 installed on my Windows laptop and there I do not see that
> drop-down menu. This is a very useful and convenient element of the interface
> and it is very sad it does not work in version 6.9.

Umm, I'm not 100% sure that I know what you are talking about. But I remember that there used to be a drop-down list in the editor toolbar that showed the methods in a java class. This was removed a long time ago and replaced with Navigator (eg. Ctrl+7), which IMO offers much friendlier UI and more features for navigating around your classes. The Navigator is supported by the majority of language plugins available for the IDE (eg. java, C/C++, php, ruby, scala, etc). Is this what you are looking for?
Comment 2 sbubin 2010-06-25 16:50:37 UTC
Created attachment 100423 [details]
This is that dropdown menu I do not find in NetBeans 6.9 editor
Comment 3 sbubin 2010-06-25 16:53:41 UTC
Oh, and the Navigator does not seem to support Fortran at all. It would be so great if it did...
Comment 4 soldatov 2010-06-28 09:17:15 UTC
1) it is removed (it is replaced on Navigator tab)
2) Navigator works (in simple cases)
Comment 5 sbubin 2010-06-28 17:09:38 UTC
(In reply to comment #4)
> 1) it is removed (it is replaced on Navigator tab)
> 2) Navigator works (in simple cases)

I just created a very simple Fortran project (from an existing makefile and a single source file) in NetBeans 6.9. Navigator does not work there at all. It works in the case of a simple C++ project, but not a Fortran project. I have also just verified that the Navigator does not work in older versions of NetBeans (6.7.1 and 6.9) either.

As such, since that useful feature (drop-down menu with a list of functions and variables) has been removed, currently there is no way to navigate through Fortran source files in NetBeans. I think that feature should have been left at least as an optional one so that the user could decide whether he/she needs it or not.
Comment 6 sbubin 2010-06-28 17:16:35 UTC
P.S.

I forgot to mention that I had a really simple Fortran program in that project. It is hard to imagine something simpler than that: just three variables and a function. As I said, the Navigator did not work (it was completely empty).

program main

real(8) x,y,z

x=1.0d0
y=2.0d0
z=mysum(x,y)
write(*,*) 'z=',z

end program main


function mysum(a,b)
real(8) mysum,a,b
mysum=a+b
end function mysum
Comment 7 Alexander Simon 2010-06-28 17:24:59 UTC
Created attachment 100466 [details]
Navigator for your example.
Comment 8 sbubin 2010-06-28 17:38:17 UTC
(In reply to comment #7)
> Created an attachment (id=100466) [details]
> Navigator for your example.

Hm, I don't see it working on my machine (Linux x86_64). I noticed that you are using version 6.9.1 Dev. Perhaps this bug has been fixed just recently. Could there be a difference between Windows and Linux version. Also, is 6.9.1 Dev stable enough for everyday usage?
Comment 9 sbubin 2010-06-28 17:46:27 UTC
Also, to advocate the removed drop-down menu... The navigator (according to the screenshot posted) shows only functions names. That drop-down menu also had a list of variables in it in addition to the list of functions. So it was a little bit more useful, although in terms of convenience having a separate window with the Navigator seems to be more convenient.
Comment 10 soldatov 2010-06-28 18:05:18 UTC
I think I understand problem.
If project is created via "C/C++ Application" wizard, then Navigator works
If project is created via "C/C++ Project with Existing Sources" wizard, then Navigator doesn't work
Comment 11 sbubin 2010-06-28 19:57:49 UTC
(In reply to comment #10)
> I think I understand problem.
> If project is created via "C/C++ Application" wizard, then Navigator works
> If project is created via "C/C++ Project with Existing Sources" wizard, then
> Navigator doesn't work

Same here (I just tried it). This concerns only Fortran projects though. In the case of a C++ project Navigator always works, no matter how the project was created.
Comment 12 Alexander Simon 2010-07-01 08:14:47 UTC
So issue in a project from existing code.
It was fixed, change set:
http://hg.netbeans.org/cnd-main/rev/a6e0fd1cf62a

Drop-down list was removed by design. It was changed on Navigator.
If it is an issue, file separate enchantment (for example: restore Drop-down list)

If you have an issue with navigator content in some cases, please file separate issues with compiled code example and description what is wrong in navigator content.
Comment 13 Quality Engineering 2010-07-03 03:54:08 UTC
Integrated into 'main-golden', will be available in build *201007030001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/a6e0fd1cf62a
User: Alexander Simon <alexvsimon@netbeans.org>
Log: fixed BZ#188071  "find in projects" does not search in fortran files
fixing BZ#188076  no drop-down list of functions shown in the editor