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

Get some errors when start vim or neovim with java file. #277

Closed
wsdjeg opened this Issue Nov 8, 2016 · 7 comments

Comments

Projects
None yet
4 participants
@wsdjeg
Contributor

wsdjeg commented Nov 8, 2016

error message:


Messages maintainer: Bram Moolenaar <Bram@vim.org>
Error detected while processing function javacomplete#Start[1]..javacomplete#server#Start:
line   40:
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/home/wsdjeg/.cache/vimfiles/repos/github.com/artur-shaik/vim-javacomplete2/autoload/javavibridge.py", line 56, in setupServer
    "a")
IOError: [Errno 2] No such file or directory: '/tmp/javavi_log/javavi_stdout.log'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/home/wsdjeg/.cache/vimfiles/repos/github.com/artur-shaik/vim-javacomplete2/autoload/javavibridge.py", line 56, in setupServer
    "a")
IOError: [Errno 2] No such file or directory: '/tmp/javavi_log/javavi_stdout.log'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/home/wsdjeg/.cache/vimfiles/repos/github.com/artur-shaik/vim-javacomplete2/autoload/javavibridge.py", line 56, in setupServer
    "a")
IOError: [Errno 2] No such file or directory: '/tmp/javavi_log/javavi_stdout.log'
@artur-shaik

This comment has been minimized.

Show comment
Hide comment
@artur-shaik

artur-shaik Nov 8, 2016

Owner

Thanks

Owner

artur-shaik commented Nov 8, 2016

Thanks

@gkapfham

This comment has been minimized.

Show comment
Hide comment
@gkapfham

gkapfham Nov 9, 2016

Hello @artur-shaik! Thank you so much for developing this plugin. I use it on a regular basis when I am programming in Java. Like @wsdjeg, I too recently experience the aforementioned issue. Now after I have updated the plugin, I always see the following error message when I try to save a file:

could not open socket, try again                                    
could not open socket, try again

I can confirm that I see exactly the same error message on both vim and nvim. Currently, I am running nvim and vim in tmux. I have also done several different debugging steps, like removing and reinstalling the plugin, only to receive exactly the same error message when I try to save a file. Finally, it seems as though the plugin is no longer working correctly; features that I used in the past still do not work now.

I can post additional details as needed. If you have time, could you please comment on whether on not these errors are related to the fix mention in this thread? Again, thanks so much for your help!

gkapfham commented Nov 9, 2016

Hello @artur-shaik! Thank you so much for developing this plugin. I use it on a regular basis when I am programming in Java. Like @wsdjeg, I too recently experience the aforementioned issue. Now after I have updated the plugin, I always see the following error message when I try to save a file:

could not open socket, try again                                    
could not open socket, try again

I can confirm that I see exactly the same error message on both vim and nvim. Currently, I am running nvim and vim in tmux. I have also done several different debugging steps, like removing and reinstalling the plugin, only to receive exactly the same error message when I try to save a file. Finally, it seems as though the plugin is no longer working correctly; features that I used in the past still do not work now.

I can post additional details as needed. If you have time, could you please comment on whether on not these errors are related to the fix mention in this thread? Again, thanks so much for your help!

@artur-shaik

This comment has been minimized.

Show comment
Hide comment
@artur-shaik

artur-shaik Nov 10, 2016

Owner

Hi @gkapfham , can you try to run JCserverCompile. But before it, please, make let g:JavaComplete_ShowExternalCommandsOutput = 1. So we can see if server compilation is ok.

If you get any errors, please, post it here.

Owner

artur-shaik commented Nov 10, 2016

Hi @gkapfham , can you try to run JCserverCompile. But before it, please, make let g:JavaComplete_ShowExternalCommandsOutput = 1. So we can see if server compilation is ok.

If you get any errors, please, post it here.

@gkapfham

This comment has been minimized.

Show comment
Hide comment
@gkapfham

gkapfham Nov 11, 2016

Hello @artur-shaik. Thanks again for developing this plugin. I can confirm that when I run the JCServerCompile and then attempt to use the plugin that everything works as I intended. So, it seems that this issue is indeed fully resolved. Thanks again for fixing the code that caused the problem.

gkapfham commented Nov 11, 2016

Hello @artur-shaik. Thanks again for developing this plugin. I can confirm that when I run the JCServerCompile and then attempt to use the plugin that everything works as I intended. So, it seems that this issue is indeed fully resolved. Thanks again for fixing the code that caused the problem.

@DonnieWest

This comment has been minimized.

Show comment
Hide comment
@DonnieWest

DonnieWest Nov 11, 2016

Contributor

@artur-shaik it seems like lots of our issues are the result of the application needing to be compiled when the java code changes. It might be a good idea to version the server and check if the version of the server is the same as when it was last compiled. If it's not, recompile.

Another plugin that does this is fzf.vim

Contributor

DonnieWest commented Nov 11, 2016

@artur-shaik it seems like lots of our issues are the result of the application needing to be compiled when the java code changes. It might be a good idea to version the server and check if the version of the server is the same as when it was last compiled. If it's not, recompile.

Another plugin that does this is fzf.vim

@wsdjeg

This comment has been minimized.

Show comment
Hide comment
@wsdjeg

wsdjeg Nov 11, 2016

Contributor

good idea!

Contributor

wsdjeg commented Nov 11, 2016

good idea!

@artur-shaik

This comment has been minimized.

Show comment
Hide comment
@artur-shaik

artur-shaik Nov 12, 2016

Owner

@DonnieWest good point. I thought about it some time ago, and effectively forgot to implement it.

Owner

artur-shaik commented Nov 12, 2016

@DonnieWest good point. I thought about it some time ago, and effectively forgot to implement it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment