• chakli@lemmy.world
    link
    fedilink
    arrow-up
    52
    arrow-down
    1
    ·
    1 day ago

    If someone is looking for an alternative, use the clangd extension. It’s much better compared to the Microsoft one. LLDB extension is good for debugging. Also works with gdb.

    The only things I am lacking now is the one for remote, python.

    • JustEnoughDucks@feddit.nl
      link
      fedilink
      arrow-up
      1
      ·
      5 hours ago

      I am trying to figure out how to get zephyr, platformio, and nrfconnect to work with clangd.

      Platformio screams every second because Microsoft’s tooling is a dependency.

      Zephyr and nrfconnect work for many things, but things like including drivers from zephyr/drivers doesn’t autofill which is annoying if you are searching for a driver that might exist in nrfconnect or might not because there are some differences. It also doesn’t autofill macros and device tree defines.

      If anyone has a good guide on how to set up clangd for zephyr, I would appreciate it!

    • cmrss2@aussie.zone
      link
      fedilink
      arrow-up
      4
      arrow-down
      1
      ·
      1 day ago

      BasedPyright should have you covered on the Python end, the downside is you also need to install the PyPi package.

      Have used it and it’s excellent, even has additional features over Pylance

      • Eager Eagle@lemmy.world
        link
        fedilink
        English
        arrow-up
        2
        ·
        22 hours ago

        Do you still have refactoring tools with it, like symbol renaming, go to definition, and extract method?

        • cmrss2@aussie.zone
          link
          fedilink
          arrow-up
          1
          ·
          16 hours ago

          I think so, and it might even be a feature of the upstream Microsoft OSS Pyright, so even that version should(?) have those features available