Need help with Espressif IDE 4.0

kondalkolipaka
Espressif staff
Espressif staff
Posts: 269
Joined: Wed Jul 17, 2019 5:26 pm

Re: Need help with Espressif IDE 4.0

Postby kondalkolipaka » Tue Apr 28, 2026 8:30 am

Hello,

I was trying to reproduce this behaviour with the similar headers!

Build is fine - this is an IDE indexer (clangd) false error, not a real compile issue.

How to fix:
- update .clangd to avoid this false-positive escalation:

Code: Select all

CompileFlags:
  CompilationDatabase: build
  Remove: [-m*, -f*]
  Add: [-Wno-attributes, -Wno-ignored-attributes]
Diagnostics:
  Suppress: [attribute_not_type_attr]

What's happening:

- ESP-IDF uses the Xtensa GCC toolchain and compiles successfully.
- clangd (used for editor diagnostics) parses some picolibc headers differently.
- In pthread.h, clangd misinterprets __noreturn and reports:'noreturn' attribute cannot be applied to types. Because warning policy includes -Werror, clangd shows it like a hard error near <iostream>
.
Screenshot 2026-04-28 at 1.53.13 PM.png
Screenshot 2026-04-28 at 1.53.13 PM.png (1.63 MiB) Viewed 32 times

Who is online

Users browsing this forum: Qwantbot and 1 guest