Skip to content
This repository has been archived by the owner on Oct 18, 2024. It is now read-only.

VLS isn't responding #441

Closed
omegaui opened this issue May 26, 2023 · 7 comments
Closed

VLS isn't responding #441

omegaui opened this issue May 26, 2023 · 7 comments
Labels
bug Something isn't working

Comments

@omegaui
Copy link

omegaui commented May 26, 2023

Hello!
I have been trying to test vls using HTTPie,

image

The response in HTTPie shows some unexpected error,

this is my initialization request,

{
  "jsonrpc": "2.0",
  "id": 0,
  "method": "initialize",
  "params": {
    "processId": 20616,
    "clientInfo": {
      "name": "HTTPie",
      "version": "1.0.0"
    },
    "locale": "en-us",
    "rootPath": "/home/omegaui/VS Code Projects/linux-storage-sense",
    "rootUri": "file:///home/omegaui/VS%20Code%20Projects/linux-storage-sense",
    "capabilities": {
      "workspace": {
        "applyEdit": true,
        "workspaceEdit": {
          "documentChanges": true,
          "resourceOperations": [
            "create",
            "rename",
            "delete"
          ],
          "failureHandling": "textOnlyTransactional",
          "normalizesLineEndings": true,
          "changeAnnotationSupport": {
            "groupsOnLabel": true
          }
        },
        "didChangeConfiguration": {
          "dynamicRegistration": true
        },
        "didChangeWatchedFiles": {
          "dynamicRegistration": 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
            ]
          }
        },
        "codeLens": {
          "refreshSupport": true
        },
        "executeCommand": {
          "dynamicRegistration": true
        },
        "configuration": true,
        "workspaceFolders": true,
        "semanticTokens": {
          "refreshSupport": true
        },
        "fileOperations": {
          "dynamicRegistration": true,
          "didCreate": true,
          "didRename": true,
          "didDelete": true,
          "willCreate": true,
          "willRename": true,
          "willDelete": true
        }
      },
      "textDocument": {
        "publishDiagnostics": {
          "relatedInformation": true,
          "versionSupport": false,
          "tagSupport": {
            "valueSet": [
              1,
              2
            ]
          },
          "codeDescriptionSupport": true,
          "dataSupport": true
        },
        "synchronization": {
          "dynamicRegistration": true,
          "willSave": true,
          "willSaveWaitUntil": true,
          "didSave": true
        },
        "completion": {
          "dynamicRegistration": true,
          "contextSupport": true,
          "completionItem": {
            "snippetSupport": true,
            "commitCharactersSupport": true,
            "documentationFormat": [
              "markdown",
              "plaintext"
            ],
            "deprecatedSupport": true,
            "preselectSupport": true,
            "tagSupport": {
              "valueSet": [
                1
              ]
            },
            "insertReplaceSupport": true,
            "resolveSupport": {
              "properties": [
                "documentation",
                "detail",
                "additionalTextEdits"
              ]
            },
            "insertTextModeSupport": {
              "valueSet": [
                1,
                2
              ]
            }
          },
          "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
            ]
          }
        },
        "hover": {
          "dynamicRegistration": true,
          "contentFormat": [
            "markdown",
            "plaintext"
          ]
        },
        "signatureHelp": {
          "dynamicRegistration": true,
          "signatureInformation": {
            "documentationFormat": [
              "markdown",
              "plaintext"
            ],
            "parameterInformation": {
              "labelOffsetSupport": true
            },
            "activeParameterSupport": true
          },
          "contextSupport": true
        },
        "definition": {
          "dynamicRegistration": true,
          "linkSupport": true
        },
        "references": {
          "dynamicRegistration": true
        },
        "documentHighlight": {
          "dynamicRegistration": true
        },
        "documentSymbol": {
          "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
            ]
          },
          "hierarchicalDocumentSymbolSupport": true,
          "tagSupport": {
            "valueSet": [
              1
            ]
          },
          "labelSupport": true
        },
        "codeAction": {
          "dynamicRegistration": true,
          "isPreferredSupport": true,
          "disabledSupport": true,
          "dataSupport": true,
          "resolveSupport": {
            "properties": [
              "edit"
            ]
          },
          "codeActionLiteralSupport": {
            "codeActionKind": {
              "valueSet": [
                "",
                "quickfix",
                "refactor",
                "refactor.extract",
                "refactor.inline",
                "refactor.rewrite",
                "source",
                "source.organizeImports"
              ]
            }
          },
          "honorsChangeAnnotations": false
        },
        "codeLens": {
          "dynamicRegistration": true
        },
        "formatting": {
          "dynamicRegistration": true
        },
        "rangeFormatting": {
          "dynamicRegistration": true
        },
        "onTypeFormatting": {
          "dynamicRegistration": true
        },
        "rename": {
          "dynamicRegistration": true,
          "prepareSupport": true,
          "prepareSupportDefaultBehavior": 1,
          "honorsChangeAnnotations": true
        },
        "documentLink": {
          "dynamicRegistration": true,
          "tooltipSupport": true
        },
        "typeDefinition": {
          "dynamicRegistration": true,
          "linkSupport": true
        },
        "implementation": {
          "dynamicRegistration": true,
          "linkSupport": true
        },
        "colorProvider": {
          "dynamicRegistration": true
        },
        "foldingRange": {
          "dynamicRegistration": true,
          "rangeLimit": 5000,
          "lineFoldingOnly": true
        },
        "declaration": {
          "dynamicRegistration": true,
          "linkSupport": true
        },
        "selectionRange": {
          "dynamicRegistration": true
        },
        "callHierarchy": {
          "dynamicRegistration": true
        },
        "semanticTokens": {
          "dynamicRegistration": true,
          "tokenTypes": [
            "namespace",
            "type",
            "class",
            "enum",
            "interface",
            "struct",
            "typeParameter",
            "parameter",
            "variable",
            "property",
            "enumMember",
            "event",
            "function",
            "method",
            "macro",
            "keyword",
            "modifier",
            "comment",
            "string",
            "number",
            "regexp",
            "operator"
          ],
          "tokenModifiers": [
            "declaration",
            "definition",
            "readonly",
            "static",
            "deprecated",
            "abstract",
            "async",
            "modification",
            "documentation",
            "defaultLibrary"
          ],
          "formats": [
            "relative"
          ],
          "requests": {
            "range": true,
            "full": {
              "delta": true
            }
          },
          "multilineTokenSupport": false,
          "overlappingTokenSupport": false
        },
        "linkedEditingRange": {
          "dynamicRegistration": true
        }
      },
      "window": {
        "showMessage": {
          "messageActionItem": {
            "additionalPropertiesSupport": true
          }
        },
        "showDocument": {
          "support": true
        },
        "workDoneProgress": true
      },
      "general": {
        "regularExpressions": {
          "engine": "ECMAScript",
          "version": "ES2020"
        },
        "markdown": {
          "parser": "marked",
          "version": "1.1.0"
        }
      }
    },
    "trace": "off",
    "workspaceFolders": [
      {
        "uri": "file:///home/omegaui/VS%20Code%20Projects/linux-storage-sense",
        "name": "linux-storage-sense"
      }
    ]
  }
}

