Coder Social home page Coder Social logo

softmotions / acdb Goto Github PK

View Code? Open in Web Editor NEW
6.0 6.0 0.0 95 KB

Clang's C/C++ compile_commands.json generator for Arduino projects

License: Other

CMake 46.32% C 52.47% GDB 1.21%
arduino autocompletion clangd coc-clangd coc-nvim language-server neovim nvim vim

acdb's People

Contributors

adamansky avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

acdb's Issues

stdlib.h (and probably other libraries) do not get linked

Steps to reproduce:
install arduino:sam core using arduino-cli
acdb --fqbn=arduino:sam:arduino_due_x in project repo
touch main.cpp
in neovim using an lspconfig setup with clangd:
#include <stdlib.h>
try to goto_definition

also in arduino.h with that fqbn:

coc-clangd doesnt start on .ino files

Even after adding

let g:coc_filetype_map = {
  \ 'ino': 'cpp',
  \ }

to my init.vim and generating a valid compile_commands.json inside of the sketch folder coc-clangd doesnt seem to start. Heres my :CocInfo :

vim version: NVIM v0.8.0
node version: v18.10.0
coc.nvim version: 0.0.81-bf505641 2022-07-30 19:03:27 +0800
coc.nvim directory: /home/(me)/.vim/plugged/coc.nvim
term: rxvt-unicode-256color
platform: linux

## Log of coc.nvim

2022-10-04T14:24:56.933 INFO (pid:38688) [plugin] - coc.nvim initialized with node: v18.10.0 after 180ms
2022-10-04T14:24:56.993 INFO (pid:38688) [services] - registered service "clangd"
2022-10-04T14:24:57.046 INFO (pid:38688) [attach] - receive notification: highlight []
2022-10-04T14:24:59.586 INFO (pid:38688) [attach] - receive notification: showInfo []

Am I missing something?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.