Open giddie opened 3 years ago
Any pointers or ideas where I should start looking in the code to solve this?
I am also seeing this for ccls
. I have the following:
let g:ale_c_ccls_executable = "./ccls-wrapper.sh"
let g:ale_linters = ['ccls']
let g:ale_filename_mappings = {
\ 'ccls': [
\ ['/home/random/acc/eit/lpwan/lab2/pingping', '/data'],
\ ],
\}
The following is ccls-wrapper.sh
:
#!/bin/sh
exec docker run -i --rm -v "$(pwd):/data" -w "/data" contiki ccls --log-file=ccls.log $@
ccls.log
:
15:04:55 ccls initialize.cc:274 I initialize in directory /home/random/acc/eit/lpwan/lab2/pingping with uri file:///home/random/acc/eit/lpwan/lab2/pingping
15:04:55 ccls initialize.cc:297 I initializationOptions: {"compilationDatabaseCommand":"","compilationDatabaseDirectory":"/home/random/acc/eit/lpwan/lab2/pingping","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}}
15:04:55 ccls initialize.cc:329 I use -resource-dir=/usr/include/clang/12
15:04:55 ccls initialize.cc:363 I workspace folder: /home/random/acc/eit/lpwan/lab2/pingping/ -> /home/random/acc/eit/lpwan/lab2/pingping//
15:04:55 ccls initialize.cc:386 I start 8 indexers
15:04:55 ccls initialize.cc:394 I dispatch initial index requests
15:04:55 ccls pipeline.cc:493 I loaded project. Refresh semantic highlight for all working file.
15:04:55 preamble sema_manager.cc:763 I create session for /home/random/acc/eit/lpwan/lab2/pingping/node.c
15:04:55 indexer1 pipeline.cc:386 I delete /home/random/acc/eit/lpwan/lab2/pingping/node.c
Information
VIM version NVIM v0.4.4 Build type: Release
Operating System: ArchLinux
What went wrong
With the following config:
I see the following output from elixir-ls:
If I set:
Then
elixir-ls
operates OK, but it reports the docker paths (/opt/app), so Vim is unable to jump to the correct file.:ALEInfo