this post was submitted on 26 Apr 2025
361 points (97.4% liked)

Programming

19813 readers
832 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] chakli@lemmy.world 52 points 1 day ago (3 children)

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 1 points 11 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!

[–] mamotromico@lemmy.ml 6 points 1 day ago

Oooh I’ll give it a try, wasn’t aware of it.

[–] cmrss2@aussie.zone 4 points 1 day ago (1 children)

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 2 points 1 day ago (1 children)

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

[–] cmrss2@aussie.zone 1 points 21 hours ago (1 children)

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

[–] FizzyOrange@programming.dev 1 points 11 hours ago

No Pyright is just a type checker. The IDE features are part of Pylance which is closed source.