oni
oni copied to clipboard
Java autocompletion popup displaying wrong suggestion
Oni Version: 0.3.9 Operating System:Mac Mojave
Issue: Java Autocomplete popup displaying wrong suggestion
Expected behavior: the Java autocomplete popup display the list of suggested functions based on user type
Actual behavior: all suggested functions are the same
Screenshot of the problem - the suggestion is wrong with all same functions:
Steps to reproduce: follow the instruction from: official document
Here is my config.js - the relevant part is "language.java.languageServer":
"use strict";
exports.__esModule = true;
exports.activate = function (oni) {
console.log("config activated");
// Input
//
// Add input bindings here:
//
oni.input.bind("<c-enter>", function () { return console.log("Control+Enter was pressed"); });
//
// Or remove the default bindings here by uncommenting the below line:
//
// oni.input.unbind("<c-p>")
};
exports.deactivate = function (oni) {
console.log("config deactivated");
};
exports.configuration = {
//add custom config here, such as
"ui.colorscheme": "onedark",
// UI customizations
"ui.animations.enabled": true,
"ui.fontSmoothing": "auto",
"language.java.languageServer.command": "/Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home/bin/java",
"language.java.languageServer.arguments": [
"-Declipse.application=org.eclipse.jdt.ls.core.id1",
"-Dosgi.bundles.defaultStartLevel=4",
"-Declipse.product=org.eclipse.jdt.ls.core.product",
"-Dlog.level=NONE",
"-noverify",
"-Xmx1G",
"-jar",
"/Users/carterchen/DevTools/jdt-language-server-latest/plugins/org.eclipse.equinox.launcher_1.5.0.v20180119-0753.jar",
"-configuration",
"/Users/carterchen/DevTools/jdt-language-server-latest/config_mac",
"-data"
],
"language.java.languageServer.rootFiles": ["pom.xml"]
};
Best
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.