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- 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-

This comment has been minimized.

Copy link
Author

@Qix- 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-

This comment has been minimized.

Copy link
Author

@Qix- Qix- commented Jan 3, 2019

Hey, thanks @artur-shaik ❤️

@artur-shaik

This comment has been minimized.

Copy link
Owner

@artur-shaik artur-shaik commented Jan 3, 2019

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

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.