This is the console output ...

omegaui@asus:~/IdeaProjects/v-lang-lsp-retriever$ clear && ./vls --socket --timeout 0
Warning: TCP connection is used primarily for debugging purposes only 
        and may have performance issues. Use it on your own risk.

[vls-server] : Established connection at 127.0.0.1:5007

[vls-server] : Sent data : Content-Length: 182

{"jsonrpc":"2.0","method":"window/showMessage","params":{"type":2,"message":"VLS is early software. Please report your issue to github.com/vlang/vls if you encounter any problems."}}

[vls-server] : Received data : PUT / HTTP/1.1
Host: 127.0.0.1:5007
User-Agent: HTTPie
Content-Type: application/json
Content-Length: 9678
Connection: close

{
  "jsonrpc": "2.0",
  "id": 0,
  "method": "initialize",
  "params": {
    "processId": 20616,
    "clientInfo": {
      "name": "HTTPie",
      "version": "1.0.0"
    },
    "locale": "en-us",
    "rootPath": "/home/omegaui/VS Code Projects/linux-storage-sense",
    "rootUri": "file:///home/omegaui/VS%20Code%20Projects/linux-storage-sense",
    "capabilities": {
      "workspace": {
        "applyEdit": true,
        "workspaceEdit": {
          "documentChanges": true,
          "resourceOperations": [
            "create",
            "rename",
            "delete"
          ],
          "failureHandling": "textOnlyTransactional",
          "normalizesLineEndings": true,
          "changeAnnotationSupport": {
            "groupsOnLabel": true
          }
        },
        "didChangeConfiguration": {
          "dynamicRegistration": true
        },
        "didChangeWatchedFiles": {
          "dynamicRegistration": 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
            ]
          }
        },
        "codeLens": {
          "refreshSupport": true
        },
        "executeCommand": {
          "dynamicRegistration": true
        },
        "configuration": true,
        "workspaceFolders": true,
        "semanticTokens": {
          "refreshSupport": true
        },
        "fileOperations": {
          "dynamicRegistration": true,
          "didCreate": true,
          "didRename": true,
          "didDelete": true,
          "willCreate": true,
          "willRename": true,
          "willDelete": true
        }
      },
      "textDocument": {
        "publishDiagnostics": {
          "relatedInformation": true,
          "versionSupport": false,
          "tagSupport": {
            "valueSet": [
              1,
              2
            ]
          },
          "codeDescriptionSupport": true,
          "dataSupport": true
        },
        "synchronization": {
          "dynamicRegistration": true,
          "willSave": true,
          "willSaveWaitUntil": true,
          "didSave": true
        },
        "completion": {
          "dynamicRegistration": true,
          "contextSupport": true,
          "completionItem": {
            "snippetSupport": true,
            "commitCharactersSupport": true,
            "documentationFormat": [
              "markdown",
              "plaintext"
            ],
            "deprecatedSupport": true,
            "preselectSupport": true,
            "tagSupport": {
              "valueSet": [
                1
              ]
            },
            "insertReplaceSupport": true,
            "resolveSupport": {
              "properties": [
                "documentation",
                "detail",
                "additionalTextEdits"
              ]
            },
            "insertTextModeSupport": {
              "valueSet": [
                1,
                2
              ]
            }
          },
          "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
            ]
          }
        },
        "hover": {
          "dynamicRegistration": true,
          "contentFormat": [
            "markdown",
            "plaintext"
          ]
        },
        "signatureHelp": {
          "dynamicRegistration": true,
          "signatureInformation": {
            "documentationFormat": [
              "markdown",
              "plaintext"
            ],
            "parameterInformation": {
              "labelOffsetSupport": true
            },
            "activeParameterSupport": true
          },
          "contextSupport": true
        },
        "definition": {
          "dynamicRegistration": true,
          "linkSupport": true
        },
        "references": {
          "dynamicRegistration": true
        },
        "documentHighlight": {
          "dynamicRegistration": true
        },
        "documentSymbol": {
          "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
            ]
          },
          "hierarchicalDocumentSymbolSupport": true,
          "tagSupport": {
            "valueSet": [
              1
            ]
          },
          "labelSupport": true
        },
        "codeAction": {
          "dynamicRegistration": true,
          "isPreferredSupport": true,
          "disabledSupport": true,
          "dataSupport": true,
          "resolveSupport": {
            "properties": [
              "edit"
            ]
          },
          "codeActionLiteralSupport": {
            "codeActionKind": {
              "valueSet": [
                "",
                "quickfix",
                "refactor",
                "refactor.extract",
                "refactor.inline",
                "refactor.rewrite",
                "source",
                "source.organizeImports"
              ]
            }
          },
          "honorsChangeAnnotations": false
        },
        "codeLens": {
          "dynamicRegistration": true
        },
        "formatting": {
          "dynamicRegistration": true
        },
        "rangeFormatting": {
          "dynamicRegistration": true
        },
        "onTypeFormatting": {
          "dynamicRegistration": true
        },
        "rename": {
          "dynamicRegistration": true,
          "prepareSupport": true,
          "prepareSupportDefaultBehavior": 1,
          "honorsChangeAnnotations": true
        },
        "documentLink": {
          "dynamicRegistration": true,
          "tooltipSupport": true
        },
        "typeDefinition": {
          "dynamicRegistration": true,
          "linkSupport": true
        },
        "implementation": {
          "dynamicRegistration": true,
          "linkSupport": true
        },
        "colorProvider": {
          "dynamicRegistration": true
        },
        "foldingRange": {
          "dynamicRegistration": true,
          "rangeLimit": 5000,
          "lineFoldingOnly": true
        },
        "declaration": {
          "dynamicRegistration": true,
          "linkSupport": true
        },
        "selectionRange": {
          "dynamicRegistration": true
        },
        "callHierarchy": {
          "dynamicRegistration": true
        },
        "semanticTokens": {
          "dynamicRegistration": true,
          "tokenTypes": [
            "namespace",
            "type",
            "class",
            "enum",
            "interface",
            "struct",
            "typeParameter",
            "parameter",
            "variable",
            "property",
            "enumMember",
            "event",
            "function",
            "method",
            "macro",
            "keyword",
            "modifier",
            "comment",
            "string",
            "number",
            "regexp",
            "operator"
          ],
          "tokenModifiers": [
            "declaration",
            "definition",
            "readonly",
            "static",
            "deprecated",
            "abstract",
            "async",
            "modification",
            "documentation",
            "defaultLibrary"
          ],
          "formats": [
            "relative"
          ],
          "requests": {
            "range": true,
            "full": {
              "delta": true
            }
          },
          "multilineTokenSupport": false,
          "overlappingTokenSupport": false
        },
        "linkedEditingRange": {
          "dynamicRegistration": true
        }
      },
      "window": {
        "showMessage": {
          "messageActionItem": {
            "additionalPropertiesSupport": true
          }
        },
        "showDocument": {
          "support": true
        },
        "workDoneProgress": true
      },
      "general": {
        "regularExpressions": {
          "engine": "ECMAScript",
          "version": "ES2020"
        },
        "markdown": {
          "parser": "marked",
          "version": "1.1.0"
        }
      }
    },
    "trace": "off",
    "workspaceFolders": [
      {
        "uri": "file:///home/omegaui/VS%20Code%20Projects/linux-storage-sense",
        "name": "linux-storage-sense"
      }
    ]
  }
}

