Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Version: 0.2.6
- explicitSourcePath: C:\Users\Arjun\.choosenim\toolchains\nim-1.4.0
- Trying to read frame
- Got frame:
- {"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}
- Got valid Request message of type initialize
- Got initialize request, answering
- Trying to read frame
- Got frame:
- {"jsonrpc":"2.0","method":"initialized","params":{}}
- Unable to parse data as RequestMessage
- Got valid Notification message of type initialized
- Properly initialized
- Trying to read frame
- Got frame:
- {"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"}}}
- Unable to parse data as RequestMessage
- Got valid Notification message of type textDocument/didOpen
- 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
- Initialising project with d:\Code\nim\test_karax\kar.nim:C:\Users\Arjun\.choosenim\toolchains\nim-1.4.0
- Trying to read frame
- Got frame:
- {"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}
- Got valid Request message of type textDocument/completion
- Got request for URI: file:///d%3A/Code/nim/test_karax/kar.nim copied to C:\Users\Arjun\AppData\Local\Temp\nimlsp\0000000088CDB7C8.nim
- Running equivalent of: sug d:\Code\nim\test_karax\kar.nim;C:\Users\Arjun\AppData\Local\Temp\nimlsp\0000000088CDB7C8.nim:16:7
- 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
- defined.
- `x` is an external symbol introduced through the compiler's
- `-d:x switch <nimc.html#compiler-usage-compile-time-symbols>`_ to enable
- build time conditionals:
- .. code-block:: Nim
- when not defined(release):
- # Do here programmer friendly expensive sanity checks.
- # 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.
- - In normal debug and release builds code within
- a ``runnableExamples`` section is ignored.
- - The documentation generator is aware of these examples and considers them
- part of the ``##`` doc comment. As the last step of documentation
- generation each runnableExample is put in its own file ``$file_examples$i.nim``,
- compiled and tested. The collected examples are
- put into their own module to ensure the examples do not refer to
- non-exported symbols.
- Usage:
- .. code-block:: Nim
- proc double*(x: int): int =
- ## This proc doubles a number.
- runnableExamples:
- ## at module scope
- assert double(5) == 10
- block: ## at block scope
- defer: echo "done"
- result = 2 * x
- runnableExamples "-d:foo -b:cpp":
- import std/compilesettings
- doAssert querySetting(backend) == "cpp"
- runnableExamples "-r:off": ## this one is only compiled
- import std/browsers
- 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.
- .. code-block:: Nim
- var str = "Hello world!"
- 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``.
- If such a value does not exist, ``OverflowDefect`` is raised or a compile
- time error occurs. This is a short notation for: ``x = succ(x, y)``.
- .. code-block:: Nim
- var i = 2
- inc(i) # i <- 3
- 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.
- .. code-block:: Nim
- var tmp = ""
- tmp.add("ab")
- tmp.add("cd")
- 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
- Trying to read frame
- Got frame:
- {"jsonrpc":"2.0","method":"$/cancelRequest","params":{"id":91}}
- Unable to parse data as RequestMessage
- Got valid Notification message of type $/cancelRequest
- Got unknown notification message
- Trying to read frame
- Got frame:
- {"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}
- Got valid Request message of type textDocument/completion
- Got request for URI: file:///d%3A/Code/nim/test_karax/kar.nim copied to C:\Users\Arjun\AppData\Local\Temp\nimlsp\0000000088CDB7C8.nim
- Running equivalent of: sug d:\Code\nim\test_karax\kar.nim;C:\Users\Arjun\AppData\Local\Temp\nimlsp\0000000088CDB7C8.nim:16:7
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement