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.
Summary: | Code Completion not working for sources outside project. | ||
---|---|---|---|
Product: | java | Reporter: | _ alexlamsl <alexlamsl> |
Component: | Source | Assignee: | Jan Lahoda <jlahoda> |
Status: | RESOLVED FIXED | ||
Severity: | blocker | CC: | hanasaki, pnejedly |
Priority: | P2 | Keywords: | RELNOTE |
Version: | 5.x | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
_ alexlamsl
2006-01-28 09:56:40 UTC
don't know if this matters but my javac outputs English (well, whose don't?) and my friend's in Chinese (?!) That's generic problem of nonproject java sources. If you open an ad-hoc java source, code completion should ude default platform for completion, but it seems it fails to in 5.0 release (it used to work in 50dev builds). Reassigning. The org.netbeans.modules.java.j2seplatform.platformdefinition.DefaultClassPathProvider returns valid non empty classpaths for ClassPath.SOURCE, ClassPath.BOOT and valid empty classpath for ClassPath.COMPILE, but the code completion shows nothing. Editor guys, do you set correct classpath for transaction? The JMIUtils.beginTrans() only contains JavaModel.setClassPath(fileObject); Not sure what else should be there regarding classpath. Reassigning back to java - please possibly update the editor's code if necessary regarding this. Thanks. I think this is the same as what I am seeing in: NetBeans IDE Dev (Build 200701041900) 1.6.0; Java HotSpot(TM) Client VM 1.6.0-b105 Linux version 2.6.19.1 running on i386 en_US (nb); UTF-8 project1 uses project2. smart completion of classes used from project2, in project1, doesn't work. Also, the error checking (right side of the editor window) and the red/green box showing erors or not, shows errors for classes from project1, used the right way. Builds/Runs fine. Fixed? Code completion on a file outside the project works for me in a current build (without project metadata the result is not optimal, though). hanasaki, your problem seems to be different, could you please file a new issue with detailed steps to reproduce? Thanks. |