[vls-server] : Sent data : Content-Length: 119

{"jsonrpc":"2.0","method":"window/logMessage","params":{"type":3,"message":"VLS Version: 0.0.1.234c102, OS: linux 64"}}

[vls-server] : Sent data : Content-Length: 151

{"jsonrpc":"2.0","method":"window/logMessage","params":{"type":3,"message":"VLS executable path: /home/omegaui/IdeaProjects/v-lang-lsp-retriever/vls"}}

[vls-server] : Sent data : Content-Length: 103

{"jsonrpc":"2.0","method":"window/logMessage","params":{"type":3,"message":"VLS build with V f9c186a"}}

[vls-server] : Sent data : Content-Length: 121

{"jsonrpc":"2.0","method":"window/logMessage","params":{"type":3,"message":"Client / Editor: HTTPie 1.0.0 (PID: 20616)"}}

[vls-server] : Sent data : Content-Length: 121

{"jsonrpc":"2.0","method":"window/logMessage","params":{"type":3,"message":"Using V path (VROOT): /usr/lib/languages/v"}}

[vls-server] : Sent data : Content-Length: 151

{"jsonrpc":"2.0","method":"window/logMessage","params":{"type":3,"message":"is_logger_installed: true | is_logger_enabled: false | params.trace: off"}}

