Can't get java code completion
Oni Version: 0.3.6 Neovim Version (Linux only): v0.2.2 Operating System: Ubuntu 16.04 LTS
Issue:
Basically I can't get code completion when editing java source code.
I follow the doc - https://github.com/onivim/oni/wiki/Language-Support#java and https://github.com/onivim/oni/issues/504 for installing oni with java support. Although I can launch the jdt process in gnone-terminal by
java -Declipse.application=org.eclse.jdt.ls.core.id1 -Dosgi.bundles.defaultStartLevel=4 -Declipse.product=org.eclipse.jdt.ls.core.product -Dlog.protocol=true -Dlog.level=ALL -noverify -Xmx1G -jar ./plugins/org.eclipse.equinox.launcher_1.5.100.v20180611-1436.jar -configuration ./config_linux/ -data $1
But opening oni editor, saving a java class e.g. Test.java, and then pressing dot after System key code. There is no auto completion code poped up. What are the right steps to integrate java with oni? Test.java code looks like
public class Test {
public static void main(String[] args) {
System. //<- no method named 'out' gets poped up
}
}
Expected behavior: After typing System, pressing . it should pop up out for user to chose (methods).
Actual behavior: After typing System and pressing ., nothing happened.
Steps to reproduce:
- Open gnome-terminal or any terrminal, launching jdt process with following command
java -Declipse.application=org.eclse.jdt.ls.core.id1 -Dosgi.bundles.defaultStartLevel=4 -Declipse.product=org.eclipse.jdt.ls.core.product -Dlog.protocol=true -Dlog.level=ALL -noverify -Xmx1G -jar ./plugins/org.eclipse.equinox.launcher_1.5.100.v20180611-1436.jar -configuration ./config_linux/ -data $1
-
Open Oni editor a. Click Oni > Save as. (Save file as e.g. Test.java)
-
In the Oni editor, type following code, and at the end of System press .
public class Test { public static void main(String[] args) { System. //<- no method named 'out' gets popped up } }
Hello and welcome to the Oni repository! Thanks for opening your first issue here. To help us out, please make sure to include as much detail as possible - including screenshots and logs, if possible.
Can you open up the console and report the output? Ctrl+Shift+P -> Open Developer Tools