Skip to content

C++ Library Instead of the C Library is Being Included #13363

@ZennMystic

Description

@ZennMystic

Can someone please help me with a library issue. I have a screenshot: When I am typing in return EXIT_FAILURE; I get from: with nothing there. I mean the from is blank. So when I press enter it pulls in: #include cstdlib But this is wrong because it should be: #include <stdlib.h>... And not #include cstdlib...

Image

Image

Image

I noticed it the the from: is blank and only pulls in the C++ header when it is text.

When I want to use a function it finds and pulls in the right header file just fine.

Image

I am running on Debian 12 and installed Helix via the nix package meager. So I completely deleted and re-installed the nix package manager, as well as installing and setting up clang 19. But the issue remains. In fact I made things a bit worse, it seems, because...
Both C and C++ health WAS setup and green across the board. But now tree-sitter parser under C++ is: none.

But for C it is: Tree-sitter parser: ✓.

Before I re-installed everything the tree-sitter parser for both C and C++ was fine: Tree-sitter parser: ✓

But I still have the issues of it not always pulling in the correct header.

Here is my Helix log:

helix.log

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions