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

weird intellisense behavior #2758

Closed
fbricon opened this issue Oct 26, 2022 Discussed in #2749 · 5 comments · Fixed by eclipse-jdtls/eclipse.jdt.ls#2778
Closed

weird intellisense behavior #2758

fbricon opened this issue Oct 26, 2022 Discussed in #2749 · 5 comments · Fixed by eclipse-jdtls/eclipse.jdt.ls#2778

Comments

@fbricon
Copy link
Collaborator

fbricon commented Oct 26, 2022

Discussed in #2749

Originally posted by rafaeltuelho October 21, 2022
I noticed a weird behavior when trying IntelliSense on a java.util.Optional. Look at this gif recording.
java-vscode-optional-intellisense

macOS Monterey
Version 12.6
Java openjdk version "17.0.4" 2022-07-19
VSCode Version: 1.72.0
```</div>
@fbricon
Copy link
Collaborator Author

fbricon commented Oct 26, 2022

This is most likely a manifestation of eclipse-jdt/eclipse.jdt.core#495

@rgrunber
Copy link
Member

Added https://github.com/redhat-developer/vscode-java/wiki/Troubleshooting#turn-off-lombok-support since determining this was happening in JDT-LS as well was tricky.

@rhystedstone
Copy link

rhystedstone commented Jan 5, 2023

I believe the same issue occurs within comments as well:
image

[Trace - 23:57:23] Sending request 'workspace/executeCommand - (226)'.
Params: {
    "command": "java.intellicode.completion",
    "arguments": [
        {
            "textDocument": {
                "uri": "file:///c%3A/Users/Rhys/Development/language/java/spigot-plugin/mazzikin/src/main/java/net/abyssalvoid/mazzikin/Matrices.java"
            },
            "position": {
                "line": 12,
                "character": 46
            },
            "context": {
                "triggerKind": 1,
                "triggerCharacter": "."
            }
        }
    ]
}

@fbricon
Copy link
Collaborator Author

fbricon commented Jul 26, 2023

@rgrunber / @snjeza can you check if eclipse-jdt/eclipse.jdt.core#495 is available in the latest jdt.ls/vscode-java build and close this issue if it's fine?

@snjeza
Copy link
Contributor

snjeza commented Jul 27, 2023

can you check if eclipse-jdt/eclipse.jdt.core#495 is available in the latest jdt.ls/vscode-java build and close this issue if it's fine?

@fbricon it isn't available in I20230629-1800 - https://github.com/eclipse/eclipse.jdt.ls/blob/da3292f8481561ec3ccaa39cf3021ec4f2487101/org.eclipse.jdt.ls.target/org.eclipse.jdt.ls.tp.target#L32

We should update the target platform to https://download.eclipse.org/eclipse/updates/4.29-I-builds/I20230726-1800/
I have created eclipse-jdtls/eclipse.jdt.ls#2778

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

Successfully merging a pull request may close this issue.

4 participants