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

Importing missing imports doesn't take inner classes into account #366

Closed
ym1234 opened this issue Jan 31, 2018 · 3 comments
Closed

Importing missing imports doesn't take inner classes into account #366

ym1234 opened this issue Jan 31, 2018 · 3 comments
Labels
bug

Comments

@ym1234
Copy link

@ym1234 ym1234 commented Jan 31, 2018

For example, Say I have Outer class called Computer and it has a inner class called Memory, JCimportsAddMissing will try to find a class called Memory and import it.

Actual behavior (Required!)

Doesn't take inner classes into account

Expected behavior (Required!)

Should take inner classes into account

The steps to reproduce actual behavior (Required!)

  1. Create a class
  2. Create an inner class
  3. try to import missing imports

Environment (Required!)

  • OS: Arch Linux
  • Vim version:
  • Neovim version: 0.2.2

Q&A

  • Yes, I tried minimal .vimrc configuration.
  • 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_JavaviDebug to 1, than set g:JavaComplete_JavaviLogfileDirectory, and put here server logs, too.
@artur-shaik

This comment has been minimized.

Copy link
Owner

@artur-shaik artur-shaik commented Jan 31, 2018

As I remember it's old issue related to inability of javaparser to fetch inner classes from source. We should try to check new versions of javaparser. I bet they fixed it.

@artur-shaik artur-shaik added the bug label Jan 31, 2018
@ym1234

This comment has been minimized.

Copy link
Author

@ym1234 ym1234 commented Jan 31, 2018

How could I test if the newer version of javaparser fixes problem?

@artur-shaik

This comment has been minimized.

Copy link
Owner

@artur-shaik artur-shaik commented Jan 31, 2018

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.