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

missing documentation.value in completion items on Linux #923

Open
Eskibear opened this issue May 15, 2019 · 8 comments
Open

missing documentation.value in completion items on Linux #923

Eskibear opened this issue May 15, 2019 · 8 comments

Comments

@Eskibear
Copy link
Contributor

The issue was first mentioned by @muggell in #842 (comment)

The details are missing in completion items. The issue keeps occurring for @muggell no matter IntelliCode is enabled or disabled.

image1
image2

While I still get the suggestions, I can't get the "Read more.." information. It just loads the top spar showing the "Math" and nothing below it. It's driving me nuts. I really enjoy VSCode on my Windows Desktop, but I can't seem to get it working on my Linux laptop.
So would you mind sharing your solution? Perhaps that might help me out.

Edit: I do on the other hand get suggestions and further information when I use VSCode for .js files.

Environment
  • Operating System: some Linux distribution, see the original issue.
  • Java extension version: @muggell please also provide this.

VSCode version: 1.33.1
IntelliCode extension version: 1.1.6
JDK: openjdk-11 or java-1.11.0-openjdk-amd64

Additional Informations

As @muggell mentioned in #842 (comment)

[Trace - 12:15:40 PM] Received response 'completionItem/resolve - (40)' in 573ms.
Result: {
    "label": "E : double",
    "kind": 21,
    "detail": "Math",
    "documentation": {
        "kind": "markdown"
// ----> HERE THE "value" FIELD IS MISSING
    },
    "sortText": "999999178",
    "insertText": "E",
    "insertTextFormat": 2,
    "textEdit": {
        "range": {
            "start": {
                "line": 9,
                "character": 25
            },
            "end": {
                "line": 9,
                "character": 25
            }
        },
        "newText": "E"
    }
}

@Eskibear
Copy link
Contributor Author

When trying to reproduce it in a clean installed Ubuntu 18.04, I myself also encountered the issue for some times, but only occurs in the first time I trigger completion after vscode-java is activated.

@muggell please follow this issue, @yaohaizh @fbricon might be able to help you out.

@muggell
Copy link

muggell commented May 15, 2019

@Eskibear Thanks for helping out. To provide the last bit of information:
Linux distro: Pop!_OS 19.04
Java Extension Version: 0.7.1

@fbricon
Copy link
Collaborator

fbricon commented May 17, 2019

@muggell see if eclipse-jdtls/eclipse.jdt.ls#1006 (comment) is relevant to you

@muggell
Copy link

muggell commented May 17, 2019

Cheers @fbricon it was actually the same thing that was wrong. It did for some reason look up the wrong path for the documentation/sources. So I think that it might be fixed now.

@ahmedhamdy2121
Copy link

ahmedhamdy2121 commented Jan 7, 2021

Cheers @fbricon it was actually the same thing that was wrong. It did for some reason look up the wrong path for the documentation/sources. So I think that it might be fixed now.

@muggell Can you please elaborate on how to update this path? Knowing that hovering over a function shows the documentation correctly, but it is not showing any on code completion.

@Ortega-Dan
Copy link

If javadoc shows on hovering but not on autocomplete it should be a different reason, because the hover way is actually able to find the autocomplete ...

Im experiencing the same issue on Ubuntu 20.04 + OpenJDK-11
Here:
No Javadoc on typing:
2021-01-18_12-43

But it actualy shows on hover:
image

This is really annoying since you have to type the different options for a method for you to see the documentation.

@Ortega-Dan
Copy link

Ortega-Dan commented Jan 18, 2021

I confirm here that in my case it just got fixed by disabling IntelliCode extension ...
image

it is working now ..
image

And @ahmedhamdy90 already opened an issue MicrosoftDocs/intellicode#263 which was already identified and will be fixed in a future PR 👍

@ahmedhamdy2121
Copy link

@Ortega-Dan Yes, it should be fixed in the next release of the IntelliCode. MicrosoftDocs/intellicode#263

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

No branches or pull requests

6 participants