Comments (4)
- Maybe related: #480
- Discussion: https://www.reddit.com/r/vim/comments/1aq4xh0/coc_and_quickfix/?utm_source=share
from coc.nvim.
Solutions without quickfix
:
-
Using
bear -- make
to create acompile_commands.json
database into the root of the project (that doesn't use cmake) solves some problems. Now COC can see (almost) all errors usingclangd
thatgcc
also see. CONS add another file and changes project workflow. The errors.err file is not used, and that is not a good solution here. -
Another solution, adding a
~/.config/clangd/config.yaml
general file with some arguments mitigates the problem. CONS it is a general file, and many projects use different arguments.
from coc.nvim.
coc.nvim displayed the errors from language server, for example clangd
, LS reports the error with location and coc.nvim displayed them with signcolumn
and highlighting.
Here, clangd reported L37 error, didn't report L57 as an error, coc.nvim only displayed L37 error.
For your solutions:
compile_commands.json
is needed by clangd to work: https://clangd.llvm.org/installation#project-setup- clangd supports project configuration
.clangd
: https://clangd.llvm.org/config#files
from coc.nvim.
coc.nvim is an LSP client, this means what coc.nvim can do is depended on language server, the client requests from server for completion/diagnostics/formatting etc, handles what server responses and applies to vim buffer.
Back to your question, what you want is: make coc.nvim displays errors from clangd and errors.err both. Have no idea how to archive this, and it's not coc.nvim's mission target/task.
from coc.nvim.
Related Issues (20)
- Repeated Diagnostic Messages with Verible Language Server HOT 6
- Can't install any plugins if node is installed inside a folder with a space on Windows HOT 2
- How to stop annoying prompt? HOT 1
- golang lsp gofumpt HOT 1
- ✗ coc-html spawn EINVAL / ✗ coc-pyright spawn EINVAL HOT 1
- Explaining why some LSP needs plugins HOT 1
- coc format behavior differently between Neovim and Vim, create unnecessary empty change in neovim. HOT 8
- something about jumpback after gD coc-definition HOT 2
- 打开rust文件时, coc报错 HOT 3
- Hover/docstring information with custom sources HOT 2
- 为什么会代码提示会提示两次? HOT 5
- [coc.nvim] Server languageserver.ccls failed to start: Error: expected rootUri HOT 1
- Failed open exsit file with list in vim HOT 5
- The text above get seleted automatically HOT 2
- The documentation has incorrect installation instructions for NeoBundle HOT 1
- How to remove the highlights when using go references HOT 3
- LinkedEditing not work in vim HOT 1
- help: completion of variables from dotenv files in shell scripts HOT 9
- <CR> can not confirm in vimwiki and folding codes failed HOT 4
- coc.nvim takes up two shortcut keys that I prefer to use. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from coc.nvim.