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.
(Using NetBeans 5.0 RC2 on both sides with latest Collab module from Beta UC, but using different builds of Mustang) Code Completion on the remote side does not work with shared files, as if all the core Java classes do not exist. Test case: --------------------------------- Engine.java --------------------------------- package codecanalyst; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; public class Engine { private static final ExecutorService pool = Executors.newSingleThreadExecutor(); private Engine() { } public static EngineTask run(Configuration config) { return null; } } --------------------------------- Configuration.java --------------------------------- package codecanalyst; public class Configuration { } --------------------------------- Steps to reproduce: 1) Ctrl+\ on the dot behind Executors shows "class" as the only option. 2) Removing the import statements then try Fix Imports: - sometimes import a funny Configuration from somewhere within the Java core package (when it imports Executors & ExecutorService correctly) - or else it'll just say all the classes are not found and failed to import any of them
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.