[vls-server] : Sent data : Content-Length: 889

{"jsonrpc":"2.0","id":0,"result":{"capabilities":{"textDocumentSync":2,"hoverProvider":true,"completionProvider":{"resolveProvider":false,"triggerCharacters":["=",".",":","{",",","("," "]},"signatureHelpProvider":{"triggerCharacters":["("],"retriggerCharacters":[","," "]},"definitionProvider":true,"typeDefinitionProvider":false,"implementationProvider":true,"referencesProvider":false,"documentHighlightProvider":false,"documentSymbolProvider":true,"workspaceSymbolProvider":true,"codeActionProvider":false,"codeLensProvider":{"resolveProvider":false},"documentFormattingProvider":true,"documentOnTypeFormattingProvider":{"firstTriggerCharacter":"","moreTriggerCharacter":[]},"renameProvider":false,"documentLinkProvider":{"resolveProvider":false},"colorProvider":false,"declarationProvider":false,"executeCommandProvider":{"commands":[]},"foldingRangeProvider":true,"experimental":{}}}}


{"jsonrpc":"2.0","method":"window/logMessage","params":{"type":3,"message":"VLS build with V f9c186a"}}

^C
omegaui@asus:~/IdeaProjects/v-lang-lsp-retriever$ clear
omegaui@asus:~/IdeaProjects/v-lang-lsp-retriever$ clear && ./vls --socket --timeout 0
Warning: TCP connection is used primarily for debugging purposes only 
        and may have performance issues. Use it on your own risk.

