** Description changed: Binary package hint: netbeans I tried to import a Sun Java package (java.io.Serializable) to my project, but when I press Ctrl+Space shortcut to autocomplete the statement his get only autocomplete to active project packages. If I enter the package name manually, it works. My environment variables are: JAVA_HOME="/usr/lib/jvm/java-6-sun/jre" export JAVA_HOME PATH="$JAVA_HOME/bin:$PATH" CLASSPATH="$JAVA_HOME/lib" export PATH CLASSPATH My Java Version: java version "1.6.0_13" Java(TM) SE Runtime Environment (build 1.6.0_13-b03) Java HotSpot(TM) Client VM (build 11.3-b02, mixed mode, sharing) This is a critical bug. Fix imports and code completion are affected. So this issue breaks usage of NB 6.5 packages in Jaunty. Developers have to remove NB packages and install the IDE from the netbeans.org site. The bug is caused by incompatibility between lucene-core 2.4.0 and netbeans (which is adjusted to use lucene-core 2.3.2). It has been addressed in development version by adding a patch "96-fix-lucene.patch" which corrects "java.source/src/org/netbeans/modules/java/source/usages/LuceneIndex.java" file in netbeans upstream. The patch is small. It updates close() method in order to avoid AlreadyClosedException which is thrown by lucene-core 2.4.0 and which breaks the things. Source package netbeans 6.5-0ubutu2 has been modified in karmic, so netbeans 6.5-0ubuntu3 contains the fix now. netbeans_6.5-0ubuntu3.debdiff for Jaunty is attached. TEST CASE: 1. install netbeans: sudo apt-get install netbeans=6.5-0ubuntu2 and run netbeans IDE (Applications -> Programming -> NetBeans IDE 6.5). Note: if you downgrade netbeans from 6.5-0ubuntu3 you should also remove your netbeans user dir (rm -rf ~/.netbeans/6.5) - 2. Create a Java Application project (Menu File -> New Project ). - 3. Type 'import ' and press Ctrl-Space, make sure you see in an autocomplete suggestion box only your project packages. + 2. Create a Java Application project (Menu File -> New Project -> Next -> Finish ). + 3. Type 'import ' right under "package < package name>;" line and press Ctrl-Space, make sure you see only your project packages in an autocomplete suggestion box. Expected behavior: to see an autocomplete suggestion box with all java packages (javax, java, org, etc...) This fix is absolutely safe and will not cause any regression.
-- Netbeans IDE 6.5 don't autocomplete import statement https://bugs.launchpad.net/bugs/353080 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs