Netbeans IDE 6.5 don't autocomplete import statement
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Netbeans Core |
Invalid
|
Unknown
|
|||
netbeans (Ubuntu) |
Fix Released
|
Undecided
|
Yulia Novozhilova | ||
Jaunty |
Fix Released
|
Medium
|
Yulia Novozhilova | ||
Karmic |
Fix Released
|
Undecided
|
Yulia Novozhilova |
Bug Description
Binary package hint: netbeans
I tried to import a Sun Java package (java.io.
If I enter the package name manually, it works.
My environment variables are:
JAVA_HOME=
export JAVA_HOME
PATH="$
CLASSPATH=
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-
"java.source/
The patch is small. It updates close() method in order to avoid AlreadyClosedEx
Source package netbeans 6.5-0ubutu2 has been modified in karmic, so netbeans 6.5-0ubuntu3 contains the fix now.
netbeans_
TEST CASE:
1. install netbeans:
sudo apt-get install netbeans=
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 -> 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.
Changed in netbeans: | |
status: | Unknown → Confirmed |
Changed in netbeans: | |
status: | Confirmed → Invalid |
Changed in netbeans (Ubuntu Karmic): | |
assignee: | nobody → Yulia Novozhilova (yulia-novozhilova) |
status: | New → In Progress |
Changed in netbeans (Ubuntu Jaunty): | |
importance: | Undecided → Medium |
status: | New → Triaged |
Changed in netbeans (Ubuntu Jaunty): | |
assignee: | nobody → Yulia Novozhilova (yulia-novozhilova) |
description: | updated |
tags: |
added: verification-done removed: verification-needed |
Sorry not sure what you exactly do ie. what you have in editor at current line when you press Ctrl-Space what you expect and what actually happens. In addition it is better to file such IDE issues directly to Issuezilla and netbeans.org. I have to do it anyway and it is cumbersome to work as bridge between LP and IZ. We solve only packaging specific problems here directly. Thanks.
If you cannot file issue to IZ yourself I can of course do it but I need exact description.