[vls-server] : Established connection at 127.0.0.1:5007

[vls-server] : Sent data : Content-Length: 182

{"jsonrpc":"2.0","method":"window/showMessage","params":{"type":2,"message":"VLS is early software. Please report your issue to github.com/vlang/vls if you encounter any problems."}}

[vls-server] : Received data : PUT / HTTP/1.1
Host: 127.0.0.1:5007
User-Agent: HTTPie
Content-Type: application/json
Content-Length: 9678
Connection: close

{
  "jsonrpc": "2.0",
  "id": 0,
  "method": "initialize",
  "params": {
    "processId": 20616,
    "clientInfo": {
      "name": "HTTPie",
      "version": "1.0.0"
    },
    "locale": "en-us",
    "rootPath": "/home/omegaui/VS Code Projects/linux-storage-sense",
    "rootUri": "file:///home/omegaui/VS%20Code%20Projects/linux-storage-sense",
    "capabilities": {
      "workspace": {
        "applyEdit": true,
        "workspaceEdit": {
          "documentChanges": true,
          "resourceOperations": [
            "create",
            "rename",
            "delete"
          ],
          "failureHandling": "textOnlyTransactional",
          "normalizesLineEndings": true,
          "changeAnnotationSupport": {
            "groupsOnLabel": true
          }
        },
        "didChangeConfiguration": {
          "dynamicRegistration": true
        },
        "didChangeWatchedFiles": {
          "dynamicRegistration": 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
            ]
          }
        },
        "codeLens": {
          "refreshSupport": true
        },
        "executeCommand": {
          "dynamicRegistration": true
        },
        "configuration": true,
        "workspaceFolders": true,
        "semanticTokens": {
          "refreshSupport": true
        },
        "fileOperations": {
          "dynamicRegistration": true,
          "didCreate": true,
          "didRename": true,
          "didDelete": true,
          "willCreate": true,
          "willRename": true,
          "willDelete": true
        }
      },
      "textDocument": {
        "publishDiagnostics": {
          "relatedInformation": true,
          "versionSupport": false,
          "tagSupport": {
            "valueSet": [
              1,
              2
            ]
          },
          "codeDescriptionSupport": true,
          "dataSupport": true
        },
        "synchronization": {
          "dynamicRegistration": true,
          "willSave": true,
          "willSaveWaitUntil": true,
          "didSave": true
        },
        "completion": {
          "dynamicRegistration": true,
          "contextSupport": true,
          "completionItem": {
            "snippetSupport": true,
            "commitCharactersSupport": true,
            "documentationFormat": [
              "markdown",
              "plaintext"
            ],
            "deprecatedSupport": true,
            "preselectSupport": true,
            "tagSupport": {
              "valueSet": [
                1
              ]
            },
            "insertReplaceSupport": true,
            "resolveSupport": {
              "properties": [
                "documentation",
                "detail",
                "additionalTextEdits"
              ]
            },
            "insertTextModeSupport": {
              "valueSet": [
                1,
                2
              ]
            }
          },
          "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
            ]
          }
        },
        "hover": {
          "dynamicRegistration": true,
          "contentFormat": [
            "markdown",
            "plaintext"
          ]
        },
        "signatureHelp": {
          "dynamicRegistration": true,
          "signatureInformation": {
            "documentationFormat": [
              "markdown",
              "plaintext"
            ],
            "parameterInformation": {
              "labelOffsetSupport": true
            },
            "activeParameterSupport": true
          },
          "contextSupport": true
        },
        "definition": {
          "dynamicRegistration": true,
          "linkSupport": true
        },
        "references": {
          "dynamicRegistration": true
        },
        "documentHighlight": {
          "dynamicRegistration": true
        },
        "documentSymbol": {
          "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
            ]
          },
          "hierarchicalDocumentSymbolSupport": true,
          "tagSupport": {
            "valueSet": [
              1
            ]
          },
          "labelSupport": true
        },
        "codeAction": {
          "dynamicRegistration": true,
          "isPreferredSupport": true,
          "disabledSupport": true,
          "dataSupport": true,
          "resolveSupport": {
            "properties": [
              "edit"
            ]
          },
          "codeActionLiteralSupport": {
            "codeActionKind": {
              "valueSet": [
                "",
                "quickfix",
                "refactor",
                "refactor.extract",
                "refactor.inline",
                "refactor.rewrite",
                "source",
                "source.organizeImports"
              ]
            }
          },
          "honorsChangeAnnotations": false
        },
        "codeLens": {
          "dynamicRegistration": true
        },
        "formatting": {
          "dynamicRegistration": true
        },
        "rangeFormatting": {
          "dynamicRegistration": true
        },
        "onTypeFormatting": {
          "dynamicRegistration": true
        },
        "rename": {
          "dynamicRegistration": true,
          "prepareSupport": true,
          "prepareSupportDefaultBehavior": 1,
          "honorsChangeAnnotations": true
        },
        "documentLink": {
          "dynamicRegistration": true,
          "tooltipSupport": true
        },
        "typeDefinition": {
          "dynamicRegistration": true,
          "linkSupport": true
        },
        "implementation": {
          "dynamicRegistration": true,
          "linkSupport": true
        },
        "colorProvider": {
          "dynamicRegistration": true
        },
        "foldingRange": {
          "dynamicRegistration": true,
          "rangeLimit": 5000,
          "lineFoldingOnly": true
        },
        "declaration": {
          "dynamicRegistration": true,
          "linkSupport": true
        },
        "selectionRange": {
          "dynamicRegistration": true
        },
        "callHierarchy": {
          "dynamicRegistration": true
        },
        "semanticTokens": {
          "dynamicRegistration": true,
          "tokenTypes": [
            "namespace",
            "type",
            "class",
            "enum",
            "interface",
            "struct",
            "typeParameter",
            "parameter",
            "variable",
            "property",
            "enumMember",
            "event",
            "function",
            "method",
            "macro",
            "keyword",
            "modifier",
            "comment",
            "string",
            "number",
            "regexp",
            "operator"
          ],
          "tokenModifiers": [
            "declaration",
            "definition",
            "readonly",
            "static",
            "deprecated",
            "abstract",
            "async",
            "modification",
            "documentation",
            "defaultLibrary"
          ],
          "formats": [
            "relative"
          ],
          "requests": {
            "range": true,
            "full": {
              "delta": true
            }
          },
          "multilineTokenSupport": false,
          "overlappingTokenSupport": false
        },
        "linkedEditingRange": {
          "dynamicRegistration": true
        }
      },
      "window": {
        "showMessage": {
          "messageActionItem": {
            "additionalPropertiesSupport": true
          }
        },
        "showDocument": {
          "support": true
        },
        "workDoneProgress": true
      },
      "general": {
        "regularExpressions": {
          "engine": "ECMAScript",
          "version": "ES2020"
        },
        "markdown": {
          "parser": "marked",
          "version": "1.1.0"
        }
      }
    },
    "trace": "off",
    "workspaceFolders": [
      {
        "uri": "file:///home/omegaui/VS%20Code%20Projects/linux-storage-sense",
        "name": "linux-storage-sense"
      }
    ]
  }
}

