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 201043 - Manual source attaching does not work
Summary: Manual source attaching does not work
Status: RESOLVED FIXED
Alias: None
Product: apisupport
Classification: Unclassified
Component: Project (show other bugs)
Version: 7.1
Hardware: PC Linux
: P3 normal (vote)
Assignee: Jesse Glick
URL:
Keywords:
Depends on:
Blocks: 200698
  Show dependency tree
 
Reported: 2011-08-17 15:15 UTC by Jesse Glick
Modified: 2011-11-17 07:30 UTC (History)
0 users

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 Jesse Glick 2011-08-17 15:15:02 UTC
20110817-2e31c03a75ea. From maven/src I click on a ref to org.apache.maven.project.MavenProject and get a class skeleton as expected. I click Attach Sources and am prompted for maven-core-3.0.3.jar as expected. I click Browse and select .../maven3/maven-core/src/main/java and click OK. The dialog closes but nothing else happens, and clicking on a ref to MavenProject again fails to show sources.

$userdir/config/Preferences/org/netbeans/modules/java/j2seplatform/Sources.properties does contain

jar\:file\:.../nbbuild/netbeans/java/maven/lib/maven-core-3.0.3.jar!/-0=file:.../maven3/maven-core/src/main/java/
Comment 1 Jesse Glick 2011-08-24 21:59:31 UTC
Still broken for me.
Comment 2 Jesse Glick 2011-09-28 15:56:16 UTC
Works in a fresh test userdir, just not in my regular userdir. Not sure what the difference is.
Comment 3 Tomas Zezula 2011-11-09 16:49:20 UTC
This happens when the attached source root has no source for given disassembled class.
Most often it happened for sources packed in the zip file having more roots, it was fixed by adding all source roots in zip rather than the first one (jet-main 3553fd79973c).
Comment 4 Jesse Glick 2011-11-15 19:39:12 UTC
Still reproducible in 20111114-bfd233b7802b. Again Sources.properties lists the entry (a folder not a ZIP BTW), and MavenProject.java is in the specified location. It seems that org.netbeans.modules.apisupport.project.queries.GlobalSourceForBinaryImpl is shadowing the result with an empty one.
Comment 5 Jesse Glick 2011-11-15 20:03:17 UTC
core-main #a5a31bd1f1b2
Comment 6 Tomas Zezula 2011-11-16 16:17:18 UTC
Thanks,
I've always tried to reproduce it with a test IDE (no API support enabled).
Comment 7 Quality Engineering 2011-11-17 07:30:36 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/a5a31bd1f1b2
User: Jesse Glick <jglick@netbeans.org>
Log: #201043: Manual source attaching does not work