question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Help! init request, but not response

See original GitHub issue

my request protocol data:

{
    "id": 1,
    "jsonrpc": "2.0",
    "method": "initialize",
    "params": {
        "capabilities": {
            "notebookDocument": {
                "synchronization": {
                    "dynamicRegistration": true,
                    "executionSummarySupport": true
                }
            },
            "textDocument": {
                "callHierarchy": {
                    "dynamicRegistration": true
                },
                "codeAction": {
                    "codeActionLiteralSupport": {
                        "codeActionKind": {
                            "valueSet": [
                                "",
                                "quickfix",
                                "refactor",
                                "refactor.extract",
                                "refactor.inline",
                                "refactor.rewrite",
                                "source",
                                "source.organizeImports",
                                "source.fixAll"
                            ]
                        }
                    },
                    "dataSupport": true,
                    "disabledSupport": false,
                    "dynamicRegistration": true,
                    "honorsChangeAnnotations": 1,
                    "isPreferredSupport": true,
                    "resolveSupport": {
                        "properties": [
                            "edit"
                        ]
                    }
                },
                "codeLens": {
                    "dynamicRegistration": true
                },
                "colorProvider": {
                    "dynamicRegistration": true
                },
                "completion": {
                    "completionItemKind": {
                        "valueSet": [
                            1,
                            2,
                            3,
                            4,
                            5,
                            6,
                            7,
                            8,
                            9,
                            10,
                            11,
                            12,
                            13,
                            14,
                            15,
                            16,
                            17,
                            18,
                            19,
                            20,
                            21,
                            22,
                            23,
                            24,
                            25
                        ]
                    },
                    "contextSupport": true,
                    "dynamicRegistration": true,
                    "insertTextMode": 1
                },
                "declaration": {
                    "dynamicRegistration": true,
                    "linkSupport": true
                },
                "definition": {
                    "dynamicRegistration": true
                },
                "diagnostic": {
                    "dynamicRegistration": true,
                    "relatedDocumentSupport": true
                },
                "documentLink": {
                    "dynamicRegistration": true,
                    "tooltipSupport": true
                },
                "documentSymbol": {
                    "dynamicRegistration": true,
                    "hierarchicalDocumentSymbolSupport": true,
                    "labelSupport": true,
                    "symbolKind": {
                        "valueSet": [
                            1,
                            2,
                            3,
                            4,
                            5,
                            6,
                            7,
                            8,
                            9,
                            10,
                            11,
                            12,
                            13,
                            14,
                            15,
                            16,
                            17,
                            18,
                            19,
                            20,
                            21,
                            22,
                            23,
                            24,
                            25,
                            26
                        ]
                    },
                    "tagSupport": {
                        "valueSet": [
                            1
                        ]
                    }
                },
                "foldingRange": {
                    "dynamicRegistration": true,
                    "foldingRange": {
                        "collapsedText": true
                    },
                    "foldingRangeKind": {
                        "valueSet": [
                            "comment",
                            "imports",
                            "region"
                        ]
                    },
                    "lineFoldingOnly": true,
                    "rangeLimit": 4294967295
                },
                "formatting": {
                    "dynamicRegistration": true
                },
                "hover": {
                    "contentFormat": "markdown",
                    "dynamicRegistration": true
                },
                "implementation": {
                    "dynamicRegistration": true,
                    "linkSupport": true
                },
                "inlayHint": {
                    "dynamicRegistration": true,
                    "resolveSupport": {
                        "properties": [
                            "label.location"
                        ]
                    }
                },
                "inlineValue": {
                    "dynamicRegistration": true
                },
                "linkedEditingRange": {
                    "dynamicRegistration": true
                },
                "moniker": {
                    "dynamicRegistration": true
                },
                "onTypeFormatting": {
                    "dynamicRegistration": true
                },
                "publishDiagnostics": {
                    "codeDescriptionSupport": true,
                    "dataSupport": true,
                    "relatedInformation": true,
                    "tagSupport": {
                        "valueSet": [
                            1,
                            2
                        ]
                    },
                    "versionSupport": true
                },
                "rename": {
                    "dynamicRegistration": true,
                    "honorsChangeAnnotations": true,
                    "prepareSupport": true,
                    "prepareSupportDefaultBehavior": 1
                },
                "selectionRange": {
                    "dynamicRegistration": true
                },
                "semanticTokens": {
                    "augmentsSyntaxTokens": true,
                    "dynamicRegistration": true,
                    "formats": [
                        "relative"
                    ],
                    "multilineTokenSupport": true,
                    "overlappingTokenSupport": true,
                    "request": {
                        "full": true,
                        "range": true
                    },
                    "serverCancelSupport": true,
                    "tokenModifiers": [
                        "declaration",
                        "definition",
                        "readonly",
                        "static",
                        "deprecated",
                        "abstract",
                        "async",
                        "modification",
                        "documentation",
                        "defaultLibrary"
                    ],
                    "tokenTypes": [
                        "namespace",
                        "type",
                        "class",
                        "enum",
                        "interface",
                        "struct",
                        "typeParameter",
                        "parameter",
                        "variable",
                        "property",
                        "enumMember",
                        "event",
                        "function",
                        "method",
                        "macro",
                        "keyword",
                        "modifier",
                        "comment",
                        "string",
                        "number",
                        "regexp",
                        "operator",
                        "decorator"
                    ]
                },
                "signatureHelp": {
                    "contextSupport": true,
                    "dynamicRegistration": true,
                    "signatureInformation": {
                        "documentationFormat": [
                            "plaintext",
                            "markdown"
                        ],
                        "parameterInformation": {
                            "labelOffsetSupport": true
                        }
                    }
                },
                "synchronization": {
                    "didSave": true,
                    "dynamicRegistration": true,
                    "willSave": true,
                    "willSaveWaitUntil": true
                },
                "typeDefinition": {
                    "dynamicRegistration": true
                },
                "typeHierarchy": {
                    "dynamicRegistration": true
                }
            },
            "window": {
                "showDocument": {
                    "messageActionItem": {
                        "additionalPropertiesSupport": true
                    }
                },
                "showMessage": {
                    "messageActionItem": {
                        "additionalPropertiesSupport": true
                    }
                }
            },
            "workspace": {
                "applyEdit": true,
                "configuration": true,
                "diagnostics": {
                    "refreshSupport": true
                },
                "didChangeConfiguration": {
                    "dynamicRegistration": true
                },
                "didChangeWatchedFiles": {
                    "dynamicRegistration": true,
                    "relativePatternSupport": true
                },
                "executeCommand": {
                    "dynamicRegistration": true
                },
                "fileOperations": {
                    "didCreate": true,
                    "didDelete": true,
                    "didRename": true,
                    "dynamicRegistration": true,
                    "willCreate": true,
                    "willDelete": true,
                    "willRename": true
                },
                "inlayHint": {
                    "refreshSupport": true
                },
                "inlineValue": {
                    "refreshSupport": true
                },
                "semanticTokens": {
                    "refreshSupport": true
                },
                "symbol": {
                    "dynamicRegistration": true,
                    "symbolKind": {
                        "valueSet": [
                            1,
                            2,
                            3,
                            4,
                            5,
                            6,
                            7,
                            8,
                            9,
                            10,
                            11,
                            12,
                            13,
                            14,
                            15,
                            16,
                            17,
                            18,
                            19,
                            20,
                            21,
                            22,
                            23,
                            24,
                            25,
                            26
                        ]
                    },
                    "tagSupport": {
                        "valueSet": [
                            1
                        ]
                    }
                },
                "workspaceEdit": {
                    "changeAnnotationSupport": {
                        "groupsOnLabel": 1
                    },
                    "documentChanges": true,
                    "failureHandling": "transactional",
                    "normalizesLineEndings": true,
                    "resourceOperations": [
                        "create",
                        "rename",
                        "delete"
                    ]
                },
                "workspaceFolders": true
            }
        },
        "language": "Java",
        "processId": 25520,
        "rootUri": "file:///home/funning/eclipse-workspace/mavenProject",
        "trace": "verbose",
        "workspaceFolders": [
            {
                "name": "mavenProject",
                "uri": "file:///home/funning/eclipse-workspace/mavenProject"
            }
        ]
    }
}

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
zbelialcommented, Jul 24, 2022

Some hints:

  1. You can use an empty param in initialize to reduce its influnce, as sometimes incorrect parameters may affect server’s behaviour
  2. Make sure jdt.ls starts successfully and runs well
  3. Make sure your code can read jdt.ls’s response correctly
0reactions
FunningC0217commented, Oct 28, 2022

It’s a complex bug. I’m sorry to close it now

Read more comments on GitHub >

github_iconTop Results From Across the Web

Servlet's service and init method are being called, but not ...
service(servletRequest,servletResponse);.When I do http get call, I see my service() method is called but doGet() method is not called however in response I...
Read more >
fetch() - Web APIs | MDN
A fetch() promise does not reject on HTTP errors ( 404 , etc.) ... the request, and ignore any credentials sent back in...
Read more >
IMS 15.2 - System programming APIs - INIT request - IBM
After the INIT request and the startup table have been processed, the DRA returns the following data to the CCTL in the INIT...
Read more >
Advanced Usage — Requests 2.28.1 documentation
Whenever you receive a Response object from an API call or a Session call, the request ... Currently, Requests does not support using...
Read more >
Z39.50, Part 11 (Protocol Procedures) - Library of Congress
A single application-association can be used to support a series of ... There are four types of service primitives: Request, Indication, Response and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found