lsp-find-definition
on the includes, it goes to the files (for both local and system includes). Would be very grateful for any help, I have explained in more detail here: MaskRay/emacs-ccls#88.
ccls: cannot open file '/usr/local/Cellar/llvm/10.0.0_3/lib/clang/10.0.0/include/iostream': No such file or directory
even though I set (setq ccls-args '(
"-init='{\"clang\":{\"extraArgs\":[\"-isystem\", \"/Library/Developer/CommandLineTools/usr/include/c++/v1\"]}}'"))
as recommended on https://github.com/MaskRay/ccls/issues/191#issuecomment-453809905 . I'm using macOS Catalina with llvm installed via Homebrew.
10:15:37 stdin pipeline.cc:552 V(2) receive RequestMessage: 2 initialize
10:15:37 ccls initialize.cc:274 I initialize in directory /u/drew/src/purity with uri file:///u/drew/src/purity
10:15:37 ccls initialize.cc:297 I initializationOptions: {"compilationDatabaseCommand":"","compilationDatabaseDirectory":"","cache":{"directory":".ccls-cache","format":"binary","hierarchicalPath":false,"retainInMemory":2},"capabilities":{"documentOnTypeFormattingProvider":{"firstTriggerCharacter":"}","moreTriggerCharacter":[]},"foldingRangeProvider":true,"workspace":{"workspaceFolders":{"supported":true,"changeNotifications":true}}},"clang":{"excludeArgs":[],"extraArgs":[],"pathMappings":[],"resourceDir":""},"client":{"diagnosticsRelatedInformation":true,"hierarchicalDocumentSymbolSupport":true,"linkSupport":true,"snippetSupport":true},"codeLens":{"localVariables":true},"completion":{"caseSensitivity":2,"detailedLabel":true,"dropOldRequests":true,"duplicateOptional":true,"filterAndSort":true,"include":{"blacklist":[],"maxPathSize":30,"suffixWhitelist":[".h",".hpp",".hh",".inc"],"whitelist":[]},"maxNum":100,"placeholder":true},"diagnostics":{"blacklist":[],"onChange":1000,"onOpen":0,"onSave":0,"spellChecking":true,"whitelist":[]},"highlight":{"largeFileSize":2097152,"lsRanges":false,"blacklist":[],"whitelist":[]},"index":{"blacklist":[],"comments":2,"initialNoLinkage":false,"initialBlacklist":[],"initialWhitelist":[],"maxInitializerLines":5,"multiVersion":0,"multiVersionBlacklist":[],"multiVersionWhitelist":[],"name":{"suppressUnwrittenScope":false},"onChange":false,"parametersInDeclarations":true,"threads":0,"trackDependency":2,"whitelist":[]},"request":{"timeout":5000},"session":{"maxNum":10},"workspaceSymbol":{"caseSensitivity":1,"maxNum":1000,"sort":true},"xref":{"maxNum":2000}}
10:15:37 ccls initialize.cc:329 I use -resource-dir=/usr/local/clang/lib/clang/10.0.0
10:15:37 ccls pipeline.cc:817 V(2) respond to RequestMessage: 2
10:15:46 ccls pipeline.cc:474 I loaded project. Refresh semantic highlight for all working file.
#!/bin/sh
exec strace -s999 -e read,write -o /tmp/strace.log -f path/to/ccls "$@"
location-uir
instead of location-uri
no ?
(setq ccls-sem-highlight-method 'overlay)
(ccls-use-default-rainbow-sem-highlight)
in my config, but I still only get the emacs standard syntax highlighting (no highlights for calls to member functions, for example). Does anyone know how to configure this?