Lib source code is shown as "not on a build path" resulting in invisible breakpoint bullet [message #499188] |
Fri, 20 November 2009 05:52  |
Eclipse User |
|
|
|
Example is a struts-project with xwork-2.1.2.jar, which sits in project\WEB-INF\lib. It has a source attachment to xwork-2.1.2/src/java, which sits elsewhere in the filesystem outside eclipse. Lib icon ist correct "Jar file WITH attached source".
Now running Apache from within Eclipse into a bug, e.g.
at ....
at ognl.Ognl.setValue(Ognl.java:476)
at ...
shown in the IDEs console view of the server.
In Eclipse Ganymed, I could easily click on that link at the end of the line and I would receive a source view of Ognl.java in the "compilation unit"-mode. That is, the tab icon is a solid J and I'm able to put AND SEE breakpoints by clicking on the left side bar of the source window.
In Eclipse Galileo, it's slightly different: I can click on the link, the source view opens with the correct source, but in "Java file which is not on a build path"-mode. That is a tab icon with an outlined J. I may click on the left side bar, and a breakpoint will be added to the separate breakpoints view, indicating the breakpoint was set. Unfortunately it is not shown on the left side bar of the source window. You have to compare the line number shown in the breakpoints view with the line numbner in the source view, which is very annoying.
The other difference between both Eclipses is, that the breadcrump of Ganymed starts with project>jar>package... as usual. In Galileo it only shows the last triangle with the method children and nothing preceeding.
If in Galileo I go into the project's Libraries folder, clicking down to Ongl.java, opening it by doubleclicking, then it opens in "compilation unit"-mode, serving breakpoint visibility correct.
I've compared every setting between both Eclipses, but I cannot figure out, why Ganymed opens "on the build path" whereas Galileo opens "not on the build path" when clicking on the link of a console stack trace. I suppose, that is the reason for the breakpoint bullet not showing in the side bar. I suppose later is a follow up error of the build path thing.
Any hints appreciated
|
|
|
|
Re: Lib source code is shown as "not on a build path" resulting in invisible breakpoint bu [message #504771 is a reply to message #500196] |
Tue, 22 December 2009 05:08  |
Eclipse User |
|
|
|
Mauro Molinari wrote on Wed, 25 November 2009 05:33 |
Maybe you have your source files both as attached to a library and in another project of your workspace? If so, close the other project, so that Eclipse only knows about your source files thanks to the fact that they are attached to that library.
When you click on a source link (e.g. in the console view) Eclipse is
not always smart enough to understand which copy of a file it should open if you have that file in more than one open project.
|
Thanks for the help, but that's not the problem. I've got only three projects in my new Galileo-workspace, only one of it using struts. I doublechecked the hint, but multiple source attachments do not seem to be the cause.
Other hints?
|
|
|
Powered by
FUDForum. Page generated in 0.04048 seconds