artur-shaik / vim-javacomplete2

DEPRECATED in favor of jc.nvim
Vim License
974 stars 83 forks source link

Running :JCgenerateAbstractMethods gives an error #420

Closed Tyler-Roche closed 3 years ago

Tyler-Roche commented 5 years ago

Actual behavior (Required!)

When I run :JCgenerateAbstractMethods, vim returns

Error detected while processing function javacomplete#generators#AbstractDeclaration[9]..javacomplete#collector#DoGetClassInfo: line 35: E731: using Dictionary as a String E15: Invalid expression: fqn. '$'. a:class line 90: E121: Undefined variable: extends E116: Invalid arguments for function s:CollectFQNs E15: Invalid expression: s:CollectFQNs(typename, packagename, filekey, extends) line 91: E121: Undefined variable: fqns E15: Invalid expression: fqns Error detected while processing function javacomplete#generators#AbstractDeclaration[10]..javacomplete#complete#complete#SearchMember: line 3: E716: Key not present in Dictionary: name) E116: Invalid arguments for function javacomplete#util#GetClassPackage E15: Invalid expression: javacomplete#complete#complete#GetPackageName() == javacomplete#util#GetClassPackage(a:ci.name) Press ENTER or type command to continue

Expected behavior (Required!)

I expect that the methods needed should be generated, for example, a java lsp tells me the following error 'javac: BigChest is not abstract and does not override abstract method createNewTileEntity(World,int) in ITileEntityProvider (E)'

The steps to reproduce actual behavior (Required!)

  1. ... Have a class that does not have all the methods required
  2. ... Run :JCgenerateAbstractMethods
  3. ... Get the above error

Environment (Required!)

Q&A

Screenshot (Optional)

Screenshot 2019-04-18 at 13 51 18

artur-shaik commented 5 years ago

Hello. Thanks for report. Can you create minimal project with this packages, so I can reproduce issue and catch this bug?