Closed wsdjeg closed 8 years ago
hi @artur-shaik @DonnieWest @mattn i think i have finshed the completion frame after import and import static,what do you think,anything need to be added?
when and where do add all classes in classpath to a list ,i am reading the src of the plugin,is the list named g:JavaComplete_Cache?
Made some changes, can you play with it?
thank you ,i just get home ,let me have a try!
the third one should be Testi instead of nestedclass itself
What is Testi
? Can you show your Test
class content?
Ok, can you play with it, one more time?
great man!!! let me have a test
greate it works well!
after import static in works well,but after import some thing diff
here only hava nostatic innerclass,pleass add static class
i have find Testi can be auto add ,thank you
Aaand here is it :smile:
how fast! let me try
wow ,great!!!!works well
the input will be remember,please clean it after import
@wsdjeg yeah, this is another one issue.
if the very strange,i can complete in import static,but can not complete in method!
here is test R.java
Can you try, again?
thank you very much ,greate it works very well with R.java.i think it must be known by @DonnieWest
Having some issues here unfortunately - @wsdjeg how are you adding the R.java file to javacomplete?
I've tried a few things and it's not properly completing the file, but I'm guessing it's with my configuration
no need to set anything,it is jc2 feature ,auto add maven output dir into classpath,it contains com.wsdjeg.helloworld.R.class.i do not add R.java.because R.java and R.class were created at same time,and will not be edite mannuly. for example my maven outputdir is /path/to/project/target/classes R.class is here path/to/project/target/classes/com/wsdjeg/helloworld/R.class my
also you can add it to g:JavaComplete_LibsPath,it also works
there is no need care about R.java. just R.class willbe ok
you can have a look at my last PR for pom
Odd - on Gradle it's not completing even when R.class is added to the g:JavaComplete_LibsPath
I'll have to play around with it some more.
strange why?just add to classpath use complete path ,do not just use relative path
can use show me the out put of echo g:JavaComplete_LibsPath when you open a java file
in maven project aar package works well.because maven will unpackage it and auto add to classpath
for example test.aar.classes.jar wilk be unpackage into target/generate-unpckaged/test.jar and add to buildclasspath
@DonnieWest, didn't you forget to recompile javavi lib?
Sorry, I can't understand what you mean.
sorry it my fault, i have reset my fork
strange completion
@wsdjeg you mean class
?
no after id
should be compete edite
there is no error in import statement and import static
![Uploading 2015-11-27 22-08-27屏幕截图.png…]()
Now should work right.
wow ^_^ works well,need wo close this issue? it is too long
You decide, you are the tester. :smile:
thank you,i will do some test,and report it!
just same as innerclass
Can you create separate issues, please? And this can be closed as I see.
ok i will open an new issue
maybe it is better split these two features,
import
andimport static
,because there no need to do something forauto import static
,because IDE has no feature like this!completion after
import static
,end of this statement must be static!here is my example class which has been compiled with no error! in this class there are two error line has been annotated.
in another class these should be complete:
completion after import ,end of this statement must be a class or interface!
same example as above: after import these should be complete:
conclusion
import
statement should be able useauto import
these is diff fromimport static