Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Static members not listed when autocompleting from within same class #414

Closed
Qix- opened this issue Jan 2, 2019 · 3 comments
Closed

Static members not listed when autocompleting from within same class #414

Qix- opened this issue Jan 2, 2019 · 3 comments

Comments

@Qix-
Copy link

Qix- commented Jan 2, 2019

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.
@Qix-
Copy link
Author

Qix- commented Jan 2, 2019

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.

@Qix- Qix- changed the title Private static members not listed when autocompleting from within same class Static members not listed when autocompleting from within same class Jan 2, 2019
@Qix-
Copy link
Author

Qix- commented Jan 3, 2019

Hey, thanks @artur-shaik ❤️

@artur-shaik
Copy link
Owner

artur-shaik commented Jan 3, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants