artur-shaik / vim-javacomplete2

DEPRECATED in favor of jc.nvim

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Static members not listed when autocompleting from within same class

Qix- opened this issue · comments

Actual behavior

Static method does not get suggested when inside same class:

image

Expected behavior

Static method is listed.

The steps to reproduce actual behavior (Required!)

  1. Start with this code:
class Foo {
	public static void main(String[] args) {
		System.out.println("Hello from main()");
	}

	private static void sayHi() {
		System.out.println("Hello from sayHi()");
	}
}
  1. Create a new line between 3 and 4
  2. Type Foo. and observe.

Environment (Required!)

  • OS: MacOS 10.14
  • Neovim version: v0.3.0

Q&A

  • Yes, I tried minimal .vimrc configuraion.
  • Yes, I have enabled logs with JCdebugEnableLogs and can put here content of JCdebugGetLogContent command, if you need.
  • Even, if you wish, I can set g:JavaComplete_JavaviLogLevel to 'debug', then set g:JavaComplete_JavaviLogDirectory, and put here server logs, too.

It should be noted that private non-static members work just fine.

EDIT: Seems to do the same thing with public static members as well; the visibility of the static member doesn't seem to matter.

Hey, thanks @artur-shaik ❤️