[vls-server] : Sent data : Content-Length: 119

{"jsonrpc":"2.0","method":"window/logMessage","params":{"type":3,"message":"VLS Version: 0.0.1.234c102, OS: linux 64"}}

[vls-server] : Sent data : Content-Length: 151

{"jsonrpc":"2.0","method":"window/logMessage","params":{"type":3,"message":"VLS executable path: /home/omegaui/IdeaProjects/v-lang-lsp-retriever/vls"}}

[vls-server] : Sent data : Content-Length: 103

{"jsonrpc":"2.0","method":"window/logMessage","params":{"type":3,"message":"VLS build with V f9c186a"}}

[vls-server] : Sent data : Content-Length: 121

{"jsonrpc":"2.0","method":"window/logMessage","params":{"type":3,"message":"Client / Editor: HTTPie 1.0.0 (PID: 20616)"}}

[vls-server] : Sent data : Content-Length: 121

{"jsonrpc":"2.0","method":"window/logMessage","params":{"type":3,"message":"Using V path (VROOT): /usr/lib/languages/v"}}

[vls-server] : Sent data : Content-Length: 151

{"jsonrpc":"2.0","method":"window/logMessage","params":{"type":3,"message":"is_logger_installed: true | is_logger_enabled: false | params.trace: off"}}

