C++ Library Instead of the C Library is Being Included #13364
-
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... 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. 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... 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: |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
So I have managed to solve most of my issues by updating to clang tool chain 20. It is now pulling the correct .h header files. However as I said previously after a complete overhaul and install C is now fine. But, my issue with C++ remains the same: Tree-sitter parser: None hx --health c hx --health cpp |
Beta Was this translation helpful? Give feedback.
-
Can I get help with why: hx --health c is ok But...: hx --health cpp is not Please. Do/Should I make another post? I am bot sure what to do... |
Beta Was this translation helpful? Give feedback.
-
UPDATE:
So it now seems clangd update and .deb install is what worked correctly. The nix install still does not (Tree-sitter parser: None). |
Beta Was this translation helpful? Give feedback.
UPDATE:
So it now seems clangd update and .deb install is what worked correctly. The nix install still does not (Tree-sitter parser: None).