Paste: LSP log

Author: andy
Mode: factor
Date: Thu, 24 Apr 2025 22:14:15
Plain Text |
[18:11]lsp started
[18:11]start: ""
[18:11]input-full: "Content-Length: 4605\r\n"
[18:11]read: "{\"jsonrpc\":\"2.0\",\"id\":1,\"method\":\"initialize\",\"params\":{\"processId\":32277,\"clientInfo\":{\"name\":\"Sublime Text LSP\",\"version\":\"2.3.0\"},\"rootUri\":\"file:///home/andy/Code/factor-vocabs/nestedtext\",\"rootPath\":\"/home/andy/Code/factor-vocabs/nestedtext\",\"workspaceFolders\":[{\"name\":\"nestedtext\",\"uri\":\"file:///home/andy/Code/factor-vocabs/nestedtext\"}],\"capabilities\":{\"general\":{\"regularExpressions\":{\"engine\":\"ECMAScript\"},\"markdown\":{\"parser\":\"Python-Markdown\",\"version\":\"3.2.2\"}},\"textDocument\":{\"synchronization\":{\"dynamicRegistration\":true,\"didSave\":true,\"willSave\":true,\"willSaveWaitUntil\":true},\"hover\":{\"dynamicRegistration\":true,\"contentFormat\":[\"markdown\",\"plaintext\"]},\"completion\":{\"dynamicRegistration\":true,\"completionItem\":{\"snippetSupport\":true,\"deprecatedSupport\":true,\"documentationFormat\":[\"markdown\",\"plaintext\"],\"tagSupport\":{\"valueSet\":[1]},\"resolveSupport\":{\"properties\":[\"detail\",\"documentation\",\"additionalTextEdits\"]},\"insertReplaceSupport\":true,\"insertTextModeSupport\":{\"valueSet\":[2]},\"labelDetailsSupport\":true},\"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]},\"insertTextMode\":2,\"completionList\":{\"itemDefaults\":[\"editRange\",\"insertTextFormat\",\"data\"]}},\"signatureHelp\":{\"dynamicRegistration\":true,\"contextSupport\":true,\"signatureInformation\":{\"activeParameterSupport\":true,\"documentationFormat\":[\"markdown\",\"plaintext\"],\"parameterInformation\":{\"labelOffsetSupport\":true}}},\"references\":{\"dynamicRegistration\":true},\"documentHighlight\":{\"dynamicRegistration\":true},\"documentSymbol\":{\"dynamicRegistration\":true,\"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]},\"tagSupport\":{\"valueSet\":[1]}},\"documentLink\":{\"dynamicRegistration\":true,\"tooltipSupport\":true},\"formatting\":{\"dynamicRegistration\":true},\"rangeFormatting\":{\"dynamicRegistration\":true,\"rangesSupport\":true},\"declaration\":{\"dynamicRegistration\":true,\"linkSupport\":true},\"definition\":{\"dynamicRegistration\":true,\"linkSupport\":true},\"typeDefinition\":{\"dynamicRegistration\":true,\"linkSupport\":true},\"implementation\":{\"dynamicRegistration\":true,\"linkSupport\":true},\"codeAction\":{\"dynamicRegistration\":true,\"codeActionLiteralSupport\":{\"codeActionKind\":{\"valueSet\":[\"quickfix\",\"refactor\",\"refactor.extract\",\"refactor.inline\",\"refactor.rewrite\",\"source.fixAll\",\"source.organizeImports\"]}},\"dataSupport\":true,\"isPreferredSupport\":true,\"resolveSupport\":{\"properties\":[\"edit\"]}},\"rename\":{\"dynamicRegistration\":true,\"prepareSupport\":true,\"prepareSupportDefaultBehavior\":1},\"colorProvider\":{\"dynamicRegistration\":true},\"publishDiagnostics\":{\"relatedInformation\":true,\"tagSupport\":{\"valueSet\":[1,2]},\"versionSupport\":true,\"codeDescriptionSupport\":true,\"dataSupport\":true},\"diagnostic\":{\"dynamicRegistration\":true,\"relatedDocumentSupport\":true},\"selectionRange\":{\"dynamicRegistration\":true},\"foldingRange\":{\"dynamicRegistration\":true,\"foldingRangeKind\":{\"valueSet\":[\"comment\",\"imports\",\"region\"]}},\"codeLens\":{\"dynamicRegistration\":true},\"inlayHint\":{\"dynamicRegistration\":true,\"resolveSupport\":{\"properties\":[\"textEdits\",\"label.command\"]}},\"semanticTokens\":{\"dynamicRegistration\":true,\"requests\":{\"range\":true,\"full\":{\"delta\":true}},\"tokenTypes\":[\"namespace\",\"type\",\"class\",\"enum\",\"interface\",\"struct\",\"typeParameter\",\"parameter\",\"variable\",\"property\",\"enumMember\",\"event\",\"function\",\"method\",\"macro\",\"keyword\",\"modifier\",\"comment\",\"string\",\"number\",\"regexp\",\"operator\",\"decorator\",\"label\"],\"tokenModifiers\":[\"declaration\",\"definition\",\"readonly\",\"static\",\"deprecated\",\"abstract\",\"async\",\"modification\",\"documentation\",\"defaultLibrary\"],\"formats\":[\"relative\"],\"overlappingTokenSupport\":false,\"multilineTokenSupport\":true,\"augmentsSyntaxTokens\":true},\"callHierarchy\":{\"dynamicRegistration\":true},\"typeHierarchy\":{\"dynamicRegistration\":true}},\"workspace\":{\"applyEdit\":true,\"didChangeConfiguration\":{\"dynamicRegistration\":true},\"executeCommand\":{},\"workspaceEdit\":{\"documentChanges\":true,\"failureHandling\":\"abort\"},\"workspaceFolders\":true,\"symbol\":{\"dynamicRegistration\":true,\"resolveSupport\":{\"properties\":[\"location.range\"]},\"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]}},\"configuration\":true,\"codeLens\":{\"refreshSupport\":true},\"inlayHint\":{\"refreshSupport\":true},\"semanticTokens\":{\"refreshSupport\":true},\"diagnostics\":{\"refreshSupport\":true}},\"window\":{\"showDocument\":{\"support\":true},\"showMessage\":{\"messageActionItem\":{\"additionalPropertiesSupport\":true}},\"workDoneProgress\":true}},\"initializationOptions\":{}}}"
[18:11]remainder: ""
[18:11]overread: 0
[18:11]result: "{\"jsonrpc\":\"2.0\",\"id\":1,\"method\":\"initialize\",\"params\":{\"processId\":32277,\"clientInfo\":{\"name\":\"Sublime Text LSP\",\"version\":\"2.3.0\"},\"rootUri\":\"file:///home/andy/Code/factor-vocabs/nestedtext\",\"rootPath\":\"/home/andy/Code/factor-vocabs/nestedtext\",\"workspaceFolders\":[{\"name\":\"nestedtext\",\"uri\":\"file:///home/andy/Code/factor-vocabs/nestedtext\"}],\"capabilities\":{\"general\":{\"regularExpressions\":{\"engine\":\"ECMAScript\"},\"markdown\":{\"parser\":\"Python-Markdown\",\"version\":\"3.2.2\"}},\"textDocument\":{\"synchronization\":{\"dynamicRegistration\":true,\"didSave\":true,\"willSave\":true,\"willSaveWaitUntil\":true},\"hover\":{\"dynamicRegistration\":true,\"contentFormat\":[\"markdown\",\"plaintext\"]},\"completion\":{\"dynamicRegistration\":true,\"completionItem\":{\"snippetSupport\":true,\"deprecatedSupport\":true,\"documentationFormat\":[\"markdown\",\"plaintext\"],\"tagSupport\":{\"valueSet\":[1]},\"resolveSupport\":{\"properties\":[\"detail\",\"documentation\",\"additionalTextEdits\"]},\"insertReplaceSupport\":true,\"insertTextModeSupport\":{\"valueSet\":[2]},\"labelDetailsSupport\":true},\"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]},\"insertTextMode\":2,\"completionList\":{\"itemDefaults\":[\"editRange\",\"insertTextFormat\",\"data\"]}},\"signatureHelp\":{\"dynamicRegistration\":true,\"contextSupport\":true,\"signatureInformation\":{\"activeParameterSupport\":true,\"documentationFormat\":[\"markdown\",\"plaintext\"],\"parameterInformation\":{\"labelOffsetSupport\":true}}},\"references\":{\"dynamicRegistration\":true},\"documentHighlight\":{\"dynamicRegistration\":true},\"documentSymbol\":{\"dynamicRegistration\":true,\"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]},\"tagSupport\":{\"valueSet\":[1]}},\"documentLink\":{\"dynamicRegistration\":true,\"tooltipSupport\":true},\"formatting\":{\"dynamicRegistration\":true},\"rangeFormatting\":{\"dynamicRegistration\":true,\"rangesSupport\":true},\"declaration\":{\"dynamicRegistration\":true,\"linkSupport\":true},\"definition\":{\"dynamicRegistration\":true,\"linkSupport\":true},\"typeDefinition\":{\"dynamicRegistration\":true,\"linkSupport\":true},\"implementation\":{\"dynamicRegistration\":true,\"linkSupport\":true},\"codeAction\":{\"dynamicRegistration\":true,\"codeActionLiteralSupport\":{\"codeActionKind\":{\"valueSet\":[\"quickfix\",\"refactor\",\"refactor.extract\",\"refactor.inline\",\"refactor.rewrite\",\"source.fixAll\",\"source.organizeImports\"]}},\"dataSupport\":true,\"isPreferredSupport\":true,\"resolveSupport\":{\"properties\":[\"edit\"]}},\"rename\":{\"dynamicRegistration\":true,\"prepareSupport\":true,\"prepareSupportDefaultBehavior\":1},\"colorProvider\":{\"dynamicRegistration\":true},\"publishDiagnostics\":{\"relatedInformation\":true,\"tagSupport\":{\"valueSet\":[1,2]},\"versionSupport\":true,\"codeDescriptionSupport\":true,\"dataSupport\":true},\"diagnostic\":{\"dynamicRegistration\":true,\"relatedDocumentSupport\":true},\"selectionRange\":{\"dynamicRegistration\":true},\"foldingRange\":{\"dynamicRegistration\":true,\"foldingRangeKind\":{\"valueSet\":[\"comment\",\"imports\",\"region\"]}},\"codeLens\":{\"dynamicRegistration\":true},\"inlayHint\":{\"dynamicRegistration\":true,\"resolveSupport\":{\"properties\":[\"textEdits\",\"label.command\"]}},\"semanticTokens\":{\"dynamicRegistration\":true,\"requests\":{\"range\":true,\"full\":{\"delta\":true}},\"tokenTypes\":[\"namespace\",\"type\",\"class\",\"enum\",\"interface\",\"struct\",\"typeParameter\",\"parameter\",\"variable\",\"property\",\"enumMember\",\"event\",\"function\",\"method\",\"macro\",\"keyword\",\"modifier\",\"comment\",\"string\",\"number\",\"regexp\",\"operator\",\"decorator\",\"label\"],\"tokenModifiers\":[\"declaration\",\"definition\",\"readonly\",\"static\",\"deprecated\",\"abstract\",\"async\",\"modification\",\"documentation\",\"defaultLibrary\"],\"formats\":[\"relative\"],\"overlappingTokenSupport\":false,\"multilineTokenSupport\":true,\"augmentsSyntaxTokens\":true},\"callHierarchy\":{\"dynamicRegistration\":true},\"typeHierarchy\":{\"dynamicRegistration\":true}},\"workspace\":{\"applyEdit\":true,\"didChangeConfiguration\":{\"dynamicRegistration\":true},\"executeCommand\":{},\"workspaceEdit\":{\"documentChanges\":true,\"failureHandling\":\"abort\"},\"workspaceFolders\":true,\"symbol\":{\"dynamicRegistration\":true,\"resolveSupport\":{\"properties\":[\"location.range\"]},\"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]}},\"configuration\":true,\"codeLens\":{\"refreshSupport\":true},\"inlayHint\":{\"refreshSupport\":true},\"semanticTokens\":{\"refreshSupport\":true},\"diagnostics\":{\"refreshSupport\":true}},\"window\":{\"showDocument\":{\"support\":true},\"showMessage\":{\"messageActionItem\":{\"additionalPropertiesSupport\":true}},\"workDoneProgress\":true}},\"initializationOptions\":{}}}"
[18:11]Content-Length: 340