[vls-server] : Sent data : Content-Length: 889

{"jsonrpc":"2.0","id":0,"result":{"capabilities":{"textDocumentSync":2,"hoverProvider":true,"completionProvider":{"resolveProvider":false,"triggerCharacters":["=",".",":","{",",","("," "]},"signatureHelpProvider":{"triggerCharacters":["("],"retriggerCharacters":[","," "]},"definitionProvider":true,"typeDefinitionProvider":false,"implementationProvider":true,"referencesProvider":false,"documentHighlightProvider":false,"documentSymbolProvider":true,"workspaceSymbolProvider":true,"codeActionProvider":false,"codeLensProvider":{"resolveProvider":false},"documentFormattingProvider":true,"documentOnTypeFormattingProvider":{"firstTriggerCharacter":"","moreTriggerCharacter":[]},"renameProvider":false,"documentLinkProvider":{"resolveProvider":false},"colorProvider":false,"declarationProvider":false,"executeCommandProvider":{"commands":[]},"foldingRangeProvider":true,"experimental":{}}}}



After this step,
No matter what request I send it just never completes and I keep waiting for it.

image

I have tried building it from source and also tried using the prebuilt executable.

This is the output of v doctor :
image

Am I doing something wrong?

@omegaui omegaui added the bug Something isn't working label May 26, 2023
@felixf4xu
Copy link

I don't quite understand how can test the current vls with httpie. When you run ./vls --socket, vls will run as a tcp server, please note this not a http server, so the header data of

PUT / HTTP/1.1
Host: 127.0.0.1:5007
User-Agent: HTTPie
Content-Type: application/json

is not expected to be read by vls.

@JalonSolov
Copy link

Also, vls is being rewritten, and the new version is due to be released July 3rd.

@omegaui
Copy link
Author

omegaui commented Jun 23, 2023

@felixf4xu
I knew very little about Language Server Protocols
I didn't knew that it wasn't as http server.
Well, I waiting for the new VLS release which releases on 2nd July.
Thank You.

@JalonSolov
Copy link

For future reference, this is the definitive site for LSP:

https://microsoft.github.io/language-server-protocol/

@omegaui
Copy link
Author

omegaui commented Jun 23, 2023

For future reference, this is the definitive site for LSP:

https://microsoft.github.io/language-server-protocol/

@JalonSolov
Thanks, but I already know this :)

@JalonSolov
Copy link

... it is fairly clearly documented that it isn't http...

@JalonSolov
Copy link

Try https://blog.vosca.dev/meet-v-analyzer/ instead, now that it is released.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants