Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

eglot-extend-to-xref does not work well with gopls/clangd under Windows #715

Open
wsw0108 opened this issue Aug 1, 2021 · 5 comments
Open
Labels
MS-Windows Has to do with MS-Windows

Comments

@wsw0108
Copy link

wsw0108 commented Aug 1, 2021

  • Server used: gopls
  • Emacs version: 27.2
  • Operating system: Windows 10
  • Eglot version: 1.7
  • Eglot installation method: package.el
  • Using Doom: No

LSP transcript - M-x eglot-events-buffer (mandatory unless Emacs inoperable)

... Paste the events transcript here ...  Try to start from the line that says
[client-request] (id:1) Sun Aug  1 09:04:44 2021:
(:jsonrpc "2.0" :id 1 :method "initialize" :params
	  (:processId 13220 :rootPath "f:/CASE-eglot/" :rootUri "file:///f:/CASE-eglot/" :initializationOptions #s(hash-table size 65 test eql rehash-size 1.5 rehash-threshold 0.8125 data
															      ())
		      :capabilities
		      (:workspace
		       (:applyEdit t :executeCommand
				   (:dynamicRegistration :json-false)
				   :workspaceEdit
				   (:documentChanges :json-false)
				   :didChangeWatchedFiles
				   (:dynamicRegistration t)
				   :symbol
				   (:dynamicRegistration :json-false)
				   :configuration t)
		       :textDocument
		       (:synchronization
			(:dynamicRegistration :json-false :willSave t :willSaveWaitUntil t :didSave t)
			:completion
			(:dynamicRegistration :json-false :completionItem
					      (:snippetSupport :json-false)
					      :contextSupport t)
			:hover
			(:dynamicRegistration :json-false :contentFormat
					      ["markdown" "plaintext"])
			:signatureHelp
			(:dynamicRegistration :json-false :signatureInformation
					      (:parameterInformation
					       (:labelOffsetSupport t)))
			:references
			(:dynamicRegistration :json-false)
			:definition
			(:dynamicRegistration :json-false)
			:declaration
			(:dynamicRegistration :json-false)
			:implementation
			(:dynamicRegistration :json-false)
			:typeDefinition
			(:dynamicRegistration :json-false)
			:documentSymbol
			(:dynamicRegistration :json-false :hierarchicalDocumentSymbolSupport t :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]))
			:documentHighlight
			(:dynamicRegistration :json-false)
			:codeAction
			(:dynamicRegistration :json-false :codeActionLiteralSupport
					      (:codeActionKind
					       (:valueSet
						["quickfix" "refactor" "refactor.extract" "refactor.inline" "refactor.rewrite" "source" "source.organizeImports"]))
					      :isPreferredSupport t)
			:formatting
			(:dynamicRegistration :json-false)
			:rangeFormatting
			(:dynamicRegistration :json-false)
			:rename
			(:dynamicRegistration :json-false)
			:publishDiagnostics
			(:relatedInformation :json-false))
		       :experimental #s(hash-table size 65 test eql rehash-size 1.5 rehash-threshold 0.8125 data
						   ()))))
[server-reply] (id:1) Sun Aug  1 09:04:44 2021:
(:jsonrpc "2.0" :result
	  (:capabilities
	   (:textDocumentSync
	    (:openClose t :change 2 :save nil)
	    :completionProvider
	    (:triggerCharacters
	     ["."]
	     :completionItem nil)
	    :hoverProvider t :signatureHelpProvider
	    (:triggerCharacters
	     ["(" ","])
	    :definitionProvider t :typeDefinitionProvider t :implementationProvider t :referencesProvider t :documentHighlightProvider t :documentSymbolProvider t :codeActionProvider
	    (:codeActionKinds
	     ["quickfix" "refactor.extract" "refactor.rewrite" "source.fixAll" "source.organizeImports"])
	    :codeLensProvider nil :documentLinkProvider nil :workspaceSymbolProvider t :documentFormattingProvider t :documentOnTypeFormattingProvider
	    (:firstTriggerCharacter "")
	    :renameProvider t :foldingRangeProvider t :executeCommandProvider
	    (:commands
	     ["gopls.add_dependency" "gopls.add_import" "gopls.apply_fix" "gopls.check_upgrades" "gopls.gc_details" "gopls.generate" "gopls.generate_gopls_mod" "gopls.go_get_package" "gopls.list_known_packages" "gopls.regenerate_cgo" "gopls.remove_dependency" "gopls.run_tests" "gopls.start_debugging" "gopls.test" "gopls.tidy" "gopls.toggle_gc_details" "gopls.update_go_sum" "gopls.upgrade_dependency" "gopls.vendor" "gopls.workspace_metadata"])
	    :callHierarchyProvider t :workspace
	    (:workspaceFolders
	     (:supported t :changeNotifications "workspace/didChangeWorkspaceFolders")))
	   :serverInfo
	   (:name "gopls" :version "{\"path\":\"golang.org/x/tools/gopls\",\"version\":\"v0.7.0\",\"sum\":\"h1:JQBHW81Gsyim6iDjUwGoPeSpXrSqwen3isPJLfDfaYU=\",\"deps\":[{\"path\":\"github.com/BurntSushi/toml\",\"version\":\"v0.3.1\",\"sum\":\"h1:WXkYYl6Yr3qBf1K79EBnL4mak0OimBfB0XUf9Vl28OQ=\"},{\"path\":\"github.com/google/go-cmp\",\"version\":\"v0.5.5\",\"sum\":\"h1:Khx7svrCpmxxtHBq5j2mp/xVjsi8hQMfNLvJFAlrGgU=\"},{\"path\":\"github.com/sergi/go-diff\",\"version\":\"v1.1.0\",\"sum\":\"h1:we8PVUC3FE2uYfodKH/nBHMSetSfHDR6scGdBi+erh0=\"},{\"path\":\"golang.org/x/mod\",\"version\":\"v0.4.2\",\"sum\":\"h1:Gz96sIWK3OalVv/I/qNygP42zyoKp3xptRVCWRFEBvo=\"},{\"path\":\"golang.org/x/sync\",\"version\":\"v0.0.0-20210220032951-036812b2e83c\",\"sum\":\"h1:5KslGYwFpkhGh+Q16bwMP3cOontH8FOep7tGV86Y7SQ=\"},{\"path\":\"golang.org/x/sys\",\"version\":\"v0.0.0-20210510120138-977fb7262007\",\"sum\":\"h1:gG67DSER+11cZvqIMb8S8bt0vZtiN6xWYARwirrOSfE=\"},{\"path\":\"golang.org/x/tools\",\"version\":\"v0.1.3-0.20210608163600-9ed039809d4c\",\"sum\":\"h1:Pv9gNyJFYVdpUAVZYJ1BDSU4eGgXQ+0f3DIGAdolO5s=\"},{\"path\":\"golang.org/x/xerrors\",\"version\":\"v0.0.0-20200804184101-5ec99f83aff1\",\"sum\":\"h1:go1bK/D/BFZV2I8cIQd1NKEZ+0owSTG1fDTci4IqFcE=\"},{\"path\":\"honnef.co/go/tools\",\"version\":\"v0.2.0\",\"sum\":\"h1:ws8AfbgTX3oIczLPNPCu5166oBg9ST2vNs0rcht+mDE=\"},{\"path\":\"mvdan.cc/gofumpt\",\"version\":\"v0.1.1\",\"sum\":\"h1:bi/1aS/5W00E2ny5q65w9SnKpWEF/UIOqDYBILpo9rA=\"},{\"path\":\"mvdan.cc/xurls/v2\",\"version\":\"v2.2.0\",\"sum\":\"h1:NSZPykBXJFCetGZykLAxaL6SIpvbVy/UFEniIfHAa8A=\"}]}"))
	  :id 1)
[client-notification] Sun Aug  1 09:04:44 2021:
(:jsonrpc "2.0" :method "initialized" :params #s(hash-table size 65 test eql rehash-size 1.5 rehash-threshold 0.8125 data
							    ()))
[client-notification] Sun Aug  1 09:04:44 2021:
(:jsonrpc "2.0" :method "textDocument/didOpen" :params
	  (:textDocument
	   (:uri "file:///f:/CASE-eglot/test.go" :version 0 :languageId "go" :text "package main\n\nimport \"math\"\n\nfunc main() {\n	print(math.Abs(-2.0))\n}\n")))
[client-notification] Sun Aug  1 09:04:44 2021:
(:jsonrpc "2.0" :method "workspace/didChangeConfiguration" :params
	  (:settings nil))
[client-request] (id:2) Sun Aug  1 09:04:44 2021:
(:jsonrpc "2.0" :id 2 :method "textDocument/documentSymbol" :params
	  (:textDocument
	   (:uri "file:///f:/CASE-eglot/test.go")))
[server-notification] Sun Aug  1 09:04:44 2021:
(:jsonrpc "2.0" :method "window/showMessage" :params
	  (:type 4 :message "Loading packages..."))
[server-request] (id:1) Sun Aug  1 09:04:44 2021:
(:jsonrpc "2.0" :method "workspace/configuration" :params
	  (:items
	   [(:scopeUri "file:///F:/CASE-eglot/" :section "gopls")])
	  :id 1)
[client-reply] (id:1) Sun Aug  1 09:04:44 2021:
(:jsonrpc "2.0" :id 1 :result
	  [nil])
[server-notification] Sun Aug  1 09:04:45 2021:
(:jsonrpc "2.0" :method "window/logMessage" :params
	  (:type 3 :message "2021/08/01 09:04:45 go env for F:\\CASE-eglot\\\n(root F:\\CASE-eglot\\)\n(go version go version go1.16 windows/amd64)\n(valid build configuration = true)\n(build flags: [])\nGOFLAGS=\nGOINSECURE=\nGONOPROXY=github.com/mtkgo\nGOPROXY=https://goproxy.cn,direct\nGOROOT=c:\\go\nGOCACHE=C:\\Users\\wsw\\AppData\\Local\\go-build\nGONOSUMDB=github.com/mtkgo\nGOPATH=C:\\Users\\wsw\\go\nGOPRIVATE=github.com/mtkgo\nGOSUMDB=sum.golang.org\nGO111MODULE=on\nGOMOD=F:\\CASE-eglot\\go.mod\nGOMODCACHE=C:\\Users\\wsw\\go\\pkg\\mod\n\n"))
[server-notification] Sun Aug  1 09:04:45 2021:
(:jsonrpc "2.0" :method "window/logMessage" :params
	  (:type 3 :message "2021/08/01 09:04:45 go/packages.Load\n	snapshot=0\n	directory=F:\\CASE-eglot\\\n	query=[builtin test/...]\n	packages=2\n"))
[server-notification] Sun Aug  1 09:04:45 2021:
(:jsonrpc "2.0" :method "window/showMessage" :params
	  (:type 3 :message "Finished loading packages."))
[server-request] (id:2) Sun Aug  1 09:04:45 2021:
(:jsonrpc "2.0" :method "client/registerCapability" :params
	  (:registrations
	   [(:id "workspace/didChangeWatchedFiles-0" :method "workspace/didChangeWatchedFiles" :registerOptions
		 (:watchers
		  [(:globPattern "F:\\CASE-eglot/**/*.{go,mod,sum,tmpl}" :kind 7)
		   (:globPattern "**/*.{go,mod,sum}" :kind 7)
		   (:globPattern "**/*.*tmpl" :kind 7)]))])
	  :id 2)
[client-reply] (id:2) Sun Aug  1 09:04:45 2021:
(:jsonrpc "2.0" :id 2 :result nil)
[server-request] (id:3) Sun Aug  1 09:04:45 2021:
(:jsonrpc "2.0" :method "workspace/configuration" :params
	  (:items
	   [(:section "gopls")])
	  :id 3)
[client-reply] (id:3) ERROR Sun Aug  1 09:04:45 2021:
(:jsonrpc "2.0" :id 3 :error
	  (:code -32603 :message "Internal error"))
[server-reply] (id:2) Sun Aug  1 09:04:45 2021:
(:jsonrpc "2.0" :result
	  [(:name "main" :detail "()" :kind 12 :range
		  (:start
		   (:line 4 :character 0)
		   :end
		   (:line 6 :character 1))
		  :selectionRange
		  (:start
		   (:line 4 :character 5)
		   :end
		   (:line 4 :character 9)))]
	  :id 2)
[client-request] (id:3) Sun Aug  1 09:05:18 2021:
(:jsonrpc "2.0" :id 3 :method "textDocument/signatureHelp" :params
	  (:textDocument
	   (:uri "file:///f:/CASE-eglot/test.go")
	   :position
	   (:line 0 :character 0)))
[client-request] (id:4) Sun Aug  1 09:05:18 2021:
(:jsonrpc "2.0" :id 4 :method "textDocument/hover" :params
	  (:textDocument
	   (:uri "file:///f:/CASE-eglot/test.go")
	   :position
	   (:line 0 :character 0)))
[client-request] (id:5) Sun Aug  1 09:05:18 2021:
(:jsonrpc "2.0" :id 5 :method "textDocument/documentHighlight" :params
	  (:textDocument
	   (:uri "file:///f:/CASE-eglot/test.go")
	   :position
	   (:line 0 :character 0)))
[server-reply] (id:3) Sun Aug  1 09:05:18 2021:
(:jsonrpc "2.0" :result nil :id 3)
[server-notification] Sun Aug  1 09:05:18 2021:
(:jsonrpc "2.0" :method "window/logMessage" :params
	  (:type 1 :message "2021/08/01 09:05:18 no signature help: cannot find an enclosing function\n	position={0 0}\n"))
[server-reply] (id:4) Sun Aug  1 09:05:18 2021:
(:jsonrpc "2.0" :result nil :id 4)
[server-reply] (id:5) Sun Aug  1 09:05:18 2021:
(:jsonrpc "2.0" :result
	  []
	  :id 5)
[client-request] (id:6) Sun Aug  1 09:05:19 2021:
(:jsonrpc "2.0" :id 6 :method "textDocument/signatureHelp" :params
	  (:textDocument
	   (:uri "file:///f:/CASE-eglot/test.go")
	   :position
	   (:line 5 :character 0)))
[client-request] (id:7) Sun Aug  1 09:05:19 2021:
(:jsonrpc "2.0" :id 7 :method "textDocument/hover" :params
	  (:textDocument
	   (:uri "file:///f:/CASE-eglot/test.go")
	   :position
	   (:line 5 :character 0)))
[client-request] (id:8) Sun Aug  1 09:05:19 2021:
(:jsonrpc "2.0" :id 8 :method "textDocument/documentHighlight" :params
	  (:textDocument
	   (:uri "file:///f:/CASE-eglot/test.go")
	   :position
	   (:line 5 :character 0)))
[server-reply] (id:6) Sun Aug  1 09:05:19 2021:
(:jsonrpc "2.0" :result nil :id 6)
[server-notification] Sun Aug  1 09:05:19 2021:
(:jsonrpc "2.0" :method "window/logMessage" :params
	  (:type 1 :message "2021/08/01 09:05:19 no signature help: cannot find an enclosing function\n	position={5 0}\n"))
[server-reply] (id:7) Sun Aug  1 09:05:19 2021:
(:jsonrpc "2.0" :result nil :id 7)
[server-reply] (id:8) Sun Aug  1 09:05:19 2021:
(:jsonrpc "2.0" :result
	  []
	  :id 8)
[client-request] (id:9) Sun Aug  1 09:05:20 2021:
(:jsonrpc "2.0" :id 9 :method "textDocument/signatureHelp" :params
	  (:textDocument
	   (:uri "file:///f:/CASE-eglot/test.go")
	   :position
	   (:line 5 :character 1)))
[server-reply] (id:9) Sun Aug  1 09:05:20 2021:
(:jsonrpc "2.0" :result nil :id 9)
[server-notification] Sun Aug  1 09:05:20 2021:
(:jsonrpc "2.0" :method "window/logMessage" :params
	  (:type 1 :message "2021/08/01 09:05:20 no signature help: cannot find an enclosing function\n	position={5 1}\n"))
[client-request] (id:10) Sun Aug  1 09:05:21 2021:
(:jsonrpc "2.0" :id 10 :method "textDocument/signatureHelp" :params
	  (:textDocument
	   (:uri "file:///f:/CASE-eglot/test.go")
	   :position
	   (:line 5 :character 13)))
[client-request] (id:11) Sun Aug  1 09:05:21 2021:
(:jsonrpc "2.0" :id 11 :method "textDocument/hover" :params
	  (:textDocument
	   (:uri "file:///f:/CASE-eglot/test.go")
	   :position
	   (:line 5 :character 13)))
[client-request] (id:12) Sun Aug  1 09:05:21 2021:
(:jsonrpc "2.0" :id 12 :method "textDocument/documentHighlight" :params
	  (:textDocument
	   (:uri "file:///f:/CASE-eglot/test.go")
	   :position
	   (:line 5 :character 13)))
[server-reply] (id:10) Sun Aug  1 09:05:21 2021:
(:jsonrpc "2.0" :result
	  (:signatures
	   [(:label "print(args ...Type)" :documentation "The print built-in function formats its arguments in an\nimplementation-specific way and writes the result to standard error.\nPrint is useful for bootstrapping and debugging; it is not guaranteed\nto stay in the language.\n" :parameters
		    [(:label "args ...Type")])]
	   :activeSignature 0 :activeParameter 0)
	  :id 10)
[server-reply] (id:11) Sun Aug  1 09:05:22 2021:
(:jsonrpc "2.0" :result
	  (:contents
	   (:kind "markdown" :value "```go\nfunc math.Abs(x float64) float64\n```\n\n[`math.Abs` on pkg.go.dev](https://pkg.go.dev/math?utm_source=gopls#Abs)\n\nAbs returns the absolute value of x\\.\n\nSpecial cases are\\:\n\n    Abs(±Inf) = +Inf\n    Abs(NaN) = NaN\n")
	   :range
	   (:start
	    (:line 5 :character 12)
	    :end
	    (:line 5 :character 15)))
	  :id 11)
[server-reply] (id:12) Sun Aug  1 09:05:22 2021:
(:jsonrpc "2.0" :result
	  [(:range
	    (:start
	     (:line 5 :character 12)
	     :end
	     (:line 5 :character 15))
	    :kind 1)]
	  :id 12)
[client-request] (id:13) Sun Aug  1 09:05:22 2021:
(:jsonrpc "2.0" :id 13 :method "textDocument/definition" :params
	  (:textDocument
	   (:uri "file:///f:/CASE-eglot/test.go")
	   :position
	   (:line 5 :character 13)))
[server-reply] (id:13) Sun Aug  1 09:05:22 2021:
(:jsonrpc "2.0" :result
	  [(:uri "file:///C:/go/src/math/abs.go" :range
		 (:start
		  (:line 11 :character 5)
		  :end
		  (:line 11 :character 8)))]
	  :id 13)

Backtrace (mandatory, unless no error message seen or heard):

Minimal configuration (mandatory)

https://github.com/wsw0108/CASE-eglot

# Type this in a shell to start an Emacs with Eglot configured
git clone https://github.com/wsw0108/CASE-eglot CASE-eglot
cd CASE-eglot
emacs -Q -l init.el test.go

With above configuration, when call xref-find-definitions under math.A|bs, a new gopls server starts.

Please also refer golang/go#47481

@wsw0108
Copy link
Author

wsw0108 commented Aug 1, 2021

And there has same problem with lsp server clangd:

wsw0108/CASE-eglot@1f2e6da

Event buffer:

[client-request] (id:1) Sun Aug  1 09:31:12 2021:
(:jsonrpc "2.0" :id 1 :method "initialize" :params
	  (:processId 9172 :rootPath "f:/CASE-eglot/" :rootUri "file:///f:/CASE-eglot/" :initializationOptions #s(hash-table size 65 test eql rehash-size 1.5 rehash-threshold 0.8125 data
															     ())
		      :capabilities
		      (:workspace
		       (:applyEdit t :executeCommand
				   (:dynamicRegistration :json-false)
				   :workspaceEdit
				   (:documentChanges :json-false)
				   :didChangeWatchedFiles
				   (:dynamicRegistration t)
				   :symbol
				   (:dynamicRegistration :json-false)
				   :configuration t)
		       :textDocument
		       (:synchronization
			(:dynamicRegistration :json-false :willSave t :willSaveWaitUntil t :didSave t)
			:completion
			(:dynamicRegistration :json-false :completionItem
					      (:snippetSupport :json-false)
					      :contextSupport t)
			:hover
			(:dynamicRegistration :json-false :contentFormat
					      ["markdown" "plaintext"])
			:signatureHelp
			(:dynamicRegistration :json-false :signatureInformation
					      (:parameterInformation
					       (:labelOffsetSupport t)))
			:references
			(:dynamicRegistration :json-false)
			:definition
			(:dynamicRegistration :json-false)
			:declaration
			(:dynamicRegistration :json-false)
			:implementation
			(:dynamicRegistration :json-false)
			:typeDefinition
			(:dynamicRegistration :json-false)
			:documentSymbol
			(:dynamicRegistration :json-false :hierarchicalDocumentSymbolSupport t :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]))
			:documentHighlight
			(:dynamicRegistration :json-false)
			:codeAction
			(:dynamicRegistration :json-false :codeActionLiteralSupport
					      (:codeActionKind
					       (:valueSet
						["quickfix" "refactor" "refactor.extract" "refactor.inline" "refactor.rewrite" "source" "source.organizeImports"]))
					      :isPreferredSupport t)
			:formatting
			(:dynamicRegistration :json-false)
			:rangeFormatting
			(:dynamicRegistration :json-false)
			:rename
			(:dynamicRegistration :json-false)
			:publishDiagnostics
			(:relatedInformation :json-false))
		       :experimental #s(hash-table size 65 test eql rehash-size 1.5 rehash-threshold 0.8125 data
						   ()))))
[stderr] I[09:31:12.593] clangd version 12.0.0
[stderr] I[09:31:12.594] PID: 17900
[stderr] I[09:31:12.594] Working directory: f:\CASE-eglot
[stderr] I[09:31:12.594] argv[0]: c:\LLVM\bin\clangd.exe
[server-reply] (id:1) Sun Aug  1 09:31:12 2021:
(:id 1 :jsonrpc "2.0" :result
     (:capabilities
      (:astProvider t :callHierarchyProvider t :codeActionProvider
		    (:codeActionKinds
		     ["quickfix" "refactor" "info"])
		    :compilationDatabase
		    (:automaticReload t)
		    :completionProvider
		    (:allCommitCharacters
		     [" " "	" "(" ")" "[" "]" "{" "}" "<" ">" ":" ";" "," "+" "-" "/" "*" "%" "^" "&" "#" "?" "." "=" "\"" "'" "|"]
		     :resolveProvider :json-false :triggerCharacters
		     ["." "<" ">" ":" "\"" "/"])
		    :declarationProvider t :definitionProvider t :documentFormattingProvider t :documentHighlightProvider t :documentLinkProvider
		    (:resolveProvider :json-false)
		    :documentOnTypeFormattingProvider
		    (:firstTriggerCharacter "\n" :moreTriggerCharacter
					    [])
		    :documentRangeFormattingProvider t :documentSymbolProvider t :executeCommandProvider
		    (:commands
		     ["clangd.applyFix" "clangd.applyTweak"])
		    :hoverProvider t :implementationProvider t :memoryUsageProvider t :referencesProvider t :renameProvider t :selectionRangeProvider t :semanticTokensProvider
		    (:full
		     (:delta t)
		     :legend
		     (:tokenModifiers
		      []
		      :tokenTypes
		      ["variable" "variable" "parameter" "function" "method" "function" "property" "variable" "class" "enum" "enumMember" "type" "dependent" "dependent" "namespace" "typeParameter" "concept" "type" "macro" "comment"])
		     :range :json-false)
		    :signatureHelpProvider
		    (:triggerCharacters
		     ["(" ","])
		    :textDocumentSync
		    (:change 2 :openClose t :save t)
		    :typeHierarchyProvider t :workspaceSymbolProvider t)
      :serverInfo
      (:name "clangd" :version "clangd version 12.0.0")))
[client-notification] Sun Aug  1 09:31:12 2021:
(:jsonrpc "2.0" :method "initialized" :params #s(hash-table size 65 test eql rehash-size 1.5 rehash-threshold 0.8125 data
							    ()))
[client-notification] Sun Aug  1 09:31:12 2021:
(:jsonrpc "2.0" :method "textDocument/didOpen" :params
	  (:textDocument
	   (:uri "file:///f:/CASE-eglot/test.c" :version 0 :languageId "c" :text "")))
[client-notification] Sun Aug  1 09:31:12 2021:
(:jsonrpc "2.0" :method "workspace/didChangeConfiguration" :params
	  (:settings nil))
[stderr] I[09:31:12.599] Starting LSP over stdin/stdout
[stderr] I[09:31:12.599] <-- initialize(1)
[stderr] I[09:31:12.602] --> reply:initialize(1) 2 ms
[stderr] I[09:31:12.603] <-- initialized
[stderr] I[09:31:12.604] <-- textDocument/didOpen
[stderr] I[09:31:12.605] <-- workspace/didChangeConfiguration
[stderr] I[09:31:12.605] Failed to find compilation database for f:\CASE-eglot\test.c
[stderr] I[09:31:12.605] ASTWorker building file f:\CASE-eglot\test.c version 0 with command clangd fallback
[stderr] [f:\CASE-eglot]
[stderr] C:\LLVM\bin\clang f:\CASE-eglot\test.c -fsyntax-only -resource-dir=c:\LLVM\lib\clang\12.0.0
[stderr] I[09:31:12.673] --> textDocument/publishDiagnostics
[server-notification] Sun Aug  1 09:31:12 2021:
(:jsonrpc "2.0" :method "textDocument/publishDiagnostics" :params
	  (:diagnostics
	   []
	   :uri "file:///f:/CASE-eglot/test.c" :version 0))
[client-notification] Sun Aug  1 09:31:21 2021:
(:jsonrpc "2.0" :method "textDocument/didChange" :params
	  (:textDocument
	   (:uri "file:///f:/CASE-eglot/test.c" :version 24)
	   :contentChanges
	   [(:range
	     (:start
	      (:line 0 :character 0)
	      :end
	      (:line 0 :character 0))
	     :rangeLength 0 :text "#")
	    (:range
	     (:start
	      (:line 0 :character 1)
	      :end
	      (:line 0 :character 1))
	     :rangeLength 0 :text "i")
	    (:range
	     (:start
	      (:line 0 :character 2)
	      :end
	      (:line 0 :character 2))
	     :rangeLength 0 :text "n")
	    (:range
	     (:start
	      (:line 0 :character 3)
	      :end
	      (:line 0 :character 3))
	     :rangeLength 0 :text "c")
	    (:range
	     (:start
	      (:line 0 :character 4)
	      :end
	      (:line 0 :character 4))
	     :rangeLength 0 :text "l")
	    (:range
	     (:start
	      (:line 0 :character 5)
	      :end
	      (:line 0 :character 5))
	     :rangeLength 0 :text "u")
	    (:range
	     (:start
	      (:line 0 :character 6)
	      :end
	      (:line 0 :character 6))
	     :rangeLength 0 :text "d")
	    (:range
	     (:start
	      (:line 0 :character 7)
	      :end
	      (:line 0 :character 7))
	     :rangeLength 0 :text "e")
	    (:range
	     (:start
	      (:line 0 :character 8)
	      :end
	      (:line 0 :character 8))
	     :rangeLength 0 :text " ")
	    (:range
	     (:start
	      (:line 0 :character 9)
	      :end
	      (:line 0 :character 9))
	     :rangeLength 0 :text "<")
	    (:range
	     (:start
	      (:line 0 :character 10)
	      :end
	      (:line 0 :character 10))
	     :rangeLength 0 :text "s")
	    (:range
	     (:start
	      (:line 0 :character 11)
	      :end
	      (:line 0 :character 11))
	     :rangeLength 0 :text "t")
	    (:range
	     (:start
	      (:line 0 :character 12)
	      :end
	      (:line 0 :character 12))
	     :rangeLength 0 :text "d")
	    (:range
	     (:start
	      (:line 0 :character 13)
	      :end
	      (:line 0 :character 13))
	     :rangeLength 0 :text "i")
	    (:range
	     (:start
	      (:line 0 :character 14)
	      :end
	      (:line 0 :character 14))
	     :rangeLength 0 :text "o")
	    (:range
	     (:start
	      (:line 0 :character 15)
	      :end
	      (:line 0 :character 15))
	     :rangeLength 0 :text ">")
	    (:range
	     (:start
	      (:line 0 :character 16)
	      :end
	      (:line 0 :character 16))
	     :rangeLength 0 :text ".")
	    (:range
	     (:start
	      (:line 0 :character 16)
	      :end
	      (:line 0 :character 17))
	     :rangeLength 1 :text "")
	    (:range
	     (:start
	      (:line 0 :character 15)
	      :end
	      (:line 0 :character 16))
	     :rangeLength 1 :text "")
	    (:range
	     (:start
	      (:line 0 :character 15)
	      :end
	      (:line 0 :character 15))
	     :rangeLength 0 :text ".")
	    (:range
	     (:start
	      (:line 0 :character 16)
	      :end
	      (:line 0 :character 16))
	     :rangeLength 0 :text "h")
	    (:range
	     (:start
	      (:line 0 :character 17)
	      :end
	      (:line 0 :character 17))
	     :rangeLength 0 :text ">")
	    (:range
	     (:start
	      (:line 0 :character 18)
	      :end
	      (:line 0 :character 18))
	     :rangeLength 0 :text "\n")
	    (:range
	     (:start
	      (:line 1 :character 0)
	      :end
	      (:line 1 :character 0))
	     :rangeLength 0 :text "\n")]))
[client-request] (id:2) Sun Aug  1 09:31:21 2021:
(:jsonrpc "2.0" :id 2 :method "textDocument/signatureHelp" :params
	  (:textDocument
	   (:uri "file:///f:/CASE-eglot/test.c")
	   :position
	   (:line 2 :character 0)))
[client-request] (id:3) Sun Aug  1 09:31:21 2021:
(:jsonrpc "2.0" :id 3 :method "textDocument/hover" :params
	  (:textDocument
	   (:uri "file:///f:/CASE-eglot/test.c")
	   :position
	   (:line 2 :character 0)))
[client-request] (id:4) Sun Aug  1 09:31:21 2021:
(:jsonrpc "2.0" :id 4 :method "textDocument/documentHighlight" :params
	  (:textDocument
	   (:uri "file:///f:/CASE-eglot/test.c")
	   :position
	   (:line 2 :character 0)))
[stderr] I[09:31:21.463] <-- textDocument/didChange
[stderr] I[09:31:21.465] <-- textDocument/signatureHelp(2)
[stderr] I[09:31:21.465] <-- textDocument/hover(3)
[stderr] I[09:31:21.465] Failed to find compilation database for f:\CASE-eglot\test.c
[stderr] I[09:31:21.465] <-- textDocument/documentHighlight(4)
[stderr] I[09:31:21.466] ASTWorker building file f:\CASE-eglot\test.c version 24 with command clangd fallback
[stderr] [f:\CASE-eglot]
[stderr] C:\LLVM\bin\clang f:\CASE-eglot\test.c -fsyntax-only -resource-dir=c:\LLVM\lib\clang\12.0.0
[stderr] I[09:31:21.487] --> reply:textDocument/signatureHelp(2) 22 ms
[server-reply] (id:2) Sun Aug  1 09:31:21 2021:
(:id 2 :jsonrpc "2.0" :result
     (:activeParameter 0 :activeSignature 0 :signatures
		       []))
[stderr] I[09:31:21.525] --> reply:textDocument/hover(3) 60 ms
[stderr] I[09:31:21.526] --> reply:textDocument/documentHighlight(4) 60 ms
[server-reply] (id:3) Sun Aug  1 09:31:21 2021:
(:id 3 :jsonrpc "2.0" :result nil)
[server-reply] (id:4) Sun Aug  1 09:31:21 2021:
(:id 4 :jsonrpc "2.0" :result
     [])
[stderr] I[09:31:21.560] --> textDocument/publishDiagnostics
[server-notification] Sun Aug  1 09:31:21 2021:
(:jsonrpc "2.0" :method "textDocument/publishDiagnostics" :params
	  (:diagnostics
	   []
	   :uri "file:///f:/CASE-eglot/test.c" :version 24))
[client-notification] Sun Aug  1 09:31:23 2021:
(:jsonrpc "2.0" :method "textDocument/didChange" :params
	  (:textDocument
	   (:uri "file:///f:/CASE-eglot/test.c" :version 34)
	   :contentChanges
	   [(:range
	     (:start
	      (:line 2 :character 0)
	      :end
	      (:line 2 :character 0))
	     :rangeLength 0 :text "i")
	    (:range
	     (:start
	      (:line 2 :character 1)
	      :end
	      (:line 2 :character 1))
	     :rangeLength 0 :text "n")
	    (:range
	     (:start
	      (:line 2 :character 2)
	      :end
	      (:line 2 :character 2))
	     :rangeLength 0 :text "t")
	    (:range
	     (:start
	      (:line 2 :character 3)
	      :end
	      (:line 2 :character 3))
	     :rangeLength 0 :text " ")
	    (:range
	     (:start
	      (:line 2 :character 4)
	      :end
	      (:line 2 :character 4))
	     :rangeLength 0 :text "m")
	    (:range
	     (:start
	      (:line 2 :character 5)
	      :end
	      (:line 2 :character 5))
	     :rangeLength 0 :text "a")
	    (:range
	     (:start
	      (:line 2 :character 6)
	      :end
	      (:line 2 :character 6))
	     :rangeLength 0 :text "i")
	    (:range
	     (:start
	      (:line 2 :character 7)
	      :end
	      (:line 2 :character 7))
	     :rangeLength 0 :text "n")
	    (:range
	     (:start
	      (:line 2 :character 8)
	      :end
	      (:line 2 :character 8))
	     :rangeLength 0 :text "(")
	    (:range
	     (:start
	      (:line 2 :character 9)
	      :end
	      (:line 2 :character 9))
	     :rangeLength 0 :text ")")]))
[client-request] (id:5) Sun Aug  1 09:31:23 2021:
(:jsonrpc "2.0" :id 5 :method "textDocument/signatureHelp" :params
	  (:textDocument
	   (:uri "file:///f:/CASE-eglot/test.c")
	   :position
	   (:line 2 :character 10)))
[client-request] (id:6) Sun Aug  1 09:31:23 2021:
(:jsonrpc "2.0" :id 6 :method "textDocument/hover" :params
	  (:textDocument
	   (:uri "file:///f:/CASE-eglot/test.c")
	   :position
	   (:line 2 :character 10)))
[client-request] (id:7) Sun Aug  1 09:31:23 2021:
(:jsonrpc "2.0" :id 7 :method "textDocument/documentHighlight" :params
	  (:textDocument
	   (:uri "file:///f:/CASE-eglot/test.c")
	   :position
	   (:line 2 :character 10)))
[stderr] I[09:31:23.853] <-- textDocument/didChange
[stderr] I[09:31:23.858] <-- textDocument/signatureHelp(5)
[stderr] I[09:31:23.860] <-- textDocument/hover(6)
[stderr] I[09:31:23.860] Failed to find compilation database for f:\CASE-eglot\test.c
[stderr] I[09:31:23.862] ASTWorker building file f:\CASE-eglot\test.c version 34 with command clangd fallback
[stderr] [f:\CASE-eglot]
[stderr] C:\LLVM\bin\clang f:\CASE-eglot\test.c -fsyntax-only -resource-dir=c:\LLVM\lib\clang\12.0.0
[stderr] I[09:31:23.862] <-- textDocument/documentHighlight(7)
[stderr] I[09:31:23.884] --> reply:textDocument/signatureHelp(5) 26 ms
[server-reply] (id:5) Sun Aug  1 09:31:23 2021:
(:id 5 :jsonrpc "2.0" :result
     (:activeParameter 0 :activeSignature 0 :signatures
		       []))
[stderr] I[09:31:23.894] --> reply:textDocument/hover(6) 33 ms
[stderr] I[09:31:23.894] --> reply:textDocument/documentHighlight(7) 31 ms
[server-reply] (id:6) Sun Aug  1 09:31:23 2021:
(:id 6 :jsonrpc "2.0" :result nil)
[server-reply] (id:7) Sun Aug  1 09:31:23 2021:
(:id 7 :jsonrpc "2.0" :result
     [])
[stderr] I[09:31:23.953] --> textDocument/publishDiagnostics
[server-notification] Sun Aug  1 09:31:23 2021:
(:jsonrpc "2.0" :method "textDocument/publishDiagnostics" :params
	  (:diagnostics
	   [(:code "expected_fn_body" :message "Expected function body after function declarator" :range
		   (:end
		    (:character 10 :line 2)
		    :start
		    (:character 10 :line 2))
		   :severity 1 :source "clang")]
	   :uri "file:///f:/CASE-eglot/test.c" :version 34))
[client-notification] Sun Aug  1 09:31:25 2021:
(:jsonrpc "2.0" :method "textDocument/didChange" :params
	  (:textDocument
	   (:uri "file:///f:/CASE-eglot/test.c" :version 38)
	   :contentChanges
	   [(:range
	     (:start
	      (:line 2 :character 10)
	      :end
	      (:line 2 :character 10))
	     :rangeLength 0 :text " ")
	    (:range
	     (:start
	      (:line 2 :character 11)
	      :end
	      (:line 2 :character 11))
	     :rangeLength 0 :text "{")
	    (:range
	     (:start
	      (:line 2 :character 12)
	      :end
	      (:line 2 :character 12))
	     :rangeLength 0 :text "\n")
	    (:range
	     (:start
	      (:line 3 :character 0)
	      :end
	      (:line 3 :character 0))
	     :rangeLength 0 :text "  ")]))
[client-request] (id:8) Sun Aug  1 09:31:25 2021:
(:jsonrpc "2.0" :id 8 :method "textDocument/signatureHelp" :params
	  (:textDocument
	   (:uri "file:///f:/CASE-eglot/test.c")
	   :position
	   (:line 3 :character 2)))
[client-request] (id:9) Sun Aug  1 09:31:25 2021:
(:jsonrpc "2.0" :id 9 :method "textDocument/hover" :params
	  (:textDocument
	   (:uri "file:///f:/CASE-eglot/test.c")
	   :position
	   (:line 3 :character 2)))
[client-request] (id:10) Sun Aug  1 09:31:25 2021:
(:jsonrpc "2.0" :id 10 :method "textDocument/documentHighlight" :params
	  (:textDocument
	   (:uri "file:///f:/CASE-eglot/test.c")
	   :position
	   (:line 3 :character 2)))
[stderr] I[09:31:25.146] <-- textDocument/didChange
[stderr] I[09:31:25.147] <-- textDocument/signatureHelp(8)
[stderr] I[09:31:25.148] <-- textDocument/hover(9)
[stderr] I[09:31:25.148] Failed to find compilation database for f:\CASE-eglot\test.c
[stderr] I[09:31:25.148] <-- textDocument/documentHighlight(10)
[stderr] I[09:31:25.148] ASTWorker building file f:\CASE-eglot\test.c version 38 with command clangd fallback
[stderr] [f:\CASE-eglot]
[stderr] C:\LLVM\bin\clang f:\CASE-eglot\test.c -fsyntax-only -resource-dir=c:\LLVM\lib\clang\12.0.0
[server-reply] (id:8) Sun Aug  1 09:31:25 2021:
(:id 8 :jsonrpc "2.0" :result
     (:activeParameter 0 :activeSignature 0 :signatures
		       []))
[stderr] I[09:31:25.170] --> reply:textDocument/signatureHelp(8) 22 ms
[server-reply] (id:9) Sun Aug  1 09:31:25 2021:
(:id 9 :jsonrpc "2.0" :result nil)
[stderr] I[09:31:25.180] --> reply:textDocument/hover(9) 32 ms
[stderr] I[09:31:25.180] Skipping rebuild of the AST for f:\CASE-eglot\test.c, inputs are the same.
[stderr] I[09:31:25.180] --> textDocument/publishDiagnostics
[stderr] I[09:31:25.180] --> reply:textDocument/documentHighlight(10) 32 ms
[server-notification] Sun Aug  1 09:31:25 2021:
(:jsonrpc "2.0" :method "textDocument/publishDiagnostics" :params
	  (:diagnostics
	   [(:code "expected" :message "Expected '}'\n\ntest.c:3:12: note: to match this '{'" :range
		   (:end
		    (:character 2 :line 3)
		    :start
		    (:character 2 :line 3))
		   :severity 1 :source "clang")
	    (:message "To match this '{'\n\ntest.c:4:3: error: expected '}'" :range
		      (:end
		       (:character 12 :line 2)
		       :start
		       (:character 11 :line 2))
		      :severity 3)]
	   :uri "file:///f:/CASE-eglot/test.c" :version 38))
[server-reply] (id:10) Sun Aug  1 09:31:25 2021:
(:id 10 :jsonrpc "2.0" :result
     [])
[client-notification] Sun Aug  1 09:31:28 2021:
(:jsonrpc "2.0" :method "textDocument/didChange" :params
	  (:textDocument
	   (:uri "file:///f:/CASE-eglot/test.c" :version 46)
	   :contentChanges
	   [(:range
	     (:start
	      (:line 3 :character 2)
	      :end
	      (:line 3 :character 2))
	     :rangeLength 0 :text "p")
	    (:range
	     (:start
	      (:line 3 :character 3)
	      :end
	      (:line 3 :character 3))
	     :rangeLength 0 :text "r")
	    (:range
	     (:start
	      (:line 3 :character 4)
	      :end
	      (:line 3 :character 4))
	     :rangeLength 0 :text "i")
	    (:range
	     (:start
	      (:line 3 :character 5)
	      :end
	      (:line 3 :character 5))
	     :rangeLength 0 :text "n")
	    (:range
	     (:start
	      (:line 3 :character 6)
	      :end
	      (:line 3 :character 6))
	     :rangeLength 0 :text "t")
	    (:range
	     (:start
	      (:line 3 :character 7)
	      :end
	      (:line 3 :character 7))
	     :rangeLength 0 :text "l")
	    (:range
	     (:start
	      (:line 3 :character 8)
	      :end
	      (:line 3 :character 8))
	     :rangeLength 0 :text "n")
	    (:range
	     (:start
	      (:line 3 :character 9)
	      :end
	      (:line 3 :character 9))
	     :rangeLength 0 :text "(")]))
[client-request] (id:11) Sun Aug  1 09:31:28 2021:
(:jsonrpc "2.0" :id 11 :method "textDocument/signatureHelp" :params
	  (:textDocument
	   (:uri "file:///f:/CASE-eglot/test.c")
	   :position
	   (:line 3 :character 10)))
[client-request] (id:12) Sun Aug  1 09:31:28 2021:
(:jsonrpc "2.0" :id 12 :method "textDocument/hover" :params
	  (:textDocument
	   (:uri "file:///f:/CASE-eglot/test.c")
	   :position
	   (:line 3 :character 10)))
[client-request] (id:13) Sun Aug  1 09:31:28 2021:
(:jsonrpc "2.0" :id 13 :method "textDocument/documentHighlight" :params
	  (:textDocument
	   (:uri "file:///f:/CASE-eglot/test.c")
	   :position
	   (:line 3 :character 10)))
[stderr] I[09:31:28.282] <-- textDocument/didChange
[stderr] I[09:31:28.285] <-- textDocument/signatureHelp(11)
[stderr] I[09:31:28.285] <-- textDocument/hover(12)
[stderr] I[09:31:28.285] Failed to find compilation database for f:\CASE-eglot\test.c
[stderr] I[09:31:28.285] <-- textDocument/documentHighlight(13)
[stderr] I[09:31:28.286] ASTWorker building file f:\CASE-eglot\test.c version 46 with command clangd fallback
[stderr] [f:\CASE-eglot]
[stderr] C:\LLVM\bin\clang f:\CASE-eglot\test.c -fsyntax-only -resource-dir=c:\LLVM\lib\clang\12.0.0
[stderr] I[09:31:28.304] SigHelp: requested docs for 1 symbols from the index, got 0 symbols with non-empty docs in the response
[server-reply] (id:11) Sun Aug  1 09:31:28 2021:
(:id 11 :jsonrpc "2.0" :result
     (:activeParameter 0 :activeSignature 0 :signatures
		       [(:label "println() -> int" :parameters
				[])]))
[server-reply] (id:12) Sun Aug  1 09:31:28 2021:
(:id 12 :jsonrpc "2.0" :result nil)
[server-notification] Sun Aug  1 09:31:28 2021:
(:jsonrpc "2.0" :method "textDocument/publishDiagnostics" :params
	  (:diagnostics
	   [(:code "-Wimplicit-function-declaration" :message "Implicit declaration of function 'println' is invalid in C99" :range
		   (:end
		    (:character 9 :line 3)
		    :start
		    (:character 2 :line 3))
		   :severity 2 :source "clang")
	    (:code "expected_expression" :message "Expected expression" :range
		   (:end
		    (:character 10 :line 3)
		    :start
		    (:character 10 :line 3))
		   :severity 1 :source "clang")
	    (:code "expected" :message "Expected '}'\n\ntest.c:3:12: note: to match this '{'" :range
		   (:end
		    (:character 10 :line 3)
		    :start
		    (:character 10 :line 3))
		   :severity 1 :source "clang")
	    (:message "To match this '{'\n\ntest.c:4:11: error: expected '}'" :range
		      (:end
		       (:character 12 :line 2)
		       :start
		       (:character 11 :line 2))
		      :severity 3)]
	   :uri "file:///f:/CASE-eglot/test.c" :version 46))
[server-reply] (id:13) Sun Aug  1 09:31:28 2021:
(:id 13 :jsonrpc "2.0" :result
     [])
[stderr] I[09:31:28.305] --> reply:textDocument/signatureHelp(11) 20 ms
[stderr] I[09:31:28.314] --> reply:textDocument/hover(12) 29 ms
[stderr] I[09:31:28.314] Skipping rebuild of the AST for f:\CASE-eglot\test.c, inputs are the same.
[stderr] I[09:31:28.314] --> textDocument/publishDiagnostics
[stderr] I[09:31:28.314] --> reply:textDocument/documentHighlight(13) 28 ms
[client-notification] Sun Aug  1 09:31:29 2021:
(:jsonrpc "2.0" :method "textDocument/didChange" :params
	  (:textDocument
	   (:uri "file:///f:/CASE-eglot/test.c" :version 50)
	   :contentChanges
	   [(:range
	     (:start
	      (:line 3 :character 9)
	      :end
	      (:line 3 :character 10))
	     :rangeLength 1 :text "")
	    (:range
	     (:start
	      (:line 3 :character 8)
	      :end
	      (:line 3 :character 9))
	     :rangeLength 1 :text "")
	    (:range
	     (:start
	      (:line 3 :character 7)
	      :end
	      (:line 3 :character 8))
	     :rangeLength 1 :text "")
	    (:range
	     (:start
	      (:line 3 :character 7)
	      :end
	      (:line 3 :character 7))
	     :rangeLength 0 :text "f")]))
[client-request] (id:14) Sun Aug  1 09:31:29 2021:
(:jsonrpc "2.0" :id 14 :method "textDocument/signatureHelp" :params
	  (:textDocument
	   (:uri "file:///f:/CASE-eglot/test.c")
	   :position
	   (:line 3 :character 8)))
[client-request] (id:15) Sun Aug  1 09:31:29 2021:
(:jsonrpc "2.0" :id 15 :method "textDocument/hover" :params
	  (:textDocument
	   (:uri "file:///f:/CASE-eglot/test.c")
	   :position
	   (:line 3 :character 8)))
[client-request] (id:16) Sun Aug  1 09:31:29 2021:
(:jsonrpc "2.0" :id 16 :method "textDocument/documentHighlight" :params
	  (:textDocument
	   (:uri "file:///f:/CASE-eglot/test.c")
	   :position
	   (:line 3 :character 8)))
[stderr] I[09:31:29.328] <-- textDocument/didChange
[stderr] I[09:31:29.332] <-- textDocument/signatureHelp(14)
[stderr] I[09:31:29.333] <-- textDocument/hover(15)
[stderr] I[09:31:29.333] Failed to find compilation database for f:\CASE-eglot\test.c
[stderr] I[09:31:29.333] <-- textDocument/documentHighlight(16)
[stderr] I[09:31:29.333] ASTWorker building file f:\CASE-eglot\test.c version 50 with command clangd fallback
[stderr] [f:\CASE-eglot]
[stderr] C:\LLVM\bin\clang f:\CASE-eglot\test.c -fsyntax-only -resource-dir=c:\LLVM\lib\clang\12.0.0
[server-reply] (id:14) Sun Aug  1 09:31:29 2021:
(:id 14 :jsonrpc "2.0" :result
     (:activeParameter 0 :activeSignature 0 :signatures
		       []))
[stderr] I[09:31:29.354] --> reply:textDocument/signatureHelp(14) 21 ms
[server-reply] (id:15) Sun Aug  1 09:31:29 2021:
(:id 15 :jsonrpc "2.0" :result
     (:contents
      (:kind "markdown" :value "### function `printf`  \n\n---\n→ `int`  \nParameters:  \n- `const char *const _Format`\n\n---\n```cpp\ninline int printf(const char *const _Format, ...)\n```")
      :range
      (:end
       (:character 8 :line 3)
       :start
       (:character 2 :line 3))))
[stderr] I[09:31:29.364] --> reply:textDocument/hover(15) 31 ms
[stderr] I[09:31:29.364] Skipping rebuild of the AST for f:\CASE-eglot\test.c, inputs are the same.
[stderr] I[09:31:29.364] --> textDocument/publishDiagnostics
[stderr] I[09:31:29.364] --> reply:textDocument/documentHighlight(16) 30 ms
[server-notification] Sun Aug  1 09:31:29 2021:
(:jsonrpc "2.0" :method "textDocument/publishDiagnostics" :params
	  (:diagnostics
	   [(:code "expected_semi_after_expr" :message "Expected ';' after expression (fix available)" :range
		   (:end
		    (:character 8 :line 3)
		    :start
		    (:character 8 :line 3))
		   :severity 1 :source "clang")
	    (:code "-Wunused-value" :message "Expression result unused" :range
		   (:end
		    (:character 8 :line 3)
		    :start
		    (:character 2 :line 3))
		   :severity 2 :source "clang")
	    (:code "expected" :message "Expected '}'\n\ntest.c:3:12: note: to match this '{'" :range
		   (:end
		    (:character 8 :line 3)
		    :start
		    (:character 8 :line 3))
		   :severity 1 :source "clang")
	    (:message "To match this '{'\n\ntest.c:4:9: error: expected '}'" :range
		      (:end
		       (:character 12 :line 2)
		       :start
		       (:character 11 :line 2))
		      :severity 3)]
	   :uri "file:///f:/CASE-eglot/test.c" :version 50))
[server-reply] (id:16) Sun Aug  1 09:31:29 2021:
(:id 16 :jsonrpc "2.0" :result
     [(:kind 1 :range
	     (:end
	      (:character 8 :line 3)
	      :start
	      (:character 2 :line 3)))])
[client-notification] Sun Aug  1 09:31:32 2021:
(:jsonrpc "2.0" :method "textDocument/didChange" :params
	  (:textDocument
	   (:uri "file:///f:/CASE-eglot/test.c" :version 55)
	   :contentChanges
	   [(:range
	     (:start
	      (:line 3 :character 8)
	      :end
	      (:line 3 :character 8))
	     :rangeLength 0 :text "(")
	    (:range
	     (:start
	      (:line 3 :character 9)
	      :end
	      (:line 3 :character 9))
	     :rangeLength 0 :text "\"")
	    (:range
	     (:start
	      (:line 3 :character 10)
	      :end
	      (:line 3 :character 10))
	     :rangeLength 0 :text "h")
	    (:range
	     (:start
	      (:line 3 :character 11)
	      :end
	      (:line 3 :character 11))
	     :rangeLength 0 :text "e")
	    (:range
	     (:start
	      (:line 3 :character 12)
	      :end
	      (:line 3 :character 12))
	     :rangeLength 0 :text "l")]))
[client-request] (id:17) Sun Aug  1 09:31:32 2021:
(:jsonrpc "2.0" :id 17 :method "textDocument/signatureHelp" :params
	  (:textDocument
	   (:uri "file:///f:/CASE-eglot/test.c")
	   :position
	   (:line 3 :character 13)))
[client-request] (id:18) Sun Aug  1 09:31:32 2021:
(:jsonrpc "2.0" :id 18 :method "textDocument/hover" :params
	  (:textDocument
	   (:uri "file:///f:/CASE-eglot/test.c")
	   :position
	   (:line 3 :character 13)))
[client-request] (id:19) Sun Aug  1 09:31:32 2021:
(:jsonrpc "2.0" :id 19 :method "textDocument/documentHighlight" :params
	  (:textDocument
	   (:uri "file:///f:/CASE-eglot/test.c")
	   :position
	   (:line 3 :character 13)))
[stderr] I[09:31:32.426] <-- textDocument/didChange
[stderr] I[09:31:32.430] <-- textDocument/signatureHelp(17)
[stderr] I[09:31:32.432] <-- textDocument/hover(18)
[stderr] I[09:31:32.432] Failed to find compilation database for f:\CASE-eglot\test.c
[stderr] I[09:31:32.433] ASTWorker building file f:\CASE-eglot\test.c version 55 with command clangd fallback
[stderr] [f:\CASE-eglot]
[stderr] C:\LLVM\bin\clang f:\CASE-eglot\test.c -fsyntax-only -resource-dir=c:\LLVM\lib\clang\12.0.0
[stderr] I[09:31:32.434] <-- textDocument/documentHighlight(19)
[server-reply] (id:17) Sun Aug  1 09:31:32 2021:
(:id 17 :jsonrpc "2.0" :result
     (:activeParameter 0 :activeSignature 0 :signatures
		       [(:label "printf(const char *const _Format, ...) -> int" :parameters
				[(:label
				  [7 32])
				 (:label
				  [34 37])])]))
[stderr] I[09:31:32.455] SigHelp: requested docs for 1 symbols from the index, got 0 symbols with non-empty docs in the response
[stderr] I[09:31:32.455] --> reply:textDocument/signatureHelp(17) 25 ms
[server-reply] (id:18) Sun Aug  1 09:31:32 2021:
(:id 18 :jsonrpc "2.0" :result nil)
[stderr] I[09:31:32.466] --> reply:textDocument/hover(18) 34 ms
[stderr] I[09:31:32.466] Skipping rebuild of the AST for f:\CASE-eglot\test.c, inputs are the same.
[stderr] I[09:31:32.466] --> textDocument/publishDiagnostics
[stderr] I[09:31:32.466] --> reply:textDocument/documentHighlight(19) 32 ms
[server-notification] Sun Aug  1 09:31:32 2021:
(:jsonrpc "2.0" :method "textDocument/publishDiagnostics" :params
	  (:diagnostics
	   [(:code "-Winvalid-pp-token" :message "Missing terminating '\"' character" :range
		   (:end
		    (:character 13 :line 3)
		    :start
		    (:character 9 :line 3))
		   :severity 2 :source "clang")
	    (:code "expected_expression" :message "Expected expression" :range
		   (:end
		    (:character 13 :line 3)
		    :start
		    (:character 9 :line 3))
		   :severity 1 :source "clang")
	    (:code "expected" :message "Expected '}'\n\ntest.c:3:12: note: to match this '{'" :range
		   (:end
		    (:character 13 :line 3)
		    :start
		    (:character 13 :line 3))
		   :severity 1 :source "clang")
	    (:message "To match this '{'\n\ntest.c:4:14: error: expected '}'" :range
		      (:end
		       (:character 12 :line 2)
		       :start
		       (:character 11 :line 2))
		      :severity 3)]
	   :uri "file:///f:/CASE-eglot/test.c" :version 55))
[server-reply] (id:19) Sun Aug  1 09:31:32 2021:
(:id 19 :jsonrpc "2.0" :result
     [])
[client-notification] Sun Aug  1 09:31:34 2021:
(:jsonrpc "2.0" :method "textDocument/didChange" :params
	  (:textDocument
	   (:uri "file:///f:/CASE-eglot/test.c" :version 62)
	   :contentChanges
	   [(:range
	     (:start
	      (:line 3 :character 13)
	      :end
	      (:line 3 :character 13))
	     :rangeLength 0 :text "l")
	    (:range
	     (:start
	      (:line 3 :character 14)
	      :end
	      (:line 3 :character 14))
	     :rangeLength 0 :text "o")
	    (:range
	     (:start
	      (:line 3 :character 15)
	      :end
	      (:line 3 :character 15))
	     :rangeLength 0 :text "\"")
	    (:range
	     (:start
	      (:line 3 :character 16)
	      :end
	      (:line 3 :character 16))
	     :rangeLength 0 :text ")")
	    (:range
	     (:start
	      (:line 3 :character 17)
	      :end
	      (:line 3 :character 17))
	     :rangeLength 0 :text ";")
	    (:range
	     (:start
	      (:line 3 :character 18)
	      :end
	      (:line 3 :character 18))
	     :rangeLength 0 :text "\n")
	    (:range
	     (:start
	      (:line 4 :character 0)
	      :end
	      (:line 4 :character 0))
	     :rangeLength 0 :text "  ")]))
[client-request] (id:20) Sun Aug  1 09:31:34 2021:
(:jsonrpc "2.0" :id 20 :method "textDocument/signatureHelp" :params
	  (:textDocument
	   (:uri "file:///f:/CASE-eglot/test.c")
	   :position
	   (:line 4 :character 2)))
[client-request] (id:21) Sun Aug  1 09:31:34 2021:
(:jsonrpc "2.0" :id 21 :method "textDocument/hover" :params
	  (:textDocument
	   (:uri "file:///f:/CASE-eglot/test.c")
	   :position
	   (:line 4 :character 2)))
[client-request] (id:22) Sun Aug  1 09:31:34 2021:
(:jsonrpc "2.0" :id 22 :method "textDocument/documentHighlight" :params
	  (:textDocument
	   (:uri "file:///f:/CASE-eglot/test.c")
	   :position
	   (:line 4 :character 2)))
[stderr] I[09:31:34.441] <-- textDocument/didChange
[stderr] I[09:31:34.443] <-- textDocument/signatureHelp(20)
[stderr] I[09:31:34.444] <-- textDocument/hover(21)
[stderr] I[09:31:34.444] Failed to find compilation database for f:\CASE-eglot\test.c
[stderr] I[09:31:34.444] <-- textDocument/documentHighlight(22)
[stderr] I[09:31:34.445] ASTWorker building file f:\CASE-eglot\test.c version 62 with command clangd fallback
[stderr] [f:\CASE-eglot]
[stderr] C:\LLVM\bin\clang f:\CASE-eglot\test.c -fsyntax-only -resource-dir=c:\LLVM\lib\clang\12.0.0
[stderr] I[09:31:34.466] --> reply:textDocument/signatureHelp(20) 22 ms
[server-reply] (id:20) Sun Aug  1 09:31:34 2021:
(:id 20 :jsonrpc "2.0" :result
     (:activeParameter 0 :activeSignature 0 :signatures
		       []))
[stderr] I[09:31:34.477] --> reply:textDocument/hover(21) 33 ms
[stderr] I[09:31:34.477] Skipping rebuild of the AST for f:\CASE-eglot\test.c, inputs are the same.
[server-reply] (id:21) Sun Aug  1 09:31:34 2021:
(:id 21 :jsonrpc "2.0" :result nil)
[server-notification] Sun Aug  1 09:31:34 2021:
(:jsonrpc "2.0" :method "textDocument/publishDiagnostics" :params
	  (:diagnostics
	   [(:code "expected" :message "Expected '}'\n\ntest.c:3:12: note: to match this '{'" :range
		   (:end
		    (:character 2 :line 4)
		    :start
		    (:character 2 :line 4))
		   :severity 1 :source "clang")
	    (:message "To match this '{'\n\ntest.c:5:3: error: expected '}'" :range
		      (:end
		       (:character 12 :line 2)
		       :start
		       (:character 11 :line 2))
		      :severity 3)]
	   :uri "file:///f:/CASE-eglot/test.c" :version 62))
[server-reply] (id:22) Sun Aug  1 09:31:34 2021:
(:id 22 :jsonrpc "2.0" :result
     [])
[stderr] I[09:31:34.477] --> textDocument/publishDiagnostics
[stderr] I[09:31:34.477] --> reply:textDocument/documentHighlight(22) 32 ms
[client-notification] Sun Aug  1 09:31:36 2021:
(:jsonrpc "2.0" :method "textDocument/didChange" :params
	  (:textDocument
	   (:uri "file:///f:/CASE-eglot/test.c" :version 73)
	   :contentChanges
	   [(:range
	     (:start
	      (:line 4 :character 2)
	      :end
	      (:line 4 :character 2))
	     :rangeLength 0 :text "r")
	    (:range
	     (:start
	      (:line 4 :character 3)
	      :end
	      (:line 4 :character 3))
	     :rangeLength 0 :text "e")
	    (:range
	     (:start
	      (:line 4 :character 4)
	      :end
	      (:line 4 :character 4))
	     :rangeLength 0 :text "t")
	    (:range
	     (:start
	      (:line 4 :character 5)
	      :end
	      (:line 4 :character 5))
	     :rangeLength 0 :text "u")
	    (:range
	     (:start
	      (:line 4 :character 6)
	      :end
	      (:line 4 :character 6))
	     :rangeLength 0 :text "r")
	    (:range
	     (:start
	      (:line 4 :character 7)
	      :end
	      (:line 4 :character 7))
	     :rangeLength 0 :text "n")
	    (:range
	     (:start
	      (:line 4 :character 8)
	      :end
	      (:line 4 :character 8))
	     :rangeLength 0 :text " ")
	    (:range
	     (:start
	      (:line 4 :character 9)
	      :end
	      (:line 4 :character 9))
	     :rangeLength 0 :text "0")
	    (:range
	     (:start
	      (:line 4 :character 10)
	      :end
	      (:line 4 :character 10))
	     :rangeLength 0 :text ";")
	    (:range
	     (:start
	      (:line 4 :character 11)
	      :end
	      (:line 4 :character 11))
	     :rangeLength 0 :text "\n")
	    (:range
	     (:start
	      (:line 5 :character 0)
	      :end
	      (:line 5 :character 0))
	     :rangeLength 0 :text "  ")]))
[client-request] (id:23) Sun Aug  1 09:31:36 2021:
(:jsonrpc "2.0" :id 23 :method "textDocument/signatureHelp" :params
	  (:textDocument
	   (:uri "file:///f:/CASE-eglot/test.c")
	   :position
	   (:line 5 :character 2)))
[client-request] (id:24) Sun Aug  1 09:31:36 2021:
(:jsonrpc "2.0" :id 24 :method "textDocument/hover" :params
	  (:textDocument
	   (:uri "file:///f:/CASE-eglot/test.c")
	   :position
	   (:line 5 :character 2)))
[client-request] (id:25) Sun Aug  1 09:31:36 2021:
(:jsonrpc "2.0" :id 25 :method "textDocument/documentHighlight" :params
	  (:textDocument
	   (:uri "file:///f:/CASE-eglot/test.c")
	   :position
	   (:line 5 :character 2)))
[stderr] I[09:31:36.482] <-- textDocument/didChange
[stderr] I[09:31:36.523] <-- textDocument/signatureHelp(23)
[stderr] I[09:31:36.524] <-- textDocument/hover(24)
[stderr] I[09:31:36.524] Failed to find compilation database for f:\CASE-eglot\test.c
[stderr] I[09:31:36.524] <-- textDocument/documentHighlight(25)
[stderr] I[09:31:36.524] ASTWorker building file f:\CASE-eglot\test.c version 73 with command clangd fallback
[stderr] [f:\CASE-eglot]
[stderr] C:\LLVM\bin\clang f:\CASE-eglot\test.c -fsyntax-only -resource-dir=c:\LLVM\lib\clang\12.0.0
[server-reply] (id:23) Sun Aug  1 09:31:36 2021:
(:id 23 :jsonrpc "2.0" :result
     (:activeParameter 0 :activeSignature 0 :signatures
		       []))
[stderr] I[09:31:36.545] --> reply:textDocument/signatureHelp(23) 22 ms
[server-reply] (id:24) Sun Aug  1 09:31:36 2021:
(:id 24 :jsonrpc "2.0" :result nil)
[stderr] I[09:31:36.555] --> reply:textDocument/hover(24) 30 ms
[stderr] I[09:31:36.555] Skipping rebuild of the AST for f:\CASE-eglot\test.c, inputs are the same.
[stderr] I[09:31:36.555] --> textDocument/publishDiagnostics
[stderr] I[09:31:36.555] --> reply:textDocument/documentHighlight(25) 30 ms
[server-notification] Sun Aug  1 09:31:36 2021:
(:jsonrpc "2.0" :method "textDocument/publishDiagnostics" :params
	  (:diagnostics
	   [(:code "expected" :message "Expected '}'\n\ntest.c:3:12: note: to match this '{'" :range
		   (:end
		    (:character 2 :line 5)
		    :start
		    (:character 2 :line 5))
		   :severity 1 :source "clang")
	    (:message "To match this '{'\n\ntest.c:6:3: error: expected '}'" :range
		      (:end
		       (:character 12 :line 2)
		       :start
		       (:character 11 :line 2))
		      :severity 3)]
	   :uri "file:///f:/CASE-eglot/test.c" :version 73))
[server-reply] (id:25) Sun Aug  1 09:31:36 2021:
(:id 25 :jsonrpc "2.0" :result
     [])
[internal] (id:26) Sun Aug  1 09:31:37 2021:
(:deferring :textDocument/signatureHelp :id 26 :params
	    (:textDocument
	     (:uri "file:///f:/CASE-eglot/test.c")
	     :position
	     (:line 5 :character 1)))
[internal] (id:27) Sun Aug  1 09:31:37 2021:
(:deferring :textDocument/hover :id 27 :params
	    (:textDocument
	     (:uri "file:///f:/CASE-eglot/test.c")
	     :position
	     (:line 5 :character 1)))
[internal] (id:28) Sun Aug  1 09:31:37 2021:
(:deferring :textDocument/documentHighlight :id 28 :params
	    (:textDocument
	     (:uri "file:///f:/CASE-eglot/test.c")
	     :position
	     (:line 5 :character 1)))
[client-notification] Sun Aug  1 09:31:37 2021:
(:jsonrpc "2.0" :method "textDocument/didChange" :params
	  (:textDocument
	   (:uri "file:///f:/CASE-eglot/test.c" :version 75)
	   :contentChanges
	   [(:range
	     (:start
	      (:line 5 :character 2)
	      :end
	      (:line 5 :character 2))
	     :rangeLength 0 :text "}")
	    (:range
	     (:start
	      (:line 5 :character 0)
	      :end
	      (:line 5 :character 2))
	     :rangeLength 2 :text "")]))
[internal] Sun Aug  1 09:31:37 2021:
(:maybe-run-deferred
 (26 27 28))
[client-request] (id:26) Sun Aug  1 09:31:37 2021:
(:jsonrpc "2.0" :id 26 :method "textDocument/signatureHelp" :params
	  (:textDocument
	   (:uri "file:///f:/CASE-eglot/test.c")
	   :position
	   (:line 5 :character 1)))
[client-request] (id:27) Sun Aug  1 09:31:37 2021:
(:jsonrpc "2.0" :id 27 :method "textDocument/hover" :params
	  (:textDocument
	   (:uri "file:///f:/CASE-eglot/test.c")
	   :position
	   (:line 5 :character 1)))
[client-request] (id:28) Sun Aug  1 09:31:37 2021:
(:jsonrpc "2.0" :id 28 :method "textDocument/documentHighlight" :params
	  (:textDocument
	   (:uri "file:///f:/CASE-eglot/test.c")
	   :position
	   (:line 5 :character 1)))
[stderr] I[09:31:37.209] <-- textDocument/didChange
[stderr] I[09:31:37.210] <-- textDocument/signatureHelp(26)
[stderr] I[09:31:37.210] <-- textDocument/hover(27)
[stderr] I[09:31:37.210] Failed to find compilation database for f:\CASE-eglot\test.c
[stderr] I[09:31:37.210] <-- textDocument/documentHighlight(28)
[stderr] I[09:31:37.210] ASTWorker building file f:\CASE-eglot\test.c version 75 with command clangd fallback
[stderr] [f:\CASE-eglot]
[stderr] C:\LLVM\bin\clang f:\CASE-eglot\test.c -fsyntax-only -resource-dir=c:\LLVM\lib\clang\12.0.0
[stderr] I[09:31:37.230] --> reply:textDocument/signatureHelp(26) 19 ms
[server-reply] (id:26) Sun Aug  1 09:31:37 2021:
(:id 26 :jsonrpc "2.0" :result
     (:activeParameter 0 :activeSignature 0 :signatures
		       []))
[stderr] I[09:31:37.239] --> reply:textDocument/hover(27) 28 ms
[stderr] I[09:31:37.239] Skipping rebuild of the AST for f:\CASE-eglot\test.c, inputs are the same.
[server-reply] (id:27) Sun Aug  1 09:31:37 2021:
(:id 27 :jsonrpc "2.0" :result nil)
[server-notification] Sun Aug  1 09:31:37 2021:
(:jsonrpc "2.0" :method "textDocument/publishDiagnostics" :params
	  (:diagnostics
	   []
	   :uri "file:///f:/CASE-eglot/test.c" :version 75))
[server-reply] (id:28) Sun Aug  1 09:31:37 2021:
(:id 28 :jsonrpc "2.0" :result
     [])
[stderr] I[09:31:37.239] --> textDocument/publishDiagnostics
[stderr] I[09:31:37.239] --> reply:textDocument/documentHighlight(28) 28 ms
[client-notification] Sun Aug  1 09:31:38 2021:
(:jsonrpc "2.0" :method "textDocument/willSave" :params
	  (:reason 1 :textDocument
		   (:uri "file:///f:/CASE-eglot/test.c")))
[client-notification] Sun Aug  1 09:31:39 2021:
(:jsonrpc "2.0" :method "textDocument/didChange" :params
	  (:textDocument
	   (:uri "file:///f:/CASE-eglot/test.c" :version 76)
	   :contentChanges
	   [(:range
	     (:start
	      (:line 5 :character 1)
	      :end
	      (:line 5 :character 1))
	     :rangeLength 0 :text "\n")]))
[client-notification] Sun Aug  1 09:31:39 2021:
(:jsonrpc "2.0" :method "textDocument/didSave" :params
	  (:text "#include <stdio.h>\n\nint main() {\n  printf(\"hello\");\n  return 0;\n}\n" :textDocument
		 (:uri "file:///f:/CASE-eglot/test.c")))
[stderr] I[09:31:38.789] <-- textDocument/willSave
[stderr] I[09:31:38.789] unhandled notification textDocument/willSave
[stderr] I[09:31:39.052] <-- textDocument/didChange
[stderr] I[09:31:39.054] <-- textDocument/didSave
[stderr] I[09:31:39.116] Failed to find compilation database for f:\CASE-eglot\test.c
[stderr] I[09:31:39.116] ASTWorker building file f:\CASE-eglot\test.c version 76 with command clangd fallback
[stderr] [f:\CASE-eglot]
[stderr] C:\LLVM\bin\clang f:\CASE-eglot\test.c -fsyntax-only -resource-dir=c:\LLVM\lib\clang\12.0.0
[server-notification] Sun Aug  1 09:31:39 2021:
(:jsonrpc "2.0" :method "textDocument/publishDiagnostics" :params
	  (:diagnostics
	   []
	   :uri "file:///f:/CASE-eglot/test.c" :version 76))
[stderr] I[09:31:39.138] --> textDocument/publishDiagnostics
[client-request] (id:29) Sun Aug  1 09:31:39 2021:
(:jsonrpc "2.0" :id 29 :method "textDocument/signatureHelp" :params
	  (:textDocument
	   (:uri "file:///f:/CASE-eglot/test.c")
	   :position
	   (:line 6 :character 0)))
[client-request] (id:30) Sun Aug  1 09:31:39 2021:
(:jsonrpc "2.0" :id 30 :method "textDocument/hover" :params
	  (:textDocument
	   (:uri "file:///f:/CASE-eglot/test.c")
	   :position
	   (:line 6 :character 0)))
[client-request] (id:31) Sun Aug  1 09:31:39 2021:
(:jsonrpc "2.0" :id 31 :method "textDocument/documentHighlight" :params
	  (:textDocument
	   (:uri "file:///f:/CASE-eglot/test.c")
	   :position
	   (:line 6 :character 0)))
[stderr] I[09:31:39.607] <-- textDocument/signatureHelp(29)
[stderr] I[09:31:39.608] <-- textDocument/hover(30)
[stderr] I[09:31:39.610] --> reply:textDocument/hover(30) 1 ms
[stderr] I[09:31:39.610] <-- textDocument/documentHighlight(31)
[stderr] I[09:31:39.610] --> reply:textDocument/documentHighlight(31) 0 ms
[server-reply] (id:30) Sun Aug  1 09:31:39 2021:
(:id 30 :jsonrpc "2.0" :result nil)
[server-reply] (id:31) Sun Aug  1 09:31:39 2021:
(:id 31 :jsonrpc "2.0" :result
     [])
[stderr] I[09:31:39.632] --> reply:textDocument/signatureHelp(29) 24 ms
[server-reply] (id:29) Sun Aug  1 09:31:39 2021:
(:id 29 :jsonrpc "2.0" :result
     (:activeParameter 0 :activeSignature 0 :signatures
		       []))
[client-request] (id:32) Sun Aug  1 09:31:41 2021:
(:jsonrpc "2.0" :id 32 :method "textDocument/signatureHelp" :params
	  (:textDocument
	   (:uri "file:///f:/CASE-eglot/test.c")
	   :position
	   (:line 3 :character 4)))
[client-request] (id:33) Sun Aug  1 09:31:42 2021:
(:jsonrpc "2.0" :id 33 :method "textDocument/hover" :params
	  (:textDocument
	   (:uri "file:///f:/CASE-eglot/test.c")
	   :position
	   (:line 3 :character 4)))
[client-request] (id:34) Sun Aug  1 09:31:42 2021:
(:jsonrpc "2.0" :id 34 :method "textDocument/documentHighlight" :params
	  (:textDocument
	   (:uri "file:///f:/CASE-eglot/test.c")
	   :position
	   (:line 3 :character 4)))
[stderr] I[09:31:41.998] <-- textDocument/signatureHelp(32)
[stderr] I[09:31:42.000] <-- textDocument/hover(33)
[stderr] I[09:31:42.002] <-- textDocument/documentHighlight(34)
[stderr] I[09:31:42.003] --> reply:textDocument/hover(33) 2 ms
[stderr] I[09:31:42.003] --> reply:textDocument/documentHighlight(34) 0 ms
[server-reply] (id:33) Sun Aug  1 09:31:42 2021:
(:id 33 :jsonrpc "2.0" :result
     (:contents
      (:kind "markdown" :value "### function `printf`  \n\n---\n→ `int`  \nParameters:  \n- `const char *const _Format`\n\n---\n```cpp\ninline int printf(const char *const _Format, ...)\n```")
      :range
      (:end
       (:character 8 :line 3)
       :start
       (:character 2 :line 3))))
[server-reply] (id:34) Sun Aug  1 09:31:42 2021:
(:id 34 :jsonrpc "2.0" :result
     [(:kind 1 :range
	     (:end
	      (:character 8 :line 3)
	      :start
	      (:character 2 :line 3)))])
[stderr] I[09:31:42.024] --> reply:textDocument/signatureHelp(32) 25 ms
[server-reply] (id:32) Sun Aug  1 09:31:42 2021:
(:id 32 :jsonrpc "2.0" :result
     (:activeParameter 0 :activeSignature 0 :signatures
		       []))
[client-request] (id:35) Sun Aug  1 09:31:42 2021:
(:jsonrpc "2.0" :id 35 :method "textDocument/definition" :params
	  (:textDocument
	   (:uri "file:///f:/CASE-eglot/test.c")
	   :position
	   (:line 3 :character 4)))
[stderr] I[09:31:42.317] <-- textDocument/definition(35)
[server-reply] (id:35) Sun Aug  1 09:31:42 2021:
(:id 35 :jsonrpc "2.0" :result
     [(:range
       (:end
	(:character 42 :line 949)
	:start
	(:character 36 :line 949))
       :uri "file:///C:/Program%20Files%20%28x86%29/Windows%20Kits/10/Include/10.0.19041.0/ucrt/stdio.h")])
[stderr] I[09:31:42.318] --> reply:textDocument/definition(35) 0 ms
[internal] (id:26) Sun Aug  1 09:31:47 2021:
(:timed-out :textDocument/signatureHelp :id 26 :params
	    (:textDocument
	     (:uri "file:///f:/CASE-eglot/test.c")
	     :position
	     (:line 5 :character 1)))
[internal] (id:27) Sun Aug  1 09:31:47 2021:
(:timed-out :textDocument/hover :id 27 :params
	    (:textDocument
	     (:uri "file:///f:/CASE-eglot/test.c")
	     :position
	     (:line 5 :character 1)))
[internal] (id:28) Sun Aug  1 09:31:47 2021:
(:timed-out :textDocument/documentHighlight :id 28 :params
	    (:textDocument
	     (:uri "file:///f:/CASE-eglot/test.c")
	     :position
	     (:line 5 :character 1)))

  • clangd return "file:///C:/Program%20Files%20%28x86%29/Windows%20Kits/10/Include/10.0.19041.0/ucrt/stdio.h"
  • buffer-file-name is "c:/Program Files (x86)/Windows Kits/10/Include/10.0.19041.0/ucrt/stdio.h"

@wsw0108 wsw0108 changed the title eglot-extend-to-xref does not work well with gopls under Windows eglot-extend-to-xref does not work well with gopls/clangd under Windows Aug 1, 2021
@joaotavora
Copy link
Owner

Thanks for the good reproduction recipe.

@wsw0108
Copy link
Author

wsw0108 commented Sep 16, 2021

@joaotavora reproduction repo has been updated to fix a problem.

@skangas skangas added the MS-Windows Has to do with MS-Windows label Jan 12, 2022
@joaotavora
Copy link
Owner

Sorry for the long wait @wsw0108. I've been using clang lately with Eglot (though I don't use this feature). I'll try it soon and report back.

@wsw0108
Copy link
Author

wsw0108 commented Apr 9, 2022

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
MS-Windows Has to do with MS-Windows
Projects
None yet
Development

No branches or pull requests

3 participants