artur-shaik / vim-javacomplete2

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

Auto completion is not working #432

Closed ak-seyam closed 4 years ago

ak-seyam commented 4 years ago

Actual behavior

auto completion is not working

Expected behavior

completion feature to work

The steps to reproduce actual behavior

  1. using pathogen: cd ~/.vim/bundle/ git clone https://github.com/airblade/vim-rooter.git cd ~/.vim/bundle git clone https://github.com/artur-shaik/vim-javacomplete2.git
  2. add the required config : in config section
    " javacomplete2 config
    autocmd FileType java setlocal omnifunc=javacomplete#Complete
    nmap <F4> <Plug>(JavaComplete-Imports-AddSmart)
    imap <F4> <Plug>(JavaComplete-Imports-AddSmart)
    nmap <F5> <Plug>(JavaComplete-Imports-Add)
    imap <F5> <Plug>(JavaComplete-Imports-Add)
    nmap <F6> <Plug>(JavaComplete-Imports-AddMissing)
    imap <F6> <Plug>(JavaComplete-Imports-AddMissing)
    nmap <F7> <Plug>(JavaComplete-Imports-RemoveUnused)
    imap <F7> <Plug>(JavaComplete-Imports-RemoveUnused)

Environment

Q&A

did the minimal .vimrc [check] I have enabled logs with JCdebugEnableLogs and the output ofJCdebugGetLogContent is empty I set g:JavaComplete_JavaviLogLevel to 'debug', then set g:JavaComplete_JavaviLogDirectory, and put here server logs, too.

copied from a previous issue
let g:JavaComplete_JavaviDebug = 1 [that was set blindly to be honest] 
let g:JavaComplete_JavaviLogLevel = "debug"
let g:JavaComplete_JavaviLogfileDirectory = "~/"

Screenshot (Optional)

screenshot

Additional Notes:

artur-shaik commented 4 years ago

Have you tried to press <C-x><C-o> after dot?

On 12-29 (00:37), Abdullah khaled wrote:

Actual behavior (Required!)

auto completion is not working

Expected behavior (Required!)

completion feature to work

The steps to reproduce actual behavior (Required!)

 1. using pathogen: cd ~/.vim/bundle/ git clone [1]https://github.com/airblade/vim-rooter.git cd ~/.vim/bundle git clone [2]https://github.com/artur-shaik/vim-javacomplete2.git  2. add the required config : in config section

" javacomplete2 config autocmd FileType java setlocal omnifunc=javacomplete#Complete nmap (JavaComplete-Imports-AddSmart) imap (JavaComplete-Imports-AddSmart) nmap (JavaComplete-Imports-Add) imap (JavaComplete-Imports-Add) nmap (JavaComplete-Imports-AddMissing) imap (JavaComplete-Imports-AddMissing) nmap (JavaComplete-Imports-RemoveUnused) imap (JavaComplete-Imports-RemoveUnused)

Environment (Required!)

 • OS: ManjaroOS 18.1.2
 • Vim version: Vi IMproved 8.1
 • Neovim version: N/A

Q&A

did the minimal .vimrc [check] I have enabled logs with JCdebugEnableLogs and the output ofJCdebugGetLogContent is empty I set g:JavaComplete_JavaviLogLevel to 'debug', then set g:JavaComplete_JavaviLogDirectory, and put here server logs, too.

copied from a previous issue let g:JavaComplete_JavaviDebug = 1 let g:JavaComplete_JavaviLogLevel = "debug" let g:JavaComplete_JavaviLogfileDirectory = "~/"

Screenshot (Optional)

[3]screenshot

— You are receiving this because you are subscribed to this thread. Reply to this email directly, [4]view it on GitHub, or [5]unsubscribe.

References

Visible links

  1. https://github.com/airblade/vim-rooter.git
  2. https://github.com/artur-shaik/vim-javacomplete2.git
  3. https://camo.githubusercontent.com/bab1fee2d46f3d010f1cbb2628f12dd2775ee689/68747470733a2f2f692e6962622e636f2f505948323378682f53637265656e73686f742d323031392d31322d32392d31302d30332d32382e706e67
  4. https://github.com/artur-shaik/vim-javacomplete2/issues/432?email_source=notifications&email_token=ABFDHO2P5IG2OXM5IRP2IELQ3BOUDA5CNFSM4KAZCXO2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IDCV7MA
  5. https://github.com/notifications/unsubscribe-auth/ABFDHO5VJGLFQ3Y4G2EAPMDQ3BOUDANCNFSM4KAZCXOQ

-- Best regards, Artur Shaikhullin

ak-seyam commented 4 years ago

oh my bad!, it worked thank you