{"jsonrpc":"2.0","result":{"capabilities":{"positionEncoding":"utf-8","executeCommandProvider":{"commands":["article"]},"completionProvider":{"labelDetailsSupport":true},"definitionProvider":true,"textDocumentSync":2,"hoverProvider":true,"signatureHelpProvider":{}},"serverInfo":{"name":"factor-lsp","version":"0.0.1"}},"error":null,"id":1}
[18:11]Content-Length: 54

{"jsonrpc":"2.0","params":null,"method":"initialized"}
[18:11]Content-Length: 97

{"jsonrpc":"2.0","params":{"message":"factor-lsp loaded","type":3},"method":"window/showMessage"}
[18:11]start: ""
[18:11]input-full: "Content-Length: 44\r\n"
[18:11]read: "{\"jsonrpc\":\"2.0\",\"id\":2,\"method\":\"shutdown\"}"
[18:11]remainder: ""
[18:11]overread: 0
[18:11]result: "{\"jsonrpc\":\"2.0\",\"id\":2,\"method\":\"shutdown\"}"
[18:11]Content-Length: 51

{"jsonrpc":"2.0","result":null,"error":null,"id":2}
[18:11]start: ""
[18:11]input-full: "Content-Length: 33\r\n"
[18:11]read: "{\"jsonrpc\":\"2.0\",\"method\":\"exit\"}"
[18:11]remainder: ""
[18:11]overread: 0
[18:11]result: "{\"jsonrpc\":\"2.0\",\"method\":\"exit\"}"
[18:11]lsp crashed
[18:11]T{ not-implemented-yet }
[18:11]T{ continuation
  { data
    {
      100
      ""
      T{ lsp-server { documents H{ } } { initialized? t } }
      H{ { "jsonrpc" "2.0" } { "method" "exit" } }
      T{ not-implemented-yet }
    }
  }
  { call
    CS{
      [
        OBJ-CURRENT-THREAD special-object error-thread
        set-global
        current-continuation error-continuation set-global
        [ original-error set-global ] [ rethrow ] bi
      ] [
        OBJ-CURRENT-THREAD special-object error-thread
        set-global
        current-continuation error-continuation set-global
        [ original-error set-global ] [ rethrow ] bi
      ] 4 M\ object throw M\ object throw -1 not-implemented-yet
      not-implemented-yet -1 M\ lsp-exit lsp-reply
      M\ lsp-exit lsp-reply -1 lsp-server-run lsp-server-run
      -1 command-line-startup command-line-startup -1 [
        [ (get-catchstack) push ] dip call (get-catchstack) pop*
      ] [
        [ (get-catchstack) push ] dip call (get-catchstack) pop*
      ] 2 c-to-factor [ c-to-factor ] 1
    }
  }
  { retain { } }
  { name
    V{
      T{ global-hashtable
        { boxes
          H{
            {
              vm-path
              T{ global-box
                { value "/home/andy/Code/factor/factor" }
              }
            }
            { input-stream T{ global-box { value ~decoder~ } } }
            {
              current-cache-directory
              T{ global-box
                { value "/home/andy/.cache/factor" }
              }
            }
            {
              samples-per-second
              T{ global-box { value 1000 } }
            }
            { tips T{ global-box { value ~vector~ } } }
            {
              name>char-hook
              T{ global-box { value ~quotation~ } }
            }
            {
              emphasis-style
              T{ global-box { value ~hashtable~ } }
            }
            {
              +gl-function-pointers+
              T{ global-box { value ~hashtable~ } }
            }
            {
              H{
                { border-color COLOR: FactorTan }
                { page-color COLOR: FactorLightTan }
                { inset ~array~ }
              }
              T{ global-box { value ~hashtable~ } }
            }
            { restartable-tests? T{ global-box { value t } } }
            {
              endianness
              T{ global-box { value little-endian } }
            }
            { "user-init" T{ global-box { value t } } }
            {
              functor-words
              T{ global-box { value ~hashtable~ } }
            }
            { os T{ global-box { value linux } } }
            {
              "include"
              T{ global-box
                { value
                  "math compiler threads io tools ui ui.tools unicode help handbook"
                }
              }
            }
            {
              operations
              T{ global-box { value ~linked-assoc~ } }
            }
            {
              ui-error-hook
              T{ global-box { value ~quotation~ } }
            }
            {
              listener-output-style
              T{ global-box { value ~hashtable~ } }
            }
            {
              last-word
              T{ global-box { value lsp-diagnostics } }
            }
            { hand-clicked T{ global-box } }
            { ssl-initialized? T{ global-box } }
            { vocab-roots T{ global-box { value ~vector~ } } }
            { bullet T{ global-box { value " " } } }
            {
              random-generator
              T{ global-box { value ~mersenne-twister~ } }
            }
            { update-map T{ global-box { value ~hashtable~ } } }
            { world T{ global-box } }
            { e>n-table T{ global-box { value ~hashtable~ } } }
            {
              callback-error-hook
              T{ global-box { value ~quotation~ } }
            }
            {
              base-effect-style
              T{ global-box { value ~hashtable~ } }
            }
            { code-style T{ global-box { value ~hashtable~ } } }
            { silent-tests? T{ global-box } }
            { log-level T{ global-box { value DEBUG } } }
            { disposables T{ global-box { value ~hash-set~ } } }
            { local-node T{ global-box } }
            {
              recent-searches
              T{ global-box { value ~vector~ } }
            }
            { gesture-queue T{ global-box { value ~dlist~ } } }
            {
              list-content-style
              T{ global-box { value ~hashtable~ } }
            }
            {
              open-directory-after-deploy?
              T{ global-box { value t } }
            }
            { tab-size T{ global-box { value 2 } } }
            { hand-world T{ global-box } }
            {
              table-style
              T{ global-box { value ~hashtable~ } }
            }
            {
              recent-articles
              T{ global-box { value ~vector~ } }
            }
            { log-root T{ global-box } }
            { type-infos T{ global-box { value ~hashtable~ } } }
            {
              current-directory
              T{ global-box
                { value
                  "/home/andy/Code/factor-vocabs/nestedtext"
                }
              }
            }
            { next-id T{ global-box { value 1197 } } }
            {
              subsection-style
              T{ global-box { value ~hashtable~ } }
            }
            {
              registered-remote-threads
              T{ global-box { value ~hashtable~ } }
            }
            { processes T{ global-box { value ~hashtable~ } } }
            { insn-classes T{ global-box { value ~vector~ } } }
            { recent-words T{ global-box { value ~vector~ } } }
            {
              user-init-errors
              T{ global-box { value ~hashtable~ } }
            }
            { "log-server" T{ global-box { value ~thread~ } } }
            {
              blink-interval
              T{ global-box { value ~duration~ } }
            }
            { "e" T{ global-box } }
            { load-help? T{ global-box { value t } } }
            {
              core-bootstrap-time
              T{ global-box { value 262275142533 } }
            }
            {
              "i"
              T{ global-box { value "boot.unix-x86.64.image" } }
            }
            { display-stacks? T{ global-box { value t } } }
            { json-allow-fp-special? T{ global-box } }
            { ui-thread T{ global-box } }
            { link-prefix T{ global-box } }
            { vm-version T{ global-box { value "0.101" } } }
            { nesting-limit T{ global-box { value 15 } } }
            {
              vm-compiler
              T{ global-box { value "GCC 14.2.1 20250207" } }
            }
            { drag-timer T{ global-box { value ~box~ } } }
            {
              disassembler-backend
              T{ global-box { value udis-disassembler } }
            }
            {
              deprecation-notes
              T{ global-box { value ~hashtable~ } }
            }
            {
              next-method-quot-cache
              T{ global-box { value ~hashtable~ } }
            }
            {
              base16-theme-name
              T{ global-box { value "greenscreen" } }
            }
            { margin T{ global-box { value 64 } } }
            { editor-class T{ global-box { value sublime } } }
            { origin T{ global-box { value ~array~ } } }
            {
              table-content-style
              T{ global-box { value ~hashtable~ } }
            }
            { "exclude" T{ global-box { value "" } } }
            { error-stream T{ global-box { value ~encoder~ } } }
            { ui-notify-flag T{ global-box { value ~flag~ } } }
            { builtins T{ global-box { value ~array~ } } }
            { cpu T{ global-box { value x86.64 } } }
            { ducet T{ global-box { value ~hashtable~ } } }
            { unique-length T{ global-box { value 10 } } }
            { wait-flag T{ global-box { value ~flag~ } } }
            {
              tip-of-the-day-style
              T{ global-box { value ~hashtable~ } }
            }
            {
              default-font-foreground
              T{ global-box { value COLOR: #bdc1c6 } }
            }
            { hand-last-button T{ global-box { value 0 } } }
            {
              image-path
              T{ global-box
                { value "/home/andy/Code/factor/factor.image" }
              }
            }
            {
              output-style
              T{ global-box { value ~hashtable~ } }
            }
            { indenter T{ global-box { value "  " } } }
            { json-coerce-keys? T{ global-box { value t } } }
            {
              thread-error-hook
              T{ global-box { value ~quotation~ } }
            }
            {
              base-word-style
              T{ global-box { value ~hashtable~ } }
            }
            {
              error-destructors
              T{ global-box { value ~vector~ } }
            }
            { tag-mask T{ global-box { value 15 } } }
            {
              wait-for-callback-hook
              T{ global-box { value ~quotation~ } }
            }
            {
              error-continuation
              T{ global-box { value ~continuation~ } }
            }
            {
              print-use-hook
              T{ global-box { value ~quotation~ } }
            }
            { io-backend T{ global-box { value linux } } }
            { error-types T{ global-box { value ~vector~ } } }
            { link-suffix T{ global-box } }
            ~174 more~
          }
        }
      }
      H{ { lsp-logfile "/tmp/FLSP.log" } }
    }
  }
  { catch
    V{
      T{ continuation
        { data { f } }
        { call
          CS{
            [ dummy-1 current-continuation or? ]
            [ dummy-1 current-continuation or? ] 1 ifcc [
              [ dummy-1 current-continuation or? ] 2dip
              [ dummy-2 ] prepose if
            ] 1 c-to-factor [ c-to-factor ] 1
          }
        }
        { retain
          {
            [
              [ do-startup-hooks command-line-startup ]
              [ (get-catchstack) push ]
              dip
              call
              (get-catchstack)
              pop*
            ]
            [ print-error nl :c flush 1 exit ]
          }
        }
        { name
          V{ T{ global-hashtable { boxes ~hashtable~ } } }
        }
        { catch V{ } }
      }
      T{ continuation
        { data { f } }
        { call
          CS{
            lsp-server-run lsp-server-run
            -1 command-line-startup command-line-startup -1 [
              [ (get-catchstack) push ] dip call
              (get-catchstack) pop*
            ] [
              [ (get-catchstack) push ] dip call
              (get-catchstack) pop*
            ] 2 c-to-factor [ c-to-factor ] 1
          }
        }
        { retain { } }
        { name
          V{
            T{ global-hashtable { boxes ~hashtable~ } }
            H{ { lsp-logfile "/tmp/FLSP.log" } }
          }
        }
        { catch
          V{
            T{ continuation
              { data ~array~ }
              { call ~callstack~ }
              { retain ~array~ }
              { name ~vector~ }
              { catch ~vector~ }
            }
          }
        }
      }
    }
  }
}

New Annotation

Summary:
Author:
Mode:
Body: