Skip to content

Instantly share code, notes, and snippets.

@felipecrp
Last active July 16, 2022 19:12
Show Gist options
  • Save felipecrp/753b909c4fd09c9617d0b6b1c9eeac3c to your computer and use it in GitHub Desktop.
Save felipecrp/753b909c4fd09c9617d0b6b1c9eeac3c to your computer and use it in GitHub Desktop.
[START][2022-07-16 16:07:18] LSP logging initiated
[INFO][2022-07-16 16:07:39] .../lua/vim/lsp.lua:1392 "exit_handler" {}
[START][2022-07-16 16:07:41] LSP logging initiated
[INFO][2022-07-16 16:07:51] .../vim/lsp/rpc.lua:261 "Starting RPC client" { args = { "--stdio" }, cmd = "grammarly-languageserver", extra = { cwd = "/home/user/sites/user.github.io", env = { PATH = "/home/user/.local/share/nvim/lsp_servers/grammarly/node_modules/.bin:/home/user/.asdf/shims:/opt/asdf-vm/bin:/home/user/.local/bin:/home/user/bin:/usr/local/sbin:/usr/local/bin:/usr/local/games:/usr/sbin:/usr/bin:/usr/games:/sbin:/bin" } }}
[DEBUG][2022-07-16 16:07:51] .../vim/lsp/rpc.lua:347 "rpc.send" { id = 1, jsonrpc = "2.0", method = "initialize", params = { capabilities = { callHierarchy = { dynamicRegistration = false }, textDocument = { codeAction = { codeActionLiteralSupport = { codeActionKind = { valueSet = { "", "Empty", "QuickFix", "Refactor", "RefactorExtract", "RefactorInline", "RefactorRewrite", "Source", "SourceOrganizeImports", "quickfix", "refactor", "refactor.extract", "refactor.inline", "refactor.rewrite", "source", "source.organizeImports" } } }, dataSupport = true, dynamicRegistration = false, resolveSupport = { properties = { "edit" } } }, completion = { completionItem = { commitCharactersSupport = true, deprecatedSupport = true, documentationFormat = { "markdown", "plaintext" }, insertReplaceSupport = true, labelDetailsSupport = true, preselectSupport = true, resolveSupport = { properties = { "documentation", "detail", "additionalTextEdits" } }, snippetSupport = true, tagSupport = { valueSet = { 1 } } }, 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 = false, dynamicRegistration = false }, declaration = { linkSupport = true }, definition = { linkSupport = true }, documentHighlight = { dynamicRegistration = false }, documentSymbol = { dynamicRegistration = false, hierarchicalDocumentSymbolSupport = 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 } } }, hover = { contentFormat = { "markdown", "plaintext" }, dynamicRegistration = false }, implementation = { linkSupport = true }, publishDiagnostics = { relatedInformation = true, tagSupport = { valueSet = { 1, 2 } } }, references = { dynamicRegistration = false }, rename = { dynamicRegistration = false, prepareSupport = true }, signatureHelp = { dynamicRegistration = false, signatureInformation = { activeParameterSupport = true, documentationFormat = { "markdown", "plaintext" }, parameterInformation = { labelOffsetSupport = true } } }, synchronization = { didSave = true, dynamicRegistration = false, willSave = false, willSaveWaitUntil = false }, typeDefinition = { linkSupport = true } }, window = { showDocument = { support = false }, showMessage = { messageActionItem = { additionalPropertiesSupport = false } }, workDoneProgress = true }, workspace = { applyEdit = true, configuration = true, symbol = { dynamicRegistration = false, hierarchicalWorkspaceSymbolSupport = 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 } } }, workspaceEdit = { resourceOperations = { "rename", "create", "delete" } }, workspaceFolders = true } }, clientInfo = { name = "Neovim", version = "0.7.2" }, initializationOptions = { clientId = "client_BaDkMgx4X19X9UxxYRCXZo" }, processId = 21165, rootPath = "/home/user/sites/user.github.io", rootUri = "file:///home/user/sites/user.github.io", trace = "off", workspaceFolders = { { name = "/home/user/sites/user.github.io", uri = "file:///home/user/sites/user.github.io" } } }}
[DEBUG][2022-07-16 16:07:52] .../vim/lsp/rpc.lua:454 "rpc.receive" { jsonrpc = "2.0", method = "window/logMessage", params = { message = "Ready!", type = 4 }}
[INFO][2022-07-16 16:07:52] ...lsp/handlers.lua:459 "Ready!"
[ERROR][2022-07-16 16:07:52] .../vim/lsp/rpc.lua:420 "rpc" "grammarly-languageserver" "stderr" "(node:21183) ExperimentalWarning: The Fetch API is an experimental feature. This feature could change at any time\n(Use `node --trace-warnings ...` to show where the warning was created)\n"
[DEBUG][2022-07-16 16:07:52] .../vim/lsp/rpc.lua:454 "rpc.receive" { jsonrpc = "2.0", method = "window/logMessage", params = { message = "Initialized!", type = 4 }}
[DEBUG][2022-07-16 16:07:52] .../vim/lsp/rpc.lua:454 "rpc.receive" { id = 1, jsonrpc = "2.0", result = { capabilities = { codeActionProvider = { codeActionKinds = { "quickfix" }, resolveProvider = true }, hoverProvider = true, textDocumentSync = { change = 2, openClose = true } }, serverInfo = { name = "Grammarly" } }}
[INFO][2022-07-16 16:07:52] ...lsp/handlers.lua:459 "Initialized!"
[DEBUG][2022-07-16 16:07:52] .../vim/lsp/rpc.lua:347 "rpc.send" { jsonrpc = "2.0", method = "initialized", params = vim.empty_dict()}
[DEBUG][2022-07-16 16:07:52] .../lua/vim/lsp.lua:982 "LSP[grammarly]" "server_capabilities" { codeActionProvider = { codeActionKinds = { "quickfix" }, resolveProvider = true }, hoverProvider = true, textDocumentSync = { change = 2, openClose = true }}
[INFO][2022-07-16 16:07:52] .../lua/vim/lsp.lua:983 "LSP[grammarly]" "initialized" { resolved_capabilities = { call_hierarchy = false, code_action = { codeActionKinds = { "quickfix" }, resolveProvider = true }, code_lens = false, code_lens_resolve = false, completion = false, declaration = false, document_formatting = false, document_highlight = false, document_range_formatting = false, document_symbol = false, execute_command = false, find_references = false, goto_definition = false, hover = true, implementation = false, rename = false, signature_help = false, signature_help_trigger_characters = {}, text_document_did_change = 2, text_document_open_close = true, text_document_save = false, text_document_save_include_text = false, text_document_will_save = false, text_document_will_save_wait_until = false, type_definition = false, workspace_folder_properties = { changeNotifications = false, supported = false }, workspace_symbol = false }}
[DEBUG][2022-07-16 16:07:52] .../vim/lsp/rpc.lua:347 "rpc.send" { jsonrpc = "2.0", method = "textDocument/didOpen", params = { textDocument = { languageId = "markdown", text = "---\nlayout: post\ntitle: ", uri = "file:///home/user/sites/user.github.io/_drafts/how-to-install-arch-linu-on-wsl.md", version = 0 } }}
[DEBUG][2022-07-16 16:07:52] .../vim/lsp/rpc.lua:454 "rpc.receive" { jsonrpc = "2.0", method = "window/logMessage", params = { message = "open file:///home/user/sites/user.github.io/_drafts/how-to-install-arch-linu-on-wsl.md", type = 4 }}
[DEBUG][2022-07-16 16:07:52] .../vim/lsp/rpc.lua:454 "rpc.receive" { id = 0, jsonrpc = "2.0", method = "workspace/configuration", params = { items = { { scopeUri = "file:///home/user/sites/user.github.io/_drafts/how-to-install-arch-linu-on-wsl.md", section = "grammarly" } } }}
[INFO][2022-07-16 16:07:52] ...lsp/handlers.lua:459 "open file:///home/user/sites/user.github.io/_drafts/how-to-install-arch-linu-on-wsl.md"
[DEBUG][2022-07-16 16:07:52] .../vim/lsp/rpc.lua:464 "server_request: callback result" { result = { vim.NIL }, status = true}
[DEBUG][2022-07-16 16:07:52] .../vim/lsp/rpc.lua:347 "rpc.send" { id = 0, jsonrpc = "2.0", result = { vim.NIL }}
[ERROR][2022-07-16 16:07:52] .../vim/lsp/rpc.lua:420 "rpc" "grammarly-languageserver" "stderr" "node:internal/deps/undici/undici:4813\n throw new TypeError(\"Failed to parse URL from \" + input, { cause: err });\n ^\n\nTypeError: Failed to parse URL from /home/user/.local/share/nvim/lsp_servers/grammarly/node_modules/grammarly-languageserver/node_modules/web-tree-sitter/tree-sitter.wasm\n at new Request (node:internal/deps/undici/undici:4813:19)\n at Agent.fetch2 (node:internal/deps/undici/undici:5505:29)\n ... 4 lines matching cause stack trace ...\n at new Promise (<anonymous>)\n at Parser.init (/home/user/.local/share/nvim/lsp_servers/grammarly/node_modules/grammarly-languageserver/node_modules/web-tree-sitter/tree-sitter.js:1:332)\n at createParserInner (/home/user/.local/share/nvim/lsp_servers/grammarly/node_modules/grammarly-languageserver/node_modules/grammarly-richtext-encoder/dist/index.cjs:449:42)\n at Object.createParser (/home/user/.local/share/nvim/lsp_servers/grammarly/node_modules/grammarly-languageserver/node_modules/grammarly-richtext-encoder/dist/index.cjs:445:20) {\n [cause]: TypeError [ERR_INVALID_URL]: Invalid URL\n at new NodeError (node:internal/errors:377:5)\n at URL.onParseError (node:internal/url:563:9)\n at new URL (node:internal/url:643:5)\n at new Request (node:internal/deps/undici/undici:4811:25)\n at Agent.fetch2 (node:internal/deps/undici/undici:5505:29)\n at Object.fetch (node:internal/deps/undici/undici:6332:20)\n at fetch (node:internal/bootstrap/pre_execution:196:25)\n at /home/user/.local/share/nvim/lsp_servers/grammarly/node_modules/grammarly-languageserver/node_modules/web-tree-sitter/tree-sitter.js:1:15192\n at /home/user/.local/share/nvim/lsp_servers/grammarly/node_modules/grammarly-languageserver/node_modules/web-tree-sitter/tree-sitter.js:1:15413\n at new Promise (<anonymous>) {\n input: '/home/user/.local/share/nvim/lsp_servers/grammarly/node_modules/grammarly-languageserver/node_modules/web-tree-sitter/tree-sitter.wasm',\n code: 'ERR_INVALID_URL'\n }\n}\n\nNode.js v18.3.0\n"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment