mattn / mattn/vim-lsp-settings

clangd can not find STL headers on MacOS

Open
#496 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Vim Script
Stars
1.4k
Forks
245
Avg merge
3m
Merged PRs (30d)
1

Description

I'm using MacOS Catalina and the latest version of vim-lsp. My problem is that STL headers don't seem to be found by clangd.

If I do a clangd --check= I get errors such as E[09:37:33.030] [pp_file_not_found] Line 12: 'memory' file not found

I'm using a very current version of clangd,

$ clangd --version
Homebrew clangd version 13.0.0
Features: mac+xpc
Platform: x86_64-apple-darwin19.6.0

I am using a compile_commands.json.

My problem sounds similar to the one described in https://github.com/mattn/vim-lsp-settings/issues/159 , but that's already resolved.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the reported failure with clangd --check= on macOS Catalina using the provided compile_commands.json, then inspect how vim-lsp-settings configures clangd. The issue is complete when STL headers such as memory are found without the reported pp_file_not_found errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, macos, vim
Domain
operating-systems, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.