Closed hiberabyss closed 5 years ago
When you open java file, what is content of g:JavaComplete_LibsPath
?
Hi @artur-shaik , the content is same as what I set:
/Users/hbliu/.m2/repository/org/apache/hadoop/hadoop-common/2.2.0/hadoop-common-2.2.0.jar
So, is it working after you compiled javavi
by hand?
Hi @artur-shaik , still not work after compiling javavi
.
Is server up? Can you run command :JCserverShowPID
, if server is running it will show you process id.
The server is up. Following is the output of command JCserverShowPID
:
Javavi pid: 64020
.
Hm, what about vim side logs?
JCdebugEnableLogs
;JCdebugGetLogContent
.Following is the JCdebugGetLogContent
content:
Lets now see with what arguments server starting up.
Following are the logs:
13.880388 [server] executing python file: /Users/hbliu/.dotfiles/data/vimdata/bundle/vim-javacomplete2/autoload/javavibridge.py
13.885674 [server] server classpath: -cp /Users/hbliu/.dotfiles/data/vimdata/bundle/vim-javacomplete2/libs/javavi/target/classes:/Users/hbliu/.dotfiles/data/vimdata/bundle/vim-javacomplete2/libs/javapars er-core-3.5.20.jar:/Users/hbliu/.dotfiles/data/vimdata/bundle/vim-javacomplete2/libs/javavi_log4j-api.jar:/Users/hbliu/.dotfiles/data/vimdata/bundle/vim-javacomplete2/libs/javavi_log4j-core.jar:/Users/hbl iu/.m2/repository/org/apache/hadoop/hadoop-common/2.2.0/hadoop-common-2.2.0.jar:/Library/Java/JavaVirtualMachines/jdk-10.0.2.jdk/Contents/Home/lib
13.885697 [server] server arguments:-Dlog.directory=/Users/hbliu/.vimcache/java -Ddaemon.port=56260 -Dlog4j.configurationFile=/Users/hbliu/.dotfiles/data/vimdata/bundle/vim-javacomplete2/libs/javavi/targ et/classes/log4j2.xml kg.ash.javavi.Javavi -sources -base /Users/hbliu/.cache/javacomplete2/ -compiler javac
Does this file hadoop-common-2.2.0.jar
exists by this path?
Now we can try to look at server logs:
@artur-shaik , the file hadoop-common-2.2.0.jar
exists and I could open it in Vim. I executed the commands you provided, but there was nothing in the __JCServer_Log_Buffer__
buffer:
Can you try to do it several times. Sometimes it shows empty buffer.
16 ноября 2018 г. 14:57:56 GMT+06:00, Hongbo Liu notifications@github.com пишет:
@artur-shaik , the file
hadoop-common-2.2.0.jar
exists and I could open it in Vim. I executed the commands you provided, but there was nothing in the__JCServer_Log_Buffer__
buffer:-- You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub: https://github.com/artur-shaik/vim-javacomplete2/issues/410#issuecomment-439325792
@artur-shaik Tried several times, still got nothing.
Hm, strange. Try to set it before start in your vimrc:
let g:JavaComplete_JavaviLogLevel = 'trace'
The logs are stored in following file. java.log
Looks ok. What about java's packages? Does it complete java.util.
?
On 11-18 (22:36), Hongbo Liu wrote:
The logs are stored in following file. [1]java.log
— You are receiving this because you were mentioned. Reply to this email directly, [2]view it on GitHub, or [3]mute the thread.
References
Visible links
-- Best regards, Artur Shaikhullin
The java package like java.util
could be completed successfully.
One more thing. Can you clean ~/.cache/javacomplete2
directory, then
run vim, and show server logs.
On 11-19 (01:28), Hongbo Liu wrote:
The java package like java.util could be completed successfully.
— You are receiving this because you were mentioned. Reply to this email directly, [1]view it on GitHub, or [2]mute the thread.
References
Visible links
-- Best regards, Artur Shaikhullin
Do I need to set the log level to trace
?
Yes.
On 11-19 (01:40), Hongbo Liu wrote:
Do I need to set the log level to trace?
— You are receiving this because you were mentioned. Reply to this email directly, [1]view it on GitHub, or [2]mute the thread.
References
Visible links
-- Best regards, Artur Shaikhullin
Here is the logs after clear the cache directory. java_new.log
Hm, I don't see that data was going to be collected again. Did you open java file exactly after you removed ~/.cache/javacomplete2
?
Yes, I open a java file after remove the cache directory.
Is there anything now?
20 ноября 2018 г. 9:01:37 GMT+06:00, Hongbo Liu notifications@github.com пишет:
Yes, I open a java file after remove the cache directory.
-- You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub: https://github.com/artur-shaik/vim-javacomplete2/issues/410#issuecomment-440120349
Still could not complete class from hadoop-common
library.
Sorry, I mean is anything in ~/.cache/javacomplete2
?
@artur-shaik There is file in the cache directory.
Can you attach this file?
On 11-20 (18:40), Hongbo Liu wrote:
[1]@artur-shaik There is file in the cache directory.
[2]image
— You are receiving this because you were mentioned. Reply to this email directly, [3]view it on GitHub, or [4]mute the thread.
References
Visible links
- https://github.com/artur-shaik
- https://user-images.githubusercontent.com/2898670/48815569-daa6f280-ed79-11e8-8a26-ab8d0a66784a.png
- https://github.com/artur-shaik/vim-javacomplete2/issues/410#issuecomment-440507803
- https://github.com/notifications/unsubscribe-auth/AEozu9gRiPT60kqUhY4bdSf7yQIRtu5_ks5uxL0hgaJpZM4YQHtC
-- Best regards, Artur Shaikhullin
Of course:
@hiberabyss thank you, for participation
Actual behavior (Required!)
Even with following setting:
The following imports still could not be autocompleted, could this be supported?