Advertisement
Guest User

Untitled

a guest
Nov 1st, 2023
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.71 KB | None | 0 0
  1. --- [10:05:07.326456] Send textDocument/signatureHelp request (25081) to 'ccls' for project keyd
  2. Recv message (error):
  3. {
  4. "id": 25081,
  5. "method": "textDocument/signatureHelp",
  6. "params": {
  7. "position": {
  8. "line": 25,
  9. "character": 0
  10. },
  11. "textDocument": {
  12. "uri": "file:///Users/liubo/p/keyd/src/config.c"
  13. }
  14. },
  15. "message_type": "request",
  16. "jsonrpc": "2.0"
  17. }
  18. {
  19. "jsonrpc": "2.0",
  20. "id": 44704,
  21. "error": {
  22. "code": -32603,
  23. "message": "drop older completion request"
  24. }
  25. }
  26. Eval in Emacs: (message '"[LSP-Bridge] drop older completion request")
  27.  
  28. --- [10:05:07.380203] Send textDocument/didChange notification to 'ccls' for project keyd
  29.  
  30. --- [10:05:07.380289] Recv textDocument/signatureHelp response (25081) from 'ccls' for project keyd
  31. {
  32. "method": "textDocument/didChange",
  33. "params": {
  34. "textDocument": {
  35. "uri": "file:///Users/liubo/p/keyd/src/config.c",
  36. "version": 22
  37. },
  38. "contentChanges": [
  39. {
  40. "range": {
  41. "start": {
  42. "line": 24,
  43. "character": 20
  44. },
  45. "end": {
  46. "line": 25,
  47. "character": 0
  48. }
  49. },
  50. "rangeLength": 1,
  51. "text": ""
  52. }
  53. ]
  54. },
  55. "message_type": "notification",
  56. "jsonrpc": "2.0"
  57. }
  58. {
  59. "jsonrpc": "2.0",
  60. "id": 25081,
  61. "result": {
  62. "signatures": [],
  63. "activeSignature": 0,
  64. "activeParameter": 0
  65. }
  66. }
  67.  
  68. --- [10:05:07.390374] Send textDocument/completion request (5028) to 'ccls' for project keyd
  69. Discard outdated response: received=25081, latest=25009
  70. {
  71. "id": 5028,
  72. "method": "textDocument/completion",
  73. "params": {
  74. "position": {
  75. "line": 24,
  76. "character": 20
  77. },
  78. "context": {
  79. "triggerCharacter": "\"",
  80. "triggerKind": 2
  81. },
  82. "textDocument": {
  83. "uri": "file:///Users/liubo/p/keyd/src/config.c"
  84. }
  85. },
  86. "message_type": "request",
  87. "jsonrpc": "2.0"
  88. }
  89.  
  90. --- [10:05:07.396409] Recv textDocument/completion response (5028) from 'ccls' for project keyd
  91. {
  92. "jsonrpc": "2.0",
  93. "id": 5028,
  94. "result": {
  95. "isIncomplete": false,
  96. "items": []
  97. }
  98. }
  99.  
  100. --- [10:05:07.456574] Got completion candidates (0) from 'ccls' for file config.c
  101.  
  102. --- [10:05:07.456641] Record completion candidates (0) from 'ccls' for file config.c
  103. Eval in Emacs: (lsp-bridge-completion--record-items '"/Users/liubo/p/keyd/src/config.c" '"" '() '(:line 24 :character 20) '"ccls" '("." ":" ">" "#" "<" "\"" "/") '("ccls"))
  104.  
  105. --- [10:05:07.457156] Send textDocument/signatureHelp request (25009) to 'ccls' for project keyd
  106.  
  107. --- [10:05:07.463619] Recv textDocument/signatureHelp response (25009) from 'ccls' for project keyd
  108. {
  109. "id": 25009,
  110. "method": "textDocument/signatureHelp",
  111. "params": {
  112. "position": {
  113. "line": 24,
  114. "character": 20
  115. },
  116. "textDocument": {
  117. "uri": "file:///Users/liubo/p/keyd/src/config.c"
  118. }
  119. },
  120. "message_type": "request",
  121. "jsonrpc": "2.0"
  122. }
  123. {
  124. "jsonrpc": "2.0",
  125. "id": 25009,
  126. "result": {
  127. "signatures": [],
  128. "activeSignature": 0,
  129. "activeParameter": 0
  130. }
  131. }
  132. Eval in Emacs: (lsp-bridge-diagnostic--render '"/Users/liubo/p/keyd/src/config.c" '"" '((:range (:start (:line 100 :character 47) :end (:line 100 :character 55)) :severity 1 :code 2 :source "ccls" :message "use of undeclared identifier 'DATA_DIR'" :relatedInformation () :server-name "ccls")))
  133.  
  134. --- [10:05:07.780850] Recv textDocument/publishDiagnostics notification from 'ccls' for project keyd
  135.  
  136. --- [10:05:07.780969] Record diagnostics from 'ccls' for file config.c
  137. {
  138. "jsonrpc": "2.0",
  139. "method": "textDocument/publishDiagnostics",
  140. "params": {
  141. "uri": "file:///Users/liubo/p/keyd/src/config.c",
  142. "diagnostics": [
  143. {
  144. "range": {
  145. "start": {
  146. "line": 99,
  147. "character": 47
  148. },
  149. "end": {
  150. "line": 99,
  151. "character": 55
  152. }
  153. },
  154. "severity": 1,
  155. "code": 2,
  156. "source": "ccls",
  157. "message": "use of undeclared identifier 'DATA_DIR'",
  158. "relatedInformation": []
  159. }
  160. ]
  161. }
  162. }
  163. Eval in Emacs: (lsp-bridge-diagnostic--render '"/Users/liubo/p/keyd/src/config.c" '"" '((:range (:start (:line 99 :character 47) :end (:line 99 :character 55)) :severity 1 :code 2 :source "ccls" :message "use of undeclared identifier 'DATA_DIR'" :relatedInformation () :server-name "ccls")))
  164.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement