Skip to content
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

e722: Missing comma in Dictionary #51

Closed
SteveCharleston opened this issue Aug 24, 2015 · 16 comments
Closed

e722: Missing comma in Dictionary #51

SteveCharleston opened this issue Aug 24, 2015 · 16 comments

Comments

@SteveCharleston
Copy link

Hi, when trying complete an object of aa Class I have written I get the following error:

Error detected while processing function javacomplete#Complete..<SNR>210_CompleteAfterDot..<SNR>210_DoGetClassInfo..<SNR>210_FetchClassInfo:                                                                                                 
line    7:                                                                                                                                                                                                                                   
E722: Missing comma in Dictionary: t have to care about

The class which triggers the error is this one:
https://github.com/SteveCharleston/RiG/blob/master/app/src/main/java/rigAPI/RigDBAccess.java

My vimrc can be found here:
https://github.com/SteveCharleston/dotfiles/blob/master/.vimrc

@wsdjeg
Copy link
Contributor

wsdjeg commented Aug 24, 2015

you need add the classes dir into g:JavaComplete_LibsPath,
and add your src dir into g:JavaComplete_SourcesPath

@SteveCharleston
Copy link
Author

I added it with
let g:JavaComplete_SourcesPath="/home/steven/git/RiG/app/src"
but had no success. I've also tried different other variations like
let g:JavaComplete_SourcesPath="/home/steven/git/RiG/app/src/main/java/rigAPI"
or

let g:JavaComplete_SourcesPath="/home/steven/git/RiG/app/src/main/java/rigAPI:/home/steven/git/RiG/app/src/main/java/de/charlestons_inn/rig"

to directly supply the dirs with the containing java source files but had no success.

@SteveCharleston
Copy link
Author

However, it seems to be related to the parsing of javadocs. If I change all the words like "don't" or "isn't" in "dont" and "isnt" the error disappears.

@wsdjeg
Copy link
Contributor

wsdjeg commented Aug 24, 2015

the same Error i have got !
#50
2015-08-21 22 00 36

@artur-shaik
Copy link
Owner

Sorry, couldn't find out. What exactly object you are trying to complete? In what line number?

@wsdjeg
Copy link
Contributor

wsdjeg commented Aug 25, 2015

@wsdjeg
Copy link
Contributor

wsdjeg commented Aug 25, 2015

"===============> javaComplete2 相关设置 映射
autocmd FileType java set omnifunc=javacomplete#Complete
autocmd FileType jsp set omnifunc=javacomplete#Complete
nmap <F4> :call javacomplete#AddImport()<cr>
imap <F4> <Esc>:call javacomplete#AddImport()<cr>
let g:JavaComplete_UseFQN = 1
"++++++> app1 补全配置
"let g:JavaComplete_LibsPath = '/home/wsdjeg/wsdjeg.github.io/java/app1/WEB-INF/classes:/home/wsdjeg/wsdjeg.github.io/lib/'
"let g:JavaComplete_SourcesPath = '/home/wsdjeg/wsdjeg.github.io/java/app1/'
"++++++> Invoicing_System 补全配置
let g:JavaComplete_LibsPath = '/home/wsdjeg/wsdjeg.github.io/java/invoicingsystem/WEB-INF/classes:/home/wsdjeg/wsdjeg.github.io/lib/'
let g:JavaComplete_SourcesPath = '/home/wsdjeg/wsdjeg.github.io/java/invoicingsystem/'

@artur-shaik
Copy link
Owner

@wsdjeg, it's looks like you have little bit another issue, I'm working on it.
@SteveCharleston can you answer?

@wsdjeg
Copy link
Contributor

wsdjeg commented Aug 26, 2015

it causes by javadoc!
when i delete

        /**
     * TestJCimpl's testJC
     */

in
https://github.com/wsdjeg/wsdjeg.github.io/blob/master/java/invoicingsystem/WEB-INF/src/com/wsdjeg/impl/TestJCimpl.java
then the error Disappears!

@artur-shaik
Copy link
Owner

artur-shaik commented Aug 26, 2015 via email

@wsdjeg
Copy link
Contributor

wsdjeg commented Aug 26, 2015

hope to be solve

#47
#45

@artur-shaik
Copy link
Owner

Try with last commit, please.

@wsdjeg
Copy link
Contributor

wsdjeg commented Aug 26, 2015

did you remove the javadoc message from the complete manu?
last commit i will get the manu like:
test() m / ** message */ void test();

then only:
test() m void test();

@artur-shaik
Copy link
Owner

Yes, I removed it, because it could be too much long. For javadoc, I think, we need to show it in another buffer, like YCM do it.

@wsdjeg
Copy link
Contributor

wsdjeg commented Aug 26, 2015

yeah, usually it is too long and,i can not see the return type in the menu

@artur-shaik
Copy link
Owner

@SteveCharleston any updates?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants