Advertisement
Guest User

Untitled

a guest
Nov 26th, 2020
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.53 KB | None | 0 0
  1. Version: 0.2.6
  2.  
  3. explicitSourcePath: C:\Users\Arjun\.choosenim\toolchains\nim-1.4.0
  4.  
  5. Trying to read frame
  6.  
  7. Got frame:
  8. {"jsonrpc":"2.0","method":"initialize","params":{"processId":null,"rootPath":"d:/Code/nim/test_karax","clientInfo":{"name":"emacs","version":"GNU Emacs 27.1 (build 1, x86_64-w64-mingw32)\n of 2020-08-21"},"rootUri":"file:///d%3A/Code/nim/test_karax","capabilities":{"workspace":{"workspaceEdit":{"documentChanges":true,"resourceOperations":["create","rename","delete"]},"applyEdit":true,"symbol":{"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]}},"executeCommand":{"dynamicRegistration":false},"didChangeWatchedFiles":{"dynamicRegistration":true},"workspaceFolders":true,"configuration":true},"textDocument":{"declaration":{"linkSupport":true},"definition":{"linkSupport":true},"implementation":{"linkSupport":true},"typeDefinition":{"linkSupport":true},"synchronization":{"willSave":true,"didSave":true,"willSaveWaitUntil":true},"documentSymbol":{"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},"formatting":{"dynamicRegistration":true},"rangeFormatting":{"dynamicRegistration":true},"rename":{"dynamicRegistration":true,"prepareSupport":true},"codeAction":{"dynamicRegistration":true,"isPreferredSupport":true,"codeActionLiteralSupport":{"codeActionKind":{"valueSet":["","quickfix","refactor","refactor.extract","refactor.inline","refactor.rewrite","source","source.organizeImports"]}}},"completion":{"completionItem":{"snippetSupport":true,"documentationFormat":["markdown"],"resolveAdditionalTextEditsSupport":true},"contextSupport":true},"signatureHelp":{"signatureInformation":{"parameterInformation":{"labelOffsetSupport":true}}},"documentLink":{"dynamicRegistration":true,"tooltipSupport":true},"hover":{"contentFormat":["markdown","plaintext"]},"foldingRange":{"dynamicRegistration":true},"callHierarchy":{"dynamicRegistration":false},"publishDiagnostics":{"relatedInformation":true,"tagSupport":{"valueSet":[1,2]},"versionSupport":true}},"window":{"workDoneProgress":true}},"initializationOptions":null,"workDoneToken":"1"},"id":90}
  9.  
  10.  
  11. Got valid Request message of type initialize
  12.  
  13. Got initialize request, answering
  14.  
  15. Trying to read frame
  16.  
  17. Got frame:
  18. {"jsonrpc":"2.0","method":"initialized","params":{}}
  19.  
  20.  
  21. Unable to parse data as RequestMessage
  22.  
  23. Got valid Notification message of type initialized
  24.  
  25. Properly initialized
  26.  
  27. Trying to read frame
  28.  
  29. Got frame:
  30. {"jsonrpc":"2.0","method":"textDocument/didOpen","params":{"textDocument":{"uri":"file:///d%3A/Code/nim/test_karax/kar.nim","languageId":"nim","version":77,"text":"# use INCLUDE\ninclude karax / prelude\ninclude karax / kdom\nimport streams\nimport strutils\n\n\nvar lines: seq[kstring] = @[]\n\n\nproc hello(): VNode =\n result = buildHtml(tdiv):\n h1: text \"Hello, world!\"\n button:\n text \"click me\"\n h\n proc onclick(ev: Event, n: VNode) =\n lines.add \"Hello, simulated universe\"\n proc ondblclick(ev: Event, n: VNode) =\n echo ev[]\n echo \"LOL\"\n for x in lines:\n tdiv: text x\n\nsetRenderer hello\n"}}}
  31.  
  32.  
  33. Unable to parse data as RequestMessage
  34.  
  35. Got valid Notification message of type textDocument/didOpen
  36.  
  37. New document opened for URI: file:///d%3A/Code/nim/test_karax/kar.nim saving to C:\Users\Arjun\AppData\Local\Temp\nimlsp\0000000088CDB7C8.nim
  38.  
  39. Initialising project with d:\Code\nim\test_karax\kar.nim:C:\Users\Arjun\.choosenim\toolchains\nim-1.4.0
  40.  
  41. Trying to read frame
  42.  
  43. Got frame:
  44. {"jsonrpc":"2.0","method":"textDocument/completion","params":{"textDocument":{"uri":"file:///d%3A/Code/nim/test_karax/kar.nim"},"position":{"line":15,"character":7},"context":{"triggerKind":1}},"id":91}
  45.  
  46.  
  47. Got valid Request message of type textDocument/completion
  48.  
  49. Got request for URI: file:///d%3A/Code/nim/test_karax/kar.nim copied to C:\Users\Arjun\AppData\Local\Temp\nimlsp\0000000088CDB7C8.nim
  50.  
  51. Running equivalent of: sug d:\Code\nim\test_karax\kar.nim;C:\Users\Arjun\AppData\Local\Temp\nimlsp\0000000088CDB7C8.nim:16:7
  52.  
  53. Found suggestions: @[(section: ideSug, symKind: skProc, qualifiedPath: kar.hello, forth: proc (): VNode, filePath: d:\Code\nim\test_karax\kar.nim, line: 11, column: 5, doc: , quality: 0, line: 11, prefix: None), (section: ideSug, symKind: skVar, qualifiedPath: kar.lines, forth: seq[kstring], filePath: d:\Code\nim\test_karax\kar.nim, line: 8, column: 4, doc: , quality: 0, line: 8, prefix: None), (section: ideSug, symKind: skMacro, qualifiedPath: karaxdsl.buildHtml, forth: macro (tag: untyped, children: untyped): VNode{.noSideEffect, gcsafe, locks: <unknown>.}, filePath: D:\Code\nim\test_karax\karax\karax\karaxdsl.nim, line: 177, column: 6, doc: , quality: 0, line: 177, prefix: None), (section: ideSug, symKind: skProc, qualifiedPath: karax.setRenderer, forth: proc (renderer: proc (): VNode{.closure.}, root: cstring, clientPostRenderCallback: proc (){.closure.}): KaraxInstance{.locks: 0.}, filePath: D:\Code\nim\test_karax\karax\karax\karax.nim, line: 715, column: 5, doc: Setup Karax. Usually the return value can be ignored., quality: 0, line: 715, prefix: None), (section: ideSug, symKind: skProc, qualifiedPath: system.defined, forth: proc (x: untyped): bool{.noSideEffect.}, filePath: C:\Users\Arjun\.choosenim\toolchains\nim-1.4.0\lib\system.nim, line: 94, column: 5, doc: Special compile-time procedure that checks whether `x` is
  54. defined.
  55.  
  56. `x` is an external symbol introduced through the compiler's
  57. `-d:x switch <nimc.html#compiler-usage-compile-time-symbols>`_ to enable
  58. build time conditionals:
  59.  
  60. .. code-block:: Nim
  61. when not defined(release):
  62. # Do here programmer friendly expensive sanity checks.
  63. # Put here the normal code, quality: 0, line: 94, prefix: None), (section: ideSug, symKind: skProc, qualifiedPath: system.runnableExamples, forth: proc (rdoccmd: string, body: untyped), filePath: C:\Users\Arjun\.choosenim\toolchains\nim-1.4.0\lib\system.nim, line: 120, column: 7, doc: A section you should use to mark `runnable example`:idx: code with.
  64.  
  65. - In normal debug and release builds code within
  66. a ``runnableExamples`` section is ignored.
  67. - The documentation generator is aware of these examples and considers them
  68. part of the ``##`` doc comment. As the last step of documentation
  69. generation each runnableExample is put in its own file ``$file_examples$i.nim``,
  70. compiled and tested. The collected examples are
  71. put into their own module to ensure the examples do not refer to
  72. non-exported symbols.
  73.  
  74. Usage:
  75.  
  76. .. code-block:: Nim
  77. proc double*(x: int): int =
  78. ## This proc doubles a number.
  79. runnableExamples:
  80. ## at module scope
  81. assert double(5) == 10
  82. block: ## at block scope
  83. defer: echo "done"
  84. result = 2 * x
  85. runnableExamples "-d:foo -b:cpp":
  86. import std/compilesettings
  87. doAssert querySetting(backend) == "cpp"
  88. runnableExamples "-r:off": ## this one is only compiled
  89. import std/browsers
  90. openDefaultBrowser "https://forum.nim-lang.org/", quality: 0, line: 120, prefix: None), (section: ideSug, symKind: skProc, qualifiedPath: system.len, forth: proc (x: string): int{.noSideEffect.}, filePath: C:\Users\Arjun\.choosenim\toolchains\nim-1.4.0\lib\system.nim, line: 697, column: 5, doc: Returns the length of a string.
  91.  
  92. .. code-block:: Nim
  93. var str = "Hello world!"
  94. echo len(str) # => 12, quality: 0, line: 697, prefix: None), (section: ideSug, symKind: skProc, qualifiedPath: system.inc, forth: proc (x: var T: Ordinal, y: int){.noSideEffect.}, filePath: C:\Users\Arjun\.choosenim\toolchains\nim-1.4.0\lib\system\arithmetics.nim, line: 25, column: 5, doc: Increments the ordinal ``x`` by ``y``.
  95.  
  96. If such a value does not exist, ``OverflowDefect`` is raised or a compile
  97. time error occurs. This is a short notation for: ``x = succ(x, y)``.
  98.  
  99. .. code-block:: Nim
  100. var i = 2
  101. inc(i) # i <- 3
  102. inc(i, 3) # i <- 6, quality: 0, line: 25, prefix: None), (section: ideSug, symKind: skProc, qualifiedPath: system.add, forth: proc (x: var string, y: string){.noSideEffect.}, filePath: C:\Users\Arjun\.choosenim\toolchains\nim-1.4.0\lib\system.nim, line: 1026, column: 5, doc: Concatenates `x` and `y` in place.
  103.  
  104. .. code-block:: Nim
  105. var tmp = ""
  106. tmp.add("ab")
  107. tmp.add("cd")
  108. assert(tmp == "abcd"), quality: 0, line: 1026, prefix: None), (section: ideSug, symKind: skEnumField, qualifiedPath: system.bool.true, forth: bool, filePath: C:\Users\Arjun\.choosenim\toolchains\nim-1.4.0\lib\system\basic_types.nim, line: 16, column: 15, doc: , quality: 0, line: 16, prefix: None), (section: ideSug, symKind: skEnumField, qualifiedPath: system.bool.false, forth: bool, filePath: C:\Users\Arjun\.choosenim\toolchains\nim-1.4.0\lib\system\basic_types.nim, line: 16, column: 4, doc: , quality: 0, line: 16, prefix: None)] and 1097 more
  109.  
  110. Trying to read frame
  111.  
  112. Got frame:
  113. {"jsonrpc":"2.0","method":"$/cancelRequest","params":{"id":91}}
  114.  
  115.  
  116. Unable to parse data as RequestMessage
  117.  
  118. Got valid Notification message of type $/cancelRequest
  119.  
  120. Got unknown notification message
  121.  
  122. Trying to read frame
  123.  
  124. Got frame:
  125. {"jsonrpc":"2.0","method":"textDocument/completion","params":{"textDocument":{"uri":"file:///d%3A/Code/nim/test_karax/kar.nim"},"position":{"line":15,"character":7},"context":{"triggerKind":1}},"id":92}
  126.  
  127.  
  128. Got valid Request message of type textDocument/completion
  129.  
  130. Got request for URI: file:///d%3A/Code/nim/test_karax/kar.nim copied to C:\Users\Arjun\AppData\Local\Temp\nimlsp\0000000088CDB7C8.nim
  131.  
  132. Running equivalent of: sug d:\Code\nim\test_karax\kar.nim;C:\Users\Arjun\AppData\Local\Temp\nimlsp\0000000088CDB7C8.nim:16:7
  133.  